mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
51 lines
1013 B
Bash
51 lines
1013 B
Bash
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="3"
|
|
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 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
|
|
}
|