mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
90 lines
2.3 KiB
Bash
90 lines
2.3 KiB
Bash
SUMMARY="Address book API based on KDE Frameworks"
|
|
DESCRIPTION="KContact library provides vcard support."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/kcontacts"
|
|
COPYRIGHT="2010-2022 KDE Organisation"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/kcontacts-v$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="721fd0a78a902fff582340f3062a1266b07ba9bfe72006d1031235b20ae38c3a"
|
|
SOURCE_DIR="kcontacts-v$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kcontacts$secondaryArchSuffix = $portVersion
|
|
lib:libKF5Contacts$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigGui$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kcontacts${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF5Contacts$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kcontacts$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= 5.93
|
|
devel:libKF5Codecs$secondaryArchSuffix == $portVersion
|
|
devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix == $portVersion
|
|
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
|
|
devel:libKF5I18n$secondaryArchSuffix == $portVersion
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python3
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
prepareInstalledDevelLib \
|
|
libKF5Contacts
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir/Qt5 \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 94% tests passed, 2 tests failed out of 32
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
make -Cbuild test
|
|
}
|