Files
haikuports/dev-perl/test_differences/test_differences-0.71.recipe
2024-07-06 19:15:11 +02:00

58 lines
1.2 KiB
Bash

SUMMARY="Test strings and data structures and show differences if not ok"
DESCRIPTION="When the code you're testing returns multiple lines, records or data structures and \
they're just plain wrong, an equivalent to the Unix diff utility may be just what's needed."
HOMEPAGE="https://metacpan.org/pod/Test::Differeces"
COPYRIGHT="Barrie Slaymaker, Curtis \"Ovid\" Poe, and David Cantrell"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-$portVersion.tar.gz"
CHECKSUM_SHA256="cac16a56cd843b0809e5b49199d60d75a8dbad7ca9a08380dbf3f5cc3aaa38d9"
SOURCE_DIR="Test-Differences-$portVersion"
ARCHITECTURES="any"
PROVIDES="
test_differences = $portVersion
"
REQUIRES="
haiku
capture_tiny
text_diff
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
capture_tiny
text_diff
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
algorithm_diff
"
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
}