74 lines
1.9 KiB
Bash
74 lines
1.9 KiB
Bash
SUMMARY="Several programs for finding differences between files"
|
|
DESCRIPTION="You can use the diff command to show differences between two \
|
|
files, or each corresponding file in two directories. diff outputs \
|
|
differences between files line by line in any of several formats, selectable \
|
|
by command line options. This set of differences is often called a 'diff' or \
|
|
'patch'.
|
|
You can use the cmp command to show the offsets and line numbers where two \
|
|
files differ. cmp can also show all the characters that differ between the two \
|
|
files, side by side.
|
|
You can use the diff3 command to show differences among three files. When two \
|
|
people have made independent changes to a common original, diff3 can report \
|
|
the differences between the original and the two changed versions, and can \
|
|
produce a merged file that contains both persons' changes together with \
|
|
warnings about conflicts.
|
|
You can use the sdiff command to merge two files interactively."
|
|
HOMEPAGE="https://www.gnu.org/software/diffutils/"
|
|
COPYRIGHT="1992-2016 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="http://ftpmirror.gnu.org/diffutils/diffutils-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6"
|
|
PATCHES="diffutils-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
diffutils = $portVersion
|
|
cmd:cmp = $portVersion
|
|
cmd:diff = $portVersion
|
|
cmd:diff3 = $portVersion
|
|
cmd:sdiff = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
defineDebugInfoPackage diffutils \
|
|
$binDir/cmp \
|
|
$binDir/diff \
|
|
$binDir/diff3 \
|
|
$binDir/sdiff
|
|
|
|
BUILD()
|
|
{
|
|
export CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS"
|
|
export CXXFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS"
|
|
export LDFLAGS="-lposix_error_mapper"
|
|
|
|
runConfigure ./configure \
|
|
--disable-gcc-warnings
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/charset.alias
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|