list_allutils: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-11-03 21:19:24 +01:00
parent e6284755ec
commit 87950440ec

View File

@@ -0,0 +1,57 @@
SUMMARY="Combines List::Util, List::SomeUtils and List::UtilsBy in one bite-sized package"
DESCRIPTION="Are you sick of trying to remember whether a particular helper is defined in \
List::Util, List::SomeUtils or List::UtilsBy? I sure am. Now you don't have to remember. This \
module will export all of the functions that either of those three modules defines."
HOMEPAGE="https://metacpan.org/pod/List::AllUtils"
COPYRIGHT="2021 by Dave Rolsky"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-AllUtils-$portVersion.tar.gz"
CHECKSUM_SHA256="30a8146ab21a7787b8c56d5829cf9a7f2b15276d3b3fca07336ac38d3002ffbc"
SOURCE_DIR="List-AllUtils-$portVersion"
ARCHITECTURES="any"
PROVIDES="
list_allutils = $portVersion
"
REQUIRES="
haiku
list_someutils
list_utilsby
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
list_someutils
list_utilsby
"
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
}