Files
haikuports/dev-perl/data_compare/data_compare-1.29.recipe
2025-12-25 14:23:40 +01:00

58 lines
1.0 KiB
Bash

SUMMARY="Compare perl data structures"
DESCRIPTION="Compare two perl data structures recursively. Returns 0 if the structures differ, \
else returns 1."
HOMEPAGE="https://metacpan.org/pod/Data::Compare"
COPYRIGHT="1999-2001 Fabien Tassin
2003 - 2023 David Cantrell"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/Data-Compare-$portVersion.tar.gz"
CHECKSUM_SHA256="53c9db3b93263c88aaa3c4072d819eaded024d7a36b38c0c37737d288d5afa8c"
SOURCE_DIR="Data-Compare-$portVersion"
ARCHITECTURES="any"
PROVIDES="
data_compare = $portVersion
"
REQUIRES="
haiku
clone
file_find_rule
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
clone
file_find_rule
"
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
}