Files
haikuports/dev-perl/class_data_inheritable/class_data_inheritable-0.10.recipe
2025-12-25 13:46:18 +01:00

51 lines
1.2 KiB
Bash

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="aa1ae68a611357b7bfd9a2f64907cc196ddd6d047cae64ef9d0ad099d98ae54a"
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
}