text_glob: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-11-30 18:46:43 +01:00
parent 7c52e85997
commit 5e7499e32f

View File

@@ -0,0 +1,50 @@
SUMMARY="Match globbing patterns against text"
DESCRIPTION="Text::Glob implements glob(3) style matching that can be used to match against text, \
rather than fetching names from a filesystem. If you want to do full file globbing use the \
File::Glob module instead."
HOMEPAGE="https://metacpan.org/pod/Text::Glob"
COPYRIGHT="2002, 2003, 2006, 2007 Richard Clamp"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/Text-Glob-$portVersion.tar.gz"
CHECKSUM_SHA256="069ccd49d3f0a2dedb115f4bdc9fbac07a83592840953d1fcdfc39eb9d305287"
SOURCE_DIR="Text-Glob-$portVersion"
ARCHITECTURES="any"
PROVIDES="
text_glob = $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
}