From 4b1fa6417ae8797496ea56d246e643c7d8b23664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 27 Oct 2024 21:08:36 +0100 Subject: [PATCH] test_file: new perl module recipe --- dev-perl/test_file/test_file-1.993.recipe | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 dev-perl/test_file/test_file-1.993.recipe diff --git a/dev-perl/test_file/test_file-1.993.recipe b/dev-perl/test_file/test_file-1.993.recipe new file mode 100644 index 000000000..2f847b678 --- /dev/null +++ b/dev-perl/test_file/test_file-1.993.recipe @@ -0,0 +1,58 @@ +SUMMARY="Test file attributes" +DESCRIPTION="This modules provides a collection of test utilities for file attributes. +Some file attributes depend on the owner of the process testing the file in the same way the file \ +test operators do. For instance, root (or super-user or Administrator) may always be able to read \ +files no matter the permissions. +Some attributes don't make sense outside of Unix, either, so some tests automatically skip if \ +they think they won't work on the platform. If you have a way to make these functions work on \ +Windows, for instance, please send me a patch. :) If you want to pretend to be Windows on a \ +non-Windows machine (for instance, to test skip()), you can set the PRETEND_TO_BE_WINDOWS \ +environment variable. +The optional NAME parameter for every function allows you to specify a name for the test. If not \ +supplied, a reasonable default will be generated." +HOMEPAGE="https://metacpan.org/pod/Test::File" +COPYRIGHT="2002-2023, brian d foy" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Test-File-$portVersion.tar.gz" +CHECKSUM_SHA256="ef2ffe1aaec7b42d874ad411ec647547b9b9bc2f5fb93e49e3399488456afc7a" +SOURCE_DIR="Test-File-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + test_file = $portVersion + " +REQUIRES=" + haiku + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +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 +}