data_compare: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-11-30 19:12:24 +01:00
parent 352236e69a
commit ed8c8777fb

View File

@@ -0,0 +1,57 @@
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="1"
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
}