file_listing: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-01-25 14:59:23 +01:00
parent b54cee39ee
commit 3c048e470d

View File

@@ -0,0 +1,54 @@
SUMMARY="Parse directory listing"
DESCRIPTION="This module exports a single function called parse_dir, which can be used to parse \
directory listings."
HOMEPAGE="https://metacpan.org/pod/File::Listing"
COPYRIGHT="1996-2022 by Gisle Aas"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Listing-$portVersion.tar.gz"
CHECKSUM_SHA256="189b3a13fc0a1ba412b9d9ec5901e9e5e444cc746b9f0156d4399370d33655c6"
SOURCE_DIR="File-Listing-$portVersion"
ARCHITECTURES="any"
PROVIDES="
file_listing = $portVersion
"
REQUIRES="
haiku
http_date
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
http_date
"
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
}