mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
Diffutils: bump version (#12689)
This commit is contained in:
79
sys-apps/diffutils/diffutils-3.12.recipe
Normal file
79
sys-apps/diffutils/diffutils-3.12.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
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-2025 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://ftp.gnu.org/gnu/diffutils/diffutils-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="7c8b7f9fc8609141fdea9cece85249d308624391ff61dedaf528fcb337727dfd"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
diffutils$secondaryArchSuffix = $portVersion
|
||||
cmd:cmp = $portVersion
|
||||
cmd:diff = $portVersion
|
||||
cmd:diff3 = $portVersion
|
||||
cmd:sdiff = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
REPLACES="
|
||||
diffutils
|
||||
"
|
||||
fi
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
defineDebugInfoPackage diffutils$secondaryArchSuffix \
|
||||
$prefix/bin/cmp \
|
||||
$prefix/bin/diff \
|
||||
$prefix/bin/diff3 \
|
||||
$prefix/bin/sdiff
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CFLAGS="-O3 -DB_USE_POSITIVE_POSIX_ERRORS"
|
||||
export CXXFLAGS="-O3 -DB_USE_POSITIVE_POSIX_ERRORS"
|
||||
export LDFLAGS="-lposix_error_mapper"
|
||||
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$prefix/bin \
|
||||
--disable-gcc-warnings
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user