mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
file_listing: new perl module recipe
This commit is contained in:
54
dev-perl/file_listing/file_listing-6.16.recipe
Normal file
54
dev-perl/file_listing/file_listing-6.16.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user