From 16a444a4e5b2fcd200d76b8812f0261e37151f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 17 Sep 2023 11:35:46 +0200 Subject: [PATCH] test_differences: new perl module package This is required for tests of some other packages. --- .../test_differences-0.71.recipe | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 dev-perl/test_differences/test_differences-0.71.recipe diff --git a/dev-perl/test_differences/test_differences-0.71.recipe b/dev-perl/test_differences/test_differences-0.71.recipe new file mode 100644 index 000000000..b0cfdce9f --- /dev/null +++ b/dev-perl/test_differences/test_differences-0.71.recipe @@ -0,0 +1,57 @@ +SUMMARY="Test strings and data structures and show differences if not ok" +DESCRIPTION="When the code you're testing returns multiple lines, records or data structures and \ +they're just plain wrong, an equivalent to the Unix diff utility may be just what's needed." +HOMEPAGE="https://metacpan.org/pod/Test::Differeces" +COPYRIGHT="Barrie Slaymaker, Curtis \"Ovid\" Poe, and David Cantrell" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-$portVersion.tar.gz" +CHECKSUM_SHA256="cac16a56cd843b0809e5b49199d60d75a8dbad7ca9a08380dbf3f5cc3aaa38d9" +SOURCE_DIR="Test-Differences-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + test_differences = $portVersion + " +REQUIRES=" + haiku + capture_tiny + text_diff + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + capture_tiny + text_diff + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + algorithm_diff + " + +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 +}