Files
haikuports/dev-perl/test_warn/test_warn-0.37.recipe
2024-07-06 18:04:29 +02:00

55 lines
1.1 KiB
Bash

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="2"
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
}