sub_quote: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-10-26 16:29:10 +02:00
parent e4ab9c2e36
commit 152f2b0c58

View File

@@ -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
}