test_exception: new perl module package

This is required for tests of some other packages.
This commit is contained in:
Joachim Mairböck
2023-09-17 11:41:19 +02:00
parent 57ad4ee810
commit 19908b2aad

View File

@@ -0,0 +1,51 @@
SUMMARY="Test exception-based code"
DESCRIPTION="This module provides a few convenience methods for testing exception based code. It \
is built with Test::Builder and plays happily with Test::More and friends."
HOMEPAGE="https://metacpan.org/pod/Test::Exception"
COPYRIGHT="2002-2007 Adrian Howard"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test-Exception-$portVersion.tar.gz"
CHECKSUM_SHA256="156b13f07764f766d8b45a43728f2439af81a3512625438deab783b7883eb533"
SOURCE_DIR="Test-Exception-$portVersion"
ARCHITECTURES="any"
PROVIDES="
test_exception = $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
}