From 2c2e6d785c7a576950a504f5ba5a3fb6cf8015a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 17 Sep 2023 11:42:30 +0200 Subject: [PATCH] test_warn: new perl module package This is required for tests of some other packages. --- dev-perl/test_warn/test_warn-0.37.recipe | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-perl/test_warn/test_warn-0.37.recipe diff --git a/dev-perl/test_warn/test_warn-0.37.recipe b/dev-perl/test_warn/test_warn-0.37.recipe new file mode 100644 index 000000000..efb6af3f6 --- /dev/null +++ b/dev-perl/test_warn/test_warn-0.37.recipe @@ -0,0 +1,54 @@ +SUMMARY="Perl extension to test methods for warnings" +DESCRIPTION="A good style of Perl programming calls for a lot of diverse regression tests. + +This module provides a few convenience methods for testing warning based-code." +HOMEPAGE="https://metacpan.org/pod/Test::Warn" +COPYRIGHT="2002 by Janek Schleicher + 2007-2014 by Alexandr Ciornii + 2015-2018 by Janek Schleicher" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BI/BIGJ/Test-Warn-$portVersion.tar.gz" +CHECKSUM_SHA256="98ca32e7f2f5ea89b8bfb9a0609977f3d153e242e2e51705126cb954f1a06b57" +SOURCE_DIR="Test-Warn-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + test_warn = $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 +}