mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
class_xsaccessor: new perl module recipe
This commit is contained in:
54
dev-perl/class_xsaccessor/class_xsaccessor-1.19.recipe
Normal file
54
dev-perl/class_xsaccessor/class_xsaccessor-1.19.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="Generate fast XS accessors without runtime compilation"
|
||||
DESCRIPTION="Class::XSAccessor implements fast read, write and read/write accessors in XS. \
|
||||
Additionally, it can provide predicates such as has_foo() for testing whether the attribute foo \
|
||||
exists in the object (which is different from \"is defined within the object\"). It only works \
|
||||
with objects that are implemented as ordinary hashes. Class::XSAccessor::Array implements the \
|
||||
same interface for objects that use arrays for their internal representation."
|
||||
HOMEPAGE="https://metacpan.org/pod/Class::XSAccessor"
|
||||
COPYRIGHT="2008, 2009, 2010, 2011, 2012, 2013 by Steffen Mueller"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/Class-XSAccessor-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="99c56b395f1239af19901f2feeb125d9ecb4e351a0d80daa9529211a4700a6f2"
|
||||
SOURCE_DIR="Class-XSAccessor-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
class_xsaccessor$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
PROVIDES+="
|
||||
class_xsaccessor = $portVersion
|
||||
"
|
||||
fi
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
perl Makefile.PL PREFIX=$prefix
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make pure_install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user