From 19908b2aad7014a1573c48e4bce0d9f5cf63a9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 17 Sep 2023 11:41:19 +0200 Subject: [PATCH] test_exception: new perl module package This is required for tests of some other packages. --- .../test_exception/test_exception-0.43.recipe | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-perl/test_exception/test_exception-0.43.recipe diff --git a/dev-perl/test_exception/test_exception-0.43.recipe b/dev-perl/test_exception/test_exception-0.43.recipe new file mode 100644 index 000000000..597ebd372 --- /dev/null +++ b/dev-perl/test_exception/test_exception-0.43.recipe @@ -0,0 +1,51 @@ +SUMMARY="Test exception-based code" +DESCRIPTION="This module provides a few convenience methods for testing exception based code. It \ +is built with Test::Builder and plays happily with Test::More and friends." +HOMEPAGE="https://metacpan.org/pod/Test::Exception" +COPYRIGHT="2002-2007 Adrian Howard" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test-Exception-$portVersion.tar.gz" +CHECKSUM_SHA256="156b13f07764f766d8b45a43728f2439af81a3512625438deab783b7883eb533" +SOURCE_DIR="Test-Exception-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + test_exception = $portVersion + " +REQUIRES=" + haiku + sub_uplevel + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + sub_uplevel + " +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 +}