mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
58 lines
1.0 KiB
Bash
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
|
|
}
|