From 3c048e470d191da7cd5f8d80b0877501aa2728e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 25 Jan 2025 14:59:23 +0100 Subject: [PATCH] file_listing: new perl module recipe --- .../file_listing/file_listing-6.16.recipe | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-perl/file_listing/file_listing-6.16.recipe diff --git a/dev-perl/file_listing/file_listing-6.16.recipe b/dev-perl/file_listing/file_listing-6.16.recipe new file mode 100644 index 000000000..416bee1e3 --- /dev/null +++ b/dev-perl/file_listing/file_listing-6.16.recipe @@ -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 +}