mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
sub_quote: new perl module recipe
This commit is contained in:
48
dev-perl/sub_quote/sub_quote-2.006008.recipe
Normal file
48
dev-perl/sub_quote/sub_quote-2.006008.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user