mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
test_exception: new perl module package
This is required for tests of some other packages.
This commit is contained in:
51
dev-perl/test_exception/test_exception-0.43.recipe
Normal file
51
dev-perl/test_exception/test_exception-0.43.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user