Files
haikuports/dev-perl/text_diff/text_diff-1.45.recipe
2025-12-24 20:12:58 +01:00

62 lines
1.6 KiB
Bash

SUMMARY="Perform diffs on files and record sets"
DESCRIPTION="diff() provides a basic set of services akin to the GNU diff utility. It is not \
anywhere near as feature complete as GNU diff, but it is better integrated with Perl and \
available on all platforms. It is often faster than shelling out to a system's diff executable \
for small files, and generally slower on larger files.
Relies on Algorithm::Diff for, well, the algorithm. This may not produce the same exact diff as \
a system's local diff executable, but it will be a valid diff and comprehensible by patch. We \
haven't seen any differences between Algorithm::Diff's logic and GNU diff's, but we have not \
examined them to make sure they are indeed identical."
HOMEPAGE="https://metacpan.org/pod/Text::Diff"
COPYRIGHT="2001-2017 by Adam Kennedy"
LICENSE="Artistic"
REVISION="4"
SOURCE_URI="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Text-Diff-$portVersion.tar.gz"
CHECKSUM_SHA256="e8baa07b1b3f53e00af3636898bbf73aec9a0ff38f94536ede1dbe96ef086f04"
SOURCE_DIR="Text-Diff-$portVersion"
ARCHITECTURES="any"
PROVIDES="
text_diff = $portVersion
"
REQUIRES="
haiku
algorithm_diff
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
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
}