extutils_config: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-01-25 18:30:07 +01:00
parent 2ea27f5e7d
commit f48c2a86d2

View File

@@ -0,0 +1,49 @@
SUMMARY="A wrapper for perl's configuration"
DESCRIPTION="ExtUtils::Config is an abstraction around the %Config hash. By itself it is not a \
particularly interesting module by any measure, however it ties together a family of modern \
toolchain modules."
HOMEPAGE="https://metacpan.org/pod/ExtUtils::Config"
COPYRIGHT="2006 by Ken Williams, Leon Timmermans"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Config-$portVersion.tar.gz"
CHECKSUM_SHA256="82e7e4e90cbe380e152f5de6e3e403746982d502dd30197a123652e46610c66d"
SOURCE_DIR="ExtUtils-Config-$portVersion"
ARCHITECTURES="any"
PROVIDES="
extutils_config = $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
}