From 03e2cc1e6164cdd40c79af1ef615bcc763f34bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 26 Oct 2024 21:12:54 +0200 Subject: [PATCH] test2_plugin_nowarnings: new perl module recipe --- .../test2_plugin_nowarnings-0.10.recipe | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 dev-perl/test2_plugin_nowarnings/test2_plugin_nowarnings-0.10.recipe diff --git a/dev-perl/test2_plugin_nowarnings/test2_plugin_nowarnings-0.10.recipe b/dev-perl/test2_plugin_nowarnings/test2_plugin_nowarnings-0.10.recipe new file mode 100644 index 000000000..0328b9c0d --- /dev/null +++ b/dev-perl/test2_plugin_nowarnings/test2_plugin_nowarnings-0.10.recipe @@ -0,0 +1,56 @@ +SUMMARY="Fail if tests warn" +DESCRIPTION="Loading this plugin causes your tests to fail if there any warnings while they run. \ +Each warning generates a new failing test and the warning content is outputted via diag. +This module uses \$SIG{__WARN__}, so if the code you're testing sets this, then this module will \ +stop working." +HOMEPAGE="https://metacpan.org/pod/Test2::Plugin::NoWarnings" +COPYRIGHT="2024 by Dave Rolsky" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-$portVersion.tar.gz" +CHECKSUM_SHA256="c97cb1122cc6e3e4a079059da71e12f65760bfb0671d19d25a7ec7c5f1f240fb" +SOURCE_DIR="Test2-Plugin-NoWarnings-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + test2_plugin_nowarnings = $portVersion + " +REQUIRES=" + haiku + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + #ipc_run3 # not available + module_pluggable +" + +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 +}