file_find_rule: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-11-30 19:04:29 +01:00
parent 1230805d2b
commit 352236e69a

View File

@@ -0,0 +1,57 @@
SUMMARY="Alternative interface to File::Find"
DESCRIPTION="File::Find::Rule is a friendlier interface to File::Find. It allows you to build \
rules which specify the desired files and directories."
HOMEPAGE="https://metacpan.org/pod/File::Find::Rule"
COPYRIGHT="2002, 2003, 2004, 2006, 2009, 2011 Richard Clamp"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/File-Find-Rule-$portVersion.tar.gz"
CHECKSUM_SHA256="7e6f16cc33eb1f29ff25bee51d513f4b8a84947bbfa18edb2d3cc40a2d64cafe"
SOURCE_DIR="File-Find-Rule-$portVersion"
ARCHITECTURES="any"
PROVIDES="
file_find_rule = $portVersion
cmd:findrule
"
REQUIRES="
haiku
number_compare
text_glob
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
number_compare
text_glob
"
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
}