summaryrefslogtreecommitdiff
path: root/dev-qt
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-08-24 10:56:42 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-09-05 09:01:06 -0400
commit589839627b4ae27f6b84089c33bf10d077fd2533 (patch)
treeb276c4efc5b7fdecaeee1fc008a0d802dd005e33 /dev-qt
parentdev-qt/qt3d: optional qml+vulkan, tidy features/deps (qt6) (diff)
downloadgentoo-589839627b4ae27f6b84089c33bf10d077fd2533.tar.gz
gentoo-589839627b4ae27f6b84089c33bf10d077fd2533.tar.bz2
gentoo-589839627b4ae27f6b84089c33bf10d077fd2533.zip
dev-qt/qtcharts: make qml optional (qt6)
On a side-note CMakeLists.txt noisily looks for MultiMedia rather than Multimedia which fails, but nothing actually uses this that I can see either way. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt')
-rw-r--r--dev-qt/qtcharts/qtcharts-6.5.2-r1.ebuild (renamed from dev-qt/qtcharts/qtcharts-6.5.2.ebuild)12
-rw-r--r--dev-qt/qtcharts/qtcharts-6.5.9999.ebuild12
-rw-r--r--dev-qt/qtcharts/qtcharts-6.9999.ebuild12
3 files changed, 33 insertions, 3 deletions
diff --git a/dev-qt/qtcharts/qtcharts-6.5.2.ebuild b/dev-qt/qtcharts/qtcharts-6.5.2-r1.ebuild
index 4a6f9651a9d7..692575c67c31 100644
--- a/dev-qt/qtcharts/qtcharts-6.5.2.ebuild
+++ b/dev-qt/qtcharts/qtcharts-6.5.2-r1.ebuild
@@ -11,8 +11,18 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64"
fi
+IUSE="qml"
+
RDEPEND="
=dev-qt/qtbase-${PV}*:6[gui,opengl,widgets]
- =dev-qt/qtdeclarative-${PV}*:6
+ qml? ( =dev-qt/qtdeclarative-${PV}*:6 )
"
DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package qml Qt6Qml)
+ )
+
+ qt6-build_src_configure
+}
diff --git a/dev-qt/qtcharts/qtcharts-6.5.9999.ebuild b/dev-qt/qtcharts/qtcharts-6.5.9999.ebuild
index 4a6f9651a9d7..692575c67c31 100644
--- a/dev-qt/qtcharts/qtcharts-6.5.9999.ebuild
+++ b/dev-qt/qtcharts/qtcharts-6.5.9999.ebuild
@@ -11,8 +11,18 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64"
fi
+IUSE="qml"
+
RDEPEND="
=dev-qt/qtbase-${PV}*:6[gui,opengl,widgets]
- =dev-qt/qtdeclarative-${PV}*:6
+ qml? ( =dev-qt/qtdeclarative-${PV}*:6 )
"
DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package qml Qt6Qml)
+ )
+
+ qt6-build_src_configure
+}
diff --git a/dev-qt/qtcharts/qtcharts-6.9999.ebuild b/dev-qt/qtcharts/qtcharts-6.9999.ebuild
index 4a6f9651a9d7..692575c67c31 100644
--- a/dev-qt/qtcharts/qtcharts-6.9999.ebuild
+++ b/dev-qt/qtcharts/qtcharts-6.9999.ebuild
@@ -11,8 +11,18 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64"
fi
+IUSE="qml"
+
RDEPEND="
=dev-qt/qtbase-${PV}*:6[gui,opengl,widgets]
- =dev-qt/qtdeclarative-${PV}*:6
+ qml? ( =dev-qt/qtdeclarative-${PV}*:6 )
"
DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package qml Qt6Qml)
+ )
+
+ qt6-build_src_configure
+}