diff --git a/dev-perl/class_data_inheritable/class_data_inheritable-0.09.recipe b/dev-perl/class_data_inheritable/class_data_inheritable-0.09.recipe new file mode 100644 index 000000000..0899b6900 --- /dev/null +++ b/dev-perl/class_data_inheritable/class_data_inheritable-0.09.recipe @@ -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 +}