mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
121 lines
3.4 KiB
Bash
121 lines
3.4 KiB
Bash
SUMMARY="Widgets for configuration dialogs"
|
|
DESCRIPTION="KConfigWidgets provides easy-to-use classes to create configuration dialogs, \
|
|
as well as a set of widgets which uses KConfig \
|
|
to store their settings."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/kconfigwidgets"
|
|
COPYRIGHT="2010-2026 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kconfigwidgets-${portVersion}.tar.xz"
|
|
CHECKSUM_SHA256="c45ee1f4b2ede987efc8deac48710d87d9d37bb8355f0d7e130d557dfb2029a2"
|
|
SOURCE_DIR="kconfigwidgets-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kconfigwidgets6$secondaryArchSuffix = $portVersion
|
|
lib:libKF6ConfigWidgets$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libKF6Codecs$secondaryArchSuffix
|
|
lib:libKF6ColorScheme$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6GuiAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kconfigwidgets6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF6ConfigWidgets$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kconfigwidgets6$secondaryArchSuffix == $portVersion base
|
|
devel:libKF6ColorScheme$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libKF6Codecs$secondaryArchSuffix
|
|
devel:libKF6WidgetsAddons$secondaryArchSuffix
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
kconfigwidgets6_doc = $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libKF6Codecs$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6ColorScheme$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6ConfigCore$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6CoreAddons$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6GuiAddons$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6I18n$secondaryArchSuffix >= $libVersion
|
|
devel:libKF6WidgetsAddons$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$secondaryArchSuffix
|
|
"
|
|
|
|
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 \
|
|
libKF6ConfigWidgets
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 86% tests passed, 1 tests failed out of 7
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
ctest --test-dir build --output-on-failure
|
|
}
|