mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 13:20:08 +02:00
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
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="3"
|
|
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
|
|
}
|