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 }