mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
test_warn: new perl module package
This is required for tests of some other packages.
This commit is contained in:
54
dev-perl/test_warn/test_warn-0.37.recipe
Normal file
54
dev-perl/test_warn/test_warn-0.37.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user