mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
test_differences: new perl module package
This is required for tests of some other packages.
This commit is contained in:
57
dev-perl/test_differences/test_differences-0.71.recipe
Normal file
57
dev-perl/test_differences/test_differences-0.71.recipe
Normal file
@@ -0,0 +1,57 @@
|
||||
SUMMARY="Test strings and data structures and show differences if not ok"
|
||||
DESCRIPTION="When the code you're testing returns multiple lines, records or data structures and \
|
||||
they're just plain wrong, an equivalent to the Unix diff utility may be just what's needed."
|
||||
HOMEPAGE="https://metacpan.org/pod/Test::Differeces"
|
||||
COPYRIGHT="Barrie Slaymaker, Curtis \"Ovid\" Poe, and David Cantrell"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cac16a56cd843b0809e5b49199d60d75a8dbad7ca9a08380dbf3f5cc3aaa38d9"
|
||||
SOURCE_DIR="Test-Differences-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
test_differences = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
capture_tiny
|
||||
text_diff
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
capture_tiny
|
||||
text_diff
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
algorithm_diff
|
||||
"
|
||||
|
||||
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