Files
haikuports/kde-frameworks/kitemmodels/kitemmodels6-6.25.0.recipe
2026-04-14 09:30:16 +00:00

113 lines
3.0 KiB
Bash

SUMMARY="Set of item models extending the Qt model-view framework"
DESCRIPTION="KItemModels provides the following models:
KBreadcrumbSelectionModel - Selects the parents of selected items to create \
breadcrumbs
KCheckableProxyModel - Adds a checkable capability to a source model
KConcatenateRowsProxyModel - Concatenates rows from multiple source models
KDescendantsProxyModel - Proxy Model for restructuring a Tree into a list
KExtraColumnsProxyModel - Adds columns after existing columns
KLinkItemSelectionModel - Share a selection in multiple views which do not \
have the same source model
KModelIndexProxyMapper - Mapping of indexes and selections through proxy \
models
KRearrangeColumnsProxyModel - Can reorder and hide columns from the source \
model
KRecursiveFilterProxyModel - Recursive filtering of models
KSelectionProxyModel - A Proxy Model which presents a subset of its source \
model to observers"
HOMEPAGE="https://invent.kde.org/frameworks/kitemmodels"
COPYRIGHT="2010-2026 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kitemmodels-${portVersion}.tar.xz"
CHECKSUM_SHA256="ab78119a00b84eac65ffc986df30fbf9b1b8d00635e8fc626372e84580d158ca"
SOURCE_DIR="kitemmodels-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kitemmodels6$secondaryArchSuffix = $portVersion
lib:libKF6ItemModels$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
"
PROVIDES_devel="
kitemmodels6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6ItemModels$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kitemmodels6$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
kitemmodels6_doc = $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
kde_qdoc_common
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
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 \
libKF6ItemModels
packageEntries devel \
$developDir \
$libDir/cmake
packageEntries doc \
$documentationDir
}
TEST()
{
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
ctest --test-dir build --output-on-failure
}