mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
101 lines
2.4 KiB
Bash
101 lines
2.4 KiB
Bash
SUMMARY="Set of item views extending the Qt model-view framework"
|
|
DESCRIPTION="KItemViews includes a set of views, which can be used with item \
|
|
models. It includes views for categorizing lists and to add search filters to \
|
|
flat and hierarchical lists."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/kitemviews"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kitemviews-${portVersion}.tar.xz"
|
|
CHECKSUM_SHA256="d5865512eee33997e97b766acaccb32236b93e0f81a1a7912065cc7c02b3f252"
|
|
SOURCE_DIR="kitemviews-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kitemviews6$secondaryArchSuffix = $portVersion
|
|
lib:libKF6ItemViews$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kitemviews6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF6ItemViews$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kitemviews6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
kitemviews6_doc = $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$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 \
|
|
libKF6ItemViews
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
|
|
ctest --test-dir build --output-on-failure
|
|
}
|