class_data_inheritable: new perl module package

This is required for some tests of other packages.
This commit is contained in:
Joachim Mairböck
2023-09-17 11:15:17 +02:00
parent 68f4a0581b
commit bb1640211d

View File

@@ -0,0 +1,50 @@
SUMMARY="Inheritable, overridable class data"
DESCRIPTION="Class::Data::Inheritable is for creating accessor/mutators to class data. That is, \
if you want to store something about your class as a whole (instead of about a single object). \
This data is then inherited by your subclasses and can be overridden."
HOMEPAGE="https://metacpan.org/pod/Class::Data::Inheritable"
COPYRIGHT="2000-2005, Damian Conway and Michael G Schwern"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RS/RSHERER/Class-Data-Inheritable-$portVersion.tar.gz"
CHECKSUM_SHA256="44088d6e90712e187b8a5b050ca5b1c70efe2baa32ae123e9bd8f59f29f06e4d"
SOURCE_DIR="Class-Data-Inheritable-$portVersion"
ARCHITECTURES="any"
PROVIDES="
class_data_inheritable = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make pure_install
# remove architecture-specific files
cd $prefix
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
}
TEST()
{
make test
}