Files
haikuports/dev-perl/test_without_module/test_without_module-0.23.recipe
2025-12-25 16:24:05 +01:00

51 lines
1.1 KiB
Bash

SUMMARY="Test fallback behaviour in absence of modules"
DESCRIPTION="This module allows you to deliberately hide modules from a program even though they \
are installed. This is mostly useful for testing modules that have a fallback when a certain \
dependency module is not installed."
HOMEPAGE="https://metacpan.org/pod/Test::Without::Module"
COPYRIGHT="2003-2024 Max Maischein"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/C/CO/CORION/Test-Without-Module-$portVersion.tar.gz"
CHECKSUM_SHA256="8289e1cd7f57017a816ab4127e29ecd7a754ae7cd5c037c41b3b3bf849c21d21"
SOURCE_DIR="Test-Without-Module-$portVersion"
ARCHITECTURES="any"
PROVIDES="
test_without_module = $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
}