mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Add KF6 frameworks, kitemmodels6 (#10520)
This commit is contained in:
101
kde-frameworks/kitemmodels/kitemmodels6-6.2.0.recipe
Normal file
101
kde-frameworks/kitemmodels/kitemmodels6-6.2.0.recipe
Normal file
@@ -0,0 +1,101 @@
|
||||
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-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kitemmodels-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="c066888313260d75a207939334b056b4014ba7364b437325561790eb7b3742ba"
|
||||
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:libKF6CoreAddons$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kitemmodels6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6ItemModels$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kitemmodels6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Qml$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen >= 1.9
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
qthaikuplugins$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-Wno-dev
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6ItemModels
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
|
||||
make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user