mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
57 lines
1.1 KiB
Bash
57 lines
1.1 KiB
Bash
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="b8d2cccf9ee467271bc478f9cf7eba49545452be9302ae359bc538b8bf687cd6"
|
|
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
|
|
}
|