Files
haikuports/kde-misc/kdiff3/kdiff3-0.9.98.recipe
fbrosson a17ad964b0 kdiff3: fix whitespace issue in patch to allow hp --no-git-repo (#2147)
to work. Previously, it only worked without the "--no-git-repo".

Shrink the patch a bit by dropping an unneeded indentation change.

Use commandBinDir & commandSuffix to move kdiff3 to $prefix/bin/.

Switch SOURCE_URI to https and fix COPYRIGHT.
2018-01-23 09:59:32 +00:00

85 lines
2.4 KiB
Bash

SUMMARY="A diff and merge tool"
DESCRIPTION="KDiff3 is a diff and merge program that:
* compares or merges two or three text input files or directories,
* shows the differences line by line and character by character (!),
* provides an automatic merge-facility and
* an integrated editor for comfortable solving of merge-conflicts,
* supports Unicode, UTF-8 and other codecs, autodetection via byte-order-mark \
'BOM'
* supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.),
* Printing of differences,
* Manual alignment of lines,
* Automatic merging of version control history ($Log$),
* and has an intuitive graphical user interface."
HOMEPAGE="http://kdiff3.sourceforge.net/"
COPYRIGHT="2002-2014 Joachim Eibl"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://downloads.sourceforge.net/kdiff3/kdiff3-$portVersion.tar.gz"
CHECKSUM_SHA256="802c1ababa02b403a5dca15955c01592997116a24909745016931537210fd668"
PATCHES="kdiff3-$portVersion.patchset"
ADDITIONAL_FILES="kdiff3.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
kdiff3$secondaryArchSuffix = $portVersion
cmd:kdiff3$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
cmd:qmake$secondaryArchSuffix >= 5.7
"
BUILD()
{
mkdir -p build
cd build
qmake CONFIG+=release ../src-QT4/kdiff3.pro
make $jobArgs
}
INSTALL()
{
install -d $commandBinDir
install -t $commandBinDir build/kdiff3
local APP_SIGNATURE="application/x-vnd.qt5-kdiff3"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/kdiff3.rdef.in > kdiff3.rdef
addResourcesToBinaries kdiff3.rdef $commandBinDir/kdiff3
addAppDeskbarSymlink $commandBinDir/kdiff3 KDiff3
}