diff --git a/dev-perl/sub_quote/sub_quote-2.006008.recipe b/dev-perl/sub_quote/sub_quote-2.006008.recipe new file mode 100644 index 000000000..5fb47c180 --- /dev/null +++ b/dev-perl/sub_quote/sub_quote-2.006008.recipe @@ -0,0 +1,48 @@ +SUMMARY="Efficient generation of subroutines via string eval" +DESCRIPTION="This package provides performant ways to generate subroutines from strings." +HOMEPAGE="https://metacpan.org/pod/Sub::Quote" +COPYRIGHT="2010-2016 the Sub::Quote author and contributors" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Sub-Quote-$portVersion.tar.gz" +CHECKSUM_SHA256="94bebd500af55762e83ea2f2bc594d87af828072370c7110c60c238a800d15b2" +SOURCE_DIR="Sub-Quote-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + sub_quote = $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 +}