From 22f3b5e5fd71b875f3ae03c8973d09f62c503f70 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 8 Sep 2023 16:35:32 +0000 Subject: [PATCH] text_diff, add perl module (#9390) --- dev-perl/text_diff/text_diff-1.45.recipe | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-perl/text_diff/text_diff-1.45.recipe diff --git a/dev-perl/text_diff/text_diff-1.45.recipe b/dev-perl/text_diff/text_diff-1.45.recipe new file mode 100644 index 000000000..4afa9140c --- /dev/null +++ b/dev-perl/text_diff/text_diff-1.45.recipe @@ -0,0 +1,46 @@ +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="1" +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 + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +BUILD() +{ + perl Makefile.PL PREFIX=$prefix + make +} + +INSTALL() +{ + make install DESTDIR="${DESTDIR}" +}