From 87950440ec699f15a0ed286f2cb8f3493c19d381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 3 Nov 2024 21:19:24 +0100 Subject: [PATCH] list_allutils: new perl module recipe --- .../list_allutils/list_allutils-0.19.recipe | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 dev-perl/list_allutils/list_allutils-0.19.recipe diff --git a/dev-perl/list_allutils/list_allutils-0.19.recipe b/dev-perl/list_allutils/list_allutils-0.19.recipe new file mode 100644 index 000000000..7c2981c18 --- /dev/null +++ b/dev-perl/list_allutils/list_allutils-0.19.recipe @@ -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 +}