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 +}