From a86768a6866e8e2f2f8168a1a5d59d19d2393cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 3 Nov 2024 21:10:46 +0100 Subject: [PATCH] list_someutils[_xs]: new perl module recipes --- .../list_someutils/list_someutils-0.59.recipe | 60 +++++++++++++++++++ .../list_someutils_xs-0.58.recipe | 58 ++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 dev-perl/list_someutils/list_someutils-0.59.recipe create mode 100644 dev-perl/list_someutils_xs/list_someutils_xs-0.58.recipe diff --git a/dev-perl/list_someutils/list_someutils-0.59.recipe b/dev-perl/list_someutils/list_someutils-0.59.recipe new file mode 100644 index 000000000..cba227127 --- /dev/null +++ b/dev-perl/list_someutils/list_someutils-0.59.recipe @@ -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 +} diff --git a/dev-perl/list_someutils_xs/list_someutils_xs-0.58.recipe b/dev-perl/list_someutils_xs/list_someutils_xs-0.58.recipe new file mode 100644 index 000000000..f442e7563 --- /dev/null +++ b/dev-perl/list_someutils_xs/list_someutils_xs-0.58.recipe @@ -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 +}