Files
haikuports/dev-perl/test_deep/test_deep-1.205.recipe
2025-12-25 16:56:34 +01:00

59 lines
1.7 KiB
Bash

SUMMARY="Extremely flexible deep comparison"
DESCRIPTION="Test::Deep gives you very flexible ways to check that the result you got is the \
result you were expecting. At its simplest it compares two structures by going through each \
level, ensuring that the values match, that arrays and hashes have the same elements and that \
references are blessed into the correct class. It also handles circular data structures without \
getting caught in an infinite loop.
Where it becomes more interesting is in allowing you to do something besides simple exact \
comparisons. With strings, the eq operator checks that 2 strings are exactly equal but sometimes \
that's not what you want. When you don't know exactly what the string should be but you do know \
some things about how it should look, eq is no good and you must use pattern matching instead. \
Test::Deep provides pattern matching for complex data structures."
HOMEPAGE="https://metacpan.org/pod/Test::Deep"
COPYRIGHT="2003 by Fergal Daly"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Test-Deep-$portVersion.tar.gz"
CHECKSUM_SHA256="42781e9943a7a215e662c4973b9feafdc019fd16469bdb849a8537ee58956273"
SOURCE_DIR="Test-Deep-$portVersion"
ARCHITECTURES="any"
PROVIDES="
test_deep = $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
}