mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
regexp_common: new perl module recipe
This commit is contained in:
53
dev-perl/regexp_common/regexp_common-2024080801.recipe
Normal file
53
dev-perl/regexp_common/regexp_common-2024080801.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user