From fb285cd7da95b59e3c7d364abe40d26a8d0ec7cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 13 Oct 2024 19:16:20 +0200 Subject: [PATCH] module_runtime: new perl module package --- .../module_runtime-0.016.recipe | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 dev-perl/module_runtime/module_runtime-0.016.recipe diff --git a/dev-perl/module_runtime/module_runtime-0.016.recipe b/dev-perl/module_runtime/module_runtime-0.016.recipe new file mode 100644 index 000000000..2844097d6 --- /dev/null +++ b/dev-perl/module_runtime/module_runtime-0.016.recipe @@ -0,0 +1,59 @@ +SUMMARY="Runtime module handling" +DESCRIPTION="The functions exported by this module deal with runtime handling of Perl modules, \ +which are normally handled at compile time. This module avoids using any other modules, so that \ +it can be used in low-level infrastructure. +The parts of this module that work with module names apply the same syntax that is used for \ +barewords in Perl source. In principle this syntax can vary between versions of Perl, and this \ +module applies the syntax of the Perl on which it is running. In practice the usable syntax \ +hasn't changed yet. There's some intent for Unicode module names to be supported in the future, \ +but this hasn't yet amounted to any consistent facility. +The functions of this module whose purpose is to load modules include workarounds for three old \ +Perl core bugs regarding require. These workarounds are applied on any Perl version where the \ +bugs exist, except for a case where one of the bugs cannot be adequately worked around in pure \ +Perl." +HOMEPAGE="https://metacpan.org/pod/Module::Runtime" +COPYRIGHT="2004, 2006, 2007, 2009, 2010, 2011, 2012, 2014, 2017 Andrew Main (Zefram)" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/Module-Runtime-$portVersion.tar.gz" +CHECKSUM_SHA256="68302ec646833547d410be28e09676db75006f4aa58a11f3bdb44ffe99f0f024" +SOURCE_DIR="Module-Runtime-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + module_runtime = $portVersion + " +REQUIRES=" + haiku + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + module_build + " +BUILD_PREREQUIRES=" + cmd:perl + " + +BUILD() +{ + perl Build.PL --prefix $prefix + ./Build +} + +INSTALL() +{ + ./Build 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() +{ + ./Build test +}