Files
haikuports/kde-frameworks/kitemviews/kitemviews-5.65.0.recipe
2019-12-15 16:06:39 +03:00

76 lines
1.7 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://github.com/KDE/kitemviews/"
COPYRIGHT="2010-2019 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kitemviews/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="5c4d4c512dcb70569d75a5139d5c9adbc82a855576117ed2b769ce7320f272e4"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kitemviews$secondaryArchSuffix = $portVersion
lib:libKF5ItemViews$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
PROVIDES_devel="
kitemviews${secondaryArchSuffix}_devel = $portVersion
devel:libKF5ItemViews$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kitemviews$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5ItemViews
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}