From 69c2d0c70c85fc788e49524b5e63bbfde3739242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 26 Oct 2024 15:25:55 +0200 Subject: [PATCH] sub_exporter_progressive: new perl module recipe --- .../sub_exporter_progressive-0.001013.recipe | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 dev-perl/sub_exporter_progressive/sub_exporter_progressive-0.001013.recipe diff --git a/dev-perl/sub_exporter_progressive/sub_exporter_progressive-0.001013.recipe b/dev-perl/sub_exporter_progressive/sub_exporter_progressive-0.001013.recipe new file mode 100644 index 000000000..5429033e0 --- /dev/null +++ b/dev-perl/sub_exporter_progressive/sub_exporter_progressive-0.001013.recipe @@ -0,0 +1,56 @@ +SUMMARY="Only use Sub::Exporter if you need it" +DESCRIPTION="Sub::Exporter is an incredibly powerful module, but with that power comes great \ +responsibility, er- as well as some runtime penalties. This module is a Sub::Exporter wrapper \ +that will let your users just use Exporter if all they are doing is picking exports, but use \ +Sub::Exporter if your users try to use Sub::Exporter's more advanced features, like renaming \ +exports, if they try to use them. + +Note that this module will export @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables for \ +Exporter to work. Additionally, if your package uses advanced Sub::Exporter features like \ +currying, this module will only ever use Sub::Exporter, so you might as well use it directly." +HOMEPAGE="https://metacpan.org/pod/Sub::Exporter::Progressive" +COPYRIGHT="2016 by Arthur Axel \"fREW\" Schmidt" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/F/FR/FREW/Sub-Exporter-Progressive-$portVersion.tar.gz" +CHECKSUM_SHA256="d535b7954d64da1ac1305b1fadf98202769e3599376854b2ced90c382beac056" +SOURCE_DIR="Sub-Exporter-Progressive-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + sub_exporter_progressive = $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 +}