regexp_common: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-01-02 20:27:08 +01:00
parent d9a7e0e585
commit adead2652f

View File

@@ -0,0 +1,53 @@
SUMMARY="Provide commonly requested regular expressions"
DESCRIPTION="By default, this module exports a single hash (%RE) that stores or generates \
commonly needed regular expressions.
There is an alternative, subroutine-based syntax."
HOMEPAGE="https://metacpan.org/pod/Regexp::Common"
COPYRIGHT="2001 - 2024, Damian Conway and Abigail"
LICENSE="Artistic
Artistic v2.0
BSD (3-clause)
MIT"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/A/AB/ABIGAIL/Regexp-Common-$portVersion.tar.gz"
CHECKSUM_SHA256="0677afaec8e1300cefe246b4d809e75cdf55e2cc0f77c486d13073b69ab4fbdd"
SOURCE_DIR="Regexp-Common-$portVersion"
ARCHITECTURES="any"
PROVIDES="
regexp_common = $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
}