algorithm_diff: new perl module

This is required for some tests of other packages.
This commit is contained in:
Joachim Mairböck
2023-09-17 10:47:05 +02:00
parent cfc2342340
commit dde181c5bc

View File

@@ -0,0 +1,53 @@
SUMMARY="Compute \`intelligent' differences between two files / lists"
DESCRIPTION="This is a module for computing the difference between two files, two \
strings, or any other two lists of things. It uses an intelligent \
algorithm similar to (or identical to) the one used by the Unix \"diff\" \
program. It is guaranteed to find the *smallest possible* set of \
differences."
HOMEPAGE="https://metacpan.org/pod/Algorithm::Diff"
COPYRIGHT="2000-2004 Ned Konz
Tye McQueen"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Algorithm-Diff-$portVersion.tar.gz"
CHECKSUM_SHA256="0022da5982645d9ef0207f3eb9ef63e70e9713ed2340ed7b3850779b0d842a7d"
SOURCE_DIR="Algorithm-Diff-$portVersion"
ARCHITECTURES="any"
PROVIDES="
algorithm_diff = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
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
}