mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
114 lines
3.1 KiB
Bash
114 lines
3.1 KiB
Bash
SUMMARY="Library to compare files and strings"
|
|
DESCRIPTION="This package contains a library used to compare files and \
|
|
strings, and is used in Kompare and KDevelop.
|
|
|
|
This package is part of the KDE Software Development Kit module."
|
|
HOMEPAGE="https://invent.kde.org/sdk/libkomparediff2/"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/libkomparediff2-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="1e0e82886f3186ab40debbda475f16d6f1922a4b5546540b9cc226d29a969fbc"
|
|
SOURCE_DIR="libkomparediff2-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.4.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libkomparediff2$secondaryArchSuffix = $portVersion
|
|
lib:libkomparediff2$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5Auth$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKF5KIOCore$secondaryArchSuffix
|
|
lib:libKF5Service$secondaryArchSuffix
|
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF5WindowSystem$secondaryArchSuffix
|
|
lib:libKF5XmlGui$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
REPLACES="
|
|
libkomparediff2_5$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libkomparediff2${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libkomparediff2$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libkomparediff2$secondaryArchSuffix == $portVersion base
|
|
"
|
|
CONFLICTS_devel="
|
|
libkomparediff2_kf6${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF5Auth$secondaryArchSuffix
|
|
devel:libKF5Bookmarks$secondaryArchSuffix
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5Completion$secondaryArchSuffix
|
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKF5ItemViews$secondaryArchSuffix
|
|
devel:libKF5JobWidgets$secondaryArchSuffix
|
|
devel:libKF5KIOCore$secondaryArchSuffix
|
|
devel:libKF5Service$secondaryArchSuffix
|
|
devel:libKF5Solid$secondaryArchSuffix
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF5WindowSystem$secondaryArchSuffix
|
|
devel:libKF5XmlGui$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt
|
|
cmd:msgmerge
|
|
cmd:python3
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libkomparediff2
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|