1SUMMARY="A property editing framework with editor widget"
2DESCRIPTION="KProperty is a property editing framework with editor widget similar to what is known from Qt Designer.\
3It is useful in applications such as IDEs where large amounts of properties are available for the user to edit."
4HOMEPAGE="https://invent.kde.org/libraries/kproperty/"
5COPYRIGHT="2010-2019 KDE Organisation"
6LICENSE="GNU LGPL v2"
7REVISION="1"
8SOURCE_URI="https://download.kde.org/stable/kproperty/src/kproperty-$portVersion.tar.xz"
9CHECKSUM_SHA256="67af0c2d74715957bd5373a6a30589ff0a996cb1d267dfd0538dccaa9a768dfa"
10
11ARCHITECTURES="all !x86_gcc2"
12SECONDARY_ARCHITECTURES="x86"
13
14PROVIDES="
15	kproperty$secondaryArchSuffix = $portVersion
16	lib:libKPropertyCore3$secondaryArchSuffix = $portVersion compat >= 3
17	lib:libKPropertyWidgets3$secondaryArchSuffix = $portVersion compat >= 3
18	"
19REQUIRES="
20	haiku$secondaryArchSuffix
21	lib:libKF5ConfigCore$secondaryArchSuffix
22	lib:libKF5ConfigGui$secondaryArchSuffix
23	lib:libKF5CoreAddons$secondaryArchSuffix
24	lib:libKF5GuiAddons$secondaryArchSuffix
25	lib:libKF5WidgetsAddons$secondaryArchSuffix
26	lib:libQt5Core$secondaryArchSuffix
27	"
28
29PROVIDES_devel="
30	kproperty${secondaryArchSuffix}_devel = $portVersion
31	devel:libKPropertyCore3$secondaryArchSuffix = $portVersion compat >= 3
32	devel:libKPropertyWidgets3$secondaryArchSuffix = $portVersion compat >= 3
33	"
34REQUIRES_devel="
35	kproperty$secondaryArchSuffix == $portVersion base
36	"
37
38BUILD_REQUIRES="
39	haiku${secondaryArchSuffix}_devel
40	extra_cmake_modules$secondaryArchSuffix >= 5.115
41	devel:libKF5ConfigCore$secondaryArchSuffix
42	devel:libKF5ConfigGui$secondaryArchSuffix
43	devel:libKF5CoreAddons$secondaryArchSuffix
44	devel:libKF5GuiAddons$secondaryArchSuffix
45	devel:libKF5WidgetsAddons$secondaryArchSuffix
46	devel:libQt5Core$secondaryArchSuffix
47	"
48BUILD_PREREQUIRES="
49	cmd:cmake
50	cmd:g++$secondaryArchSuffix
51	cmd:make
52	cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
53	"
54
55BUILD()
56{
57	mkdir -p build
58	cd build
59
60	cmake .. $cmakeDirArgs \
61		-DCMAKE_BUILD_TYPE=Release \
62		-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
63		-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
64
65	make $jobArgs
66}
67
68INSTALL()
69{
70	cd build
71	make install
72
73	prepareInstalledDevelLibs \
74		libKPropertyCore3 \
75		libKPropertyWidgets3
76	fixPkgconfig
77
78	packageEntries devel $developDir
79}
80
81TEST()
82{
83	cd build
84	make test
85}
86