mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
116 lines
3.1 KiB
Bash
116 lines
3.1 KiB
Bash
SUMMARY="Address book API based on the KDE Frameworks"
|
|
DESCRIPTION="KContact library provides vcard support."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/kcontacts"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kcontacts-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="386826b3886d6b32a4583e638493ccd3cfb37722faaf318742d70d6bf0e3f0a7"
|
|
SOURCE_DIR="kcontacts-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kcontacts6$secondaryArchSuffix = $portVersion
|
|
lib:libKF6Contacts$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libKF6Codecs$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kcontacts6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF6Contacts$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kcontacts6$secondaryArchSuffix == $portVersion base
|
|
devel:libKF6Codecs$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
kcontacts6_doc = $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libKF6Codecs$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6ConfigCore$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6CoreAddons$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6I18n$secondaryArchSuffix >= $libVersion
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
kde_qdoc_common
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common
|
|
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
cmake --build build --target prepare_docs
|
|
cmake --build build --target generate_docs
|
|
cmake --build build --target generate_qch
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
# cmake --build build --target install_html_docs
|
|
cmake --build build --target install_qch_docs
|
|
|
|
prepareInstalledDevelLib \
|
|
libKF6Contacts
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 94% tests passed, 2 tests failed out of 32
|
|
# From upstream on the failing test eg GERMANY vs GERMANIA
|
|
# The whole addresstest explicitly does
|
|
# qputenv("LANG", "it_CH.UTF-8");
|
|
# Is haiku missing localization of country names? Not sure where the names are supposed to be coming from.
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
ctest --test-dir build --output-on-failure
|
|
}
|