From 362c77cb866b593dd7e883ec5a345b1c65a31d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 30 Nov 2024 20:13:00 +0100 Subject: [PATCH] file_slurper: new perl module recipe --- .../file_slurper/file_slurper-0.014.recipe | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-perl/file_slurper/file_slurper-0.014.recipe diff --git a/dev-perl/file_slurper/file_slurper-0.014.recipe b/dev-perl/file_slurper/file_slurper-0.014.recipe new file mode 100644 index 000000000..bb658378c --- /dev/null +++ b/dev-perl/file_slurper/file_slurper-0.014.recipe @@ -0,0 +1,54 @@ +SUMMARY="A simple, sane and efficient module to slurp a file" +DESCRIPTION="This module provides functions for fast and correct slurping and spewing. All \ +functions are optionally exported. All functions throw exceptions on errors, write functions \ +don't return any meaningful value." +HOMEPAGE="https://metacpan.org/pod/File::Slurper" +COPYRIGHT="2014 by Leon Timmermans" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/File-Slurper-$portVersion.tar.gz" +CHECKSUM_SHA256="d5a36487339888c3cd758e648160ee1d70eb4153cacbaff57846dbcefb344b0c" +SOURCE_DIR="File-Slurper-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + file_slurper = $portVersion + " +REQUIRES=" + haiku + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + test_warnings + " + +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 +}