Files
haikuports/dev-perl/test_exception/test_exception-0.43.recipe
2024-07-06 17:53:53 +02:00

52 lines
1.0 KiB
Bash

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