commit:     e69ee1b26d41ce7a3edeb96e2c48ab3b64e6ae4a
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  8 09:27:34 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Sep  9 16:06:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69ee1b2

dev-qt/qtscxml: tighten deps, make qml optional

Missed that qml could be reasonably optional here.

And cannot find where it would need the rest outside examples.
Gui could technically be optional but would need its own USE.
Do not think it is worth it here unless someone wants this.

Maybe missing it, but failed to find anything at all using
opengl, it is listed in the docs but...?

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-qt/qtscxml/metadata.xml                              |  3 +++
 .../{qtscxml-6.5.2.ebuild => qtscxml-6.5.2-r1.ebuild}    | 16 +++++++++++++---
 dev-qt/qtscxml/qtscxml-6.5.9999.ebuild                   | 16 +++++++++++++---
 dev-qt/qtscxml/qtscxml-6.9999.ebuild                     | 16 +++++++++++++---
 4 files changed, 42 insertions(+), 9 deletions(-)

diff --git a/dev-qt/qtscxml/metadata.xml b/dev-qt/qtscxml/metadata.xml
index 702f3c500dd7..ef86286201dd 100644
--- a/dev-qt/qtscxml/metadata.xml
+++ b/dev-qt/qtscxml/metadata.xml
@@ -5,6 +5,9 @@
                <email>[email protected]</email>
                <name>Gentoo Qt Project</name>
        </maintainer>
+       <use>
+               <flag name="qml">Build QML/QtQuick bindings and imports</flag>
+       </use>
        <upstream>
                <bugs-to>https://bugreports.qt.io/</bugs-to>
                <doc>https://doc.qt.io/</doc>

diff --git a/dev-qt/qtscxml/qtscxml-6.5.2.ebuild 
b/dev-qt/qtscxml/qtscxml-6.5.2-r1.ebuild
similarity index 61%
rename from dev-qt/qtscxml/qtscxml-6.5.2.ebuild
rename to dev-qt/qtscxml/qtscxml-6.5.2-r1.ebuild
index c3e29fd2e2f0..3baf824212bc 100644
--- a/dev-qt/qtscxml/qtscxml-6.5.2.ebuild
+++ b/dev-qt/qtscxml/qtscxml-6.5.2-r1.ebuild
@@ -11,14 +11,24 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then
        KEYWORDS="~amd64"
 fi
 
+IUSE="qml"
+
 RDEPEND="
-       ~dev-qt/qtbase-${PV}:6[gui,network,opengl,widgets]
-       ~dev-qt/qtdeclarative-${PV}:6
+       ~dev-qt/qtbase-${PV}:6[gui]
+       qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
 "
 DEPEND="${RDEPEND}"
 
 CMAKE_SKIP_TESTS=(
        # may fail with pid-sandbox, or at least musl/hardened+gcc (exact
-       # conditions unknown but passes without pid, consider flaky)
+       # conditions unknown but passes without pid, considering this flaky)
        tst_qstatemachine
 )
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake_use_find_package qml Qt6Qml)
+       )
+
+       qt6-build_src_configure
+}

diff --git a/dev-qt/qtscxml/qtscxml-6.5.9999.ebuild 
b/dev-qt/qtscxml/qtscxml-6.5.9999.ebuild
index c3e29fd2e2f0..3baf824212bc 100644
--- a/dev-qt/qtscxml/qtscxml-6.5.9999.ebuild
+++ b/dev-qt/qtscxml/qtscxml-6.5.9999.ebuild
@@ -11,14 +11,24 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then
        KEYWORDS="~amd64"
 fi
 
+IUSE="qml"
+
 RDEPEND="
-       ~dev-qt/qtbase-${PV}:6[gui,network,opengl,widgets]
-       ~dev-qt/qtdeclarative-${PV}:6
+       ~dev-qt/qtbase-${PV}:6[gui]
+       qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
 "
 DEPEND="${RDEPEND}"
 
 CMAKE_SKIP_TESTS=(
        # may fail with pid-sandbox, or at least musl/hardened+gcc (exact
-       # conditions unknown but passes without pid, consider flaky)
+       # conditions unknown but passes without pid, considering this flaky)
        tst_qstatemachine
 )
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake_use_find_package qml Qt6Qml)
+       )
+
+       qt6-build_src_configure
+}

diff --git a/dev-qt/qtscxml/qtscxml-6.9999.ebuild 
b/dev-qt/qtscxml/qtscxml-6.9999.ebuild
index c3e29fd2e2f0..3baf824212bc 100644
--- a/dev-qt/qtscxml/qtscxml-6.9999.ebuild
+++ b/dev-qt/qtscxml/qtscxml-6.9999.ebuild
@@ -11,14 +11,24 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then
        KEYWORDS="~amd64"
 fi
 
+IUSE="qml"
+
 RDEPEND="
-       ~dev-qt/qtbase-${PV}:6[gui,network,opengl,widgets]
-       ~dev-qt/qtdeclarative-${PV}:6
+       ~dev-qt/qtbase-${PV}:6[gui]
+       qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
 "
 DEPEND="${RDEPEND}"
 
 CMAKE_SKIP_TESTS=(
        # may fail with pid-sandbox, or at least musl/hardened+gcc (exact
-       # conditions unknown but passes without pid, consider flaky)
+       # conditions unknown but passes without pid, considering this flaky)
        tst_qstatemachine
 )
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake_use_find_package qml Qt6Qml)
+       )
+
+       qt6-build_src_configure
+}

Reply via email to