list_someutils[_xs]: new perl module recipes

This commit is contained in:
Joachim Mairböck
2024-11-03 21:10:46 +01:00
parent 6b88d3ac59
commit a86768a686
2 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
SUMMARY="Provide the stuff missing in List::Util"
DESCRIPTION="List::SomeUtils provides some trivial but commonly needed functionality on lists \
which is not going to go into List::Util."
HOMEPAGE="https://metacpan.org/pod/List::SomeUtils"
COPYRIGHT="2011 Aaron Crane
2004 - 2010 by Tassilo von Parseval
2013 - 2015 by Jens Rehsack
2022 by Dave Rolsky"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-$portVersion.tar.gz"
CHECKSUM_SHA256="fab30372e4c67bf5a46062da38d1d0c8756279feada866eb439fa29571a2dc7b"
SOURCE_DIR="List-SomeUtils-$portVersion"
ARCHITECTURES="any"
PROVIDES="
list_someutils = $portVersion
"
REQUIRES="
haiku
list_someutils_xs
module_implementation
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
list_someutils_xs
module_implementation
test_leaktrace
"
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
}

View File

@@ -0,0 +1,58 @@
SUMMARY="XS implementation for List::SomeUtils"
DESCRIPTION="There are no user-facing parts here. See List::SomeUtils for API details."
HOMEPAGE="https://metacpan.org/pod/List::SomeUtils::XS"
COPYRIGHT="2011 Aaron Crane
2004 - 2010 by Tassilo von Parseval
2013 - 2015 by Jens Rehsack
2018 by Dave Rolsky"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-XS-$portVersion.tar.gz"
CHECKSUM_SHA256="4f9e4d2622481b79cc298e8e29de8a30943aff9f4be7992c0ebb7b22e5b4b297"
SOURCE_DIR="List-SomeUtils-XS-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
list_someutils_xs$secondaryArchSuffix = $portVersion
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES+="
list_someutils_xs = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
vendor_perl
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
"
TEST_REQUIRES="
test_leaktrace$secondaryArchSuffix
test_warnings
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make pure_install
}
TEST()
{
make test
}