diff --git a/dev-perl/test_fatal/test_fatal-0.017.recipe b/dev-perl/test_fatal/test_fatal-0.017.recipe new file mode 100644 index 000000000..7f6812065 --- /dev/null +++ b/dev-perl/test_fatal/test_fatal-0.017.recipe @@ -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 +}