Files
haikuports/dev-perl/module_runtime/module_runtime-0.018.recipe
2025-12-25 12:10:45 +01:00

61 lines
1.9 KiB
Bash

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)
2025 Graham Knop"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Module-Runtime-$portVersion.tar.gz"
CHECKSUM_SHA256="0bf77ef68e53721914ff554eada20973596310b4e2cf1401fc958601807de577"
SOURCE_DIR="Module-Runtime-$portVersion"
ARCHITECTURES="any"
PROVIDES="
module_runtime = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make $jobArgs
}
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
}