mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
data_compare: new perl module recipe
This commit is contained in:
57
dev-perl/data_compare/data_compare-1.29.recipe
Normal file
57
dev-perl/data_compare/data_compare-1.29.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user