mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
test_fatal: new perl module recipe
This commit is contained in:
56
dev-perl/test_fatal/test_fatal-0.017.recipe
Normal file
56
dev-perl/test_fatal/test_fatal-0.017.recipe
Normal file
@@ -0,0 +1,56 @@
|
||||
SUMMARY="Incredibly simple helpers for testing code with exceptions"
|
||||
DESCRIPTION="Test::Fatal is an alternative to the popular Test::Exception. It does much less, but \
|
||||
should allow greater flexibility in testing exception-throwing code with about the same amount of \
|
||||
typing.
|
||||
It exports one routine by default: exception."
|
||||
HOMEPAGE="https://metacpan.org/pod/Test::Fatal"
|
||||
COPYRIGHT="2010 by Ricardo Signes"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Test-Fatal-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="37dfffdafb84b762efe96b02fb2aa41f37026c73e6b83590db76229697f3c4a6"
|
||||
SOURCE_DIR="Test-Fatal-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
test_fatal = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
try_tiny
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
try_tiny
|
||||
"
|
||||
|
||||
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