mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-20 18:50:08 +02:00
78 lines
2.2 KiB
Bash
78 lines
2.2 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-2015 by Joachim Eibl"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="http://sourceforge.net/projects/kdiff3/files/kdiff3/$portVersion/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"
|
|
|
|
PROVIDES="
|
|
kdiff3$secondaryArchSuffix = $portVersion
|
|
cmd:kdiff3$secondaryArchSuffix = $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:make
|
|
cmd:qmake$secondaryArchSuffix >=5.7
|
|
cmd:g++$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
qmake CONFIG+=release ../src-QT4/kdiff3.pro
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
cp -af build/kdiff3 $binDir
|
|
|
|
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 $binDir/kdiff3
|
|
addAppDeskbarSymlink $binDir/kdiff3 KDiff3
|
|
}
|