test_requires, add perl module (#9392)

This commit is contained in:
Schrijvers Luc
2023-09-09 07:35:12 +00:00
committed by GitHub
parent 39572f46d3
commit b251e6e0f5

View File

@@ -0,0 +1,40 @@
SUMMARY="Checks to see if the module can be loaded"
DESCRIPTION="Test::Requires checks to see if the module can be loaded.
If this fails rather than failing tests this skips all tests."
HOMEPAGE="https://metacpan.org/pod/Test::Requires"
COPYRIGHT="2013 by Tokuhiro Matsuno"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Test-Requires-$portVersion.tar.gz"
CHECKSUM_SHA256="4b88de549597eecddf7c3c38a4d0204a16f59ad804577b671896ac04e24e040f"
SOURCE_DIR="Test-Requires-$portVersion"
ARCHITECTURES="any"
PROVIDES="
test_requires = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make install DESTDIR="${DESTDIR}"
}