commit:     ba909f8b7231c699743a47984ae9d62dbf620522
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 17 17:54:00 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jun 17 19:14:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba909f8b

dev-qt/qtgraphs: new package, add 6.9.1 + live

Not needed by anything in ::gentoo "yet", but qtcharts is
being deprecated in Qt 6.10 and projects are told to migrate
to qtgraphs, so let's get this ready.

Unknown at the moment how much quick3d will be needed/wanted
(required for QtGraphsWidgets), left off-by-default for now
but that can be revisited if packages start needing it.

quick3d is kept conditional given it can be flaky on some
arches (may need to mask depending on future keywords) and
is semi-big to build.

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

 dev-qt/qtgraphs/Manifest                   |  1 +
 dev-qt/qtgraphs/metadata.xml               | 21 ++++++++++++++++++++
 dev-qt/qtgraphs/qtgraphs-6.10.9999.ebuild  | 32 ++++++++++++++++++++++++++++++
 dev-qt/qtgraphs/qtgraphs-6.9.1.ebuild      | 32 ++++++++++++++++++++++++++++++
 dev-qt/qtgraphs/qtgraphs-6.9.9999.ebuild   | 32 ++++++++++++++++++++++++++++++
 dev-qt/qtgraphs/qtgraphs-6.9999.ebuild     | 32 ++++++++++++++++++++++++++++++
 metadata/stabilization-groups/qt/qt6.group |  1 +
 7 files changed, 151 insertions(+)

diff --git a/dev-qt/qtgraphs/Manifest b/dev-qt/qtgraphs/Manifest
new file mode 100644
index 000000000000..8ba7abd765e3
--- /dev/null
+++ b/dev-qt/qtgraphs/Manifest
@@ -0,0 +1 @@
+DIST qtgraphs-everywhere-src-6.9.1.tar.xz 5230620 BLAKE2B 
e87205e821dbde845f72c5bb8577637eb9faa8d1ca4a07a7100e51cf9beeaf17d51f8f88b20c8c853638ef6a077f410cdce046b66485b586ddd56ead906a59bb
 SHA512 
7a2ca552a296ac700cf92a03cb3e1edda678882147b64e858409aa5bbe440b6d7e969c7c68b7364dfa824f167492446c6933dc818decf16692d41359e2782641

diff --git a/dev-qt/qtgraphs/metadata.xml b/dev-qt/qtgraphs/metadata.xml
new file mode 100644
index 000000000000..544e3d5e3b81
--- /dev/null
+++ b/dev-qt/qtgraphs/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Qt Project</name>
+       </maintainer>
+       <upstream>
+               <bugs-to>https://bugreports.qt.io/</bugs-to>
+               <doc>https://doc.qt.io/</doc>
+               <remote-id type="github">qt/qtgraphs</remote-id>
+       </upstream>
+       <use>
+               <flag name="quick3d">Enable support for 3D graphs using 
<pkg>dev-qt/qtquick3d</pkg></flag>
+       </use>
+       <slots>
+               <subslots>
+                       Must only be used by packages that are known to use 
private parts of the Qt API.
+               </subslots>
+       </slots>
+</pkgmetadata>

diff --git a/dev-qt/qtgraphs/qtgraphs-6.10.9999.ebuild 
b/dev-qt/qtgraphs/qtgraphs-6.10.9999.ebuild
new file mode 100644
index 000000000000..49d7c4464b8c
--- /dev/null
+++ b/dev-qt/qtgraphs/qtgraphs-6.10.9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt6-build
+
+DESCRIPTION="Graphs component library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+       KEYWORDS="~amd64"
+fi
+
+IUSE="quick3d"
+
+# note: widgets is only used with quick3d and is technically optional,
+# but the top level CMakeLists.txt requires through assertTargets()
+RDEPEND="
+       ~dev-qt/qtbase-${PV}:6[gui,widgets]
+       ~dev-qt/qtdeclarative-${PV}:6
+       quick3d? ( ~dev-qt/qtquick3d-${PV}:6 )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               # simpler than keeping track of and disabling every graphs-3d* 
features
+               $(cmake_use_find_package quick3d Qt6Quick3D)
+       )
+
+       cmake_src_configure
+}

diff --git a/dev-qt/qtgraphs/qtgraphs-6.9.1.ebuild 
b/dev-qt/qtgraphs/qtgraphs-6.9.1.ebuild
new file mode 100644
index 000000000000..49d7c4464b8c
--- /dev/null
+++ b/dev-qt/qtgraphs/qtgraphs-6.9.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt6-build
+
+DESCRIPTION="Graphs component library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+       KEYWORDS="~amd64"
+fi
+
+IUSE="quick3d"
+
+# note: widgets is only used with quick3d and is technically optional,
+# but the top level CMakeLists.txt requires through assertTargets()
+RDEPEND="
+       ~dev-qt/qtbase-${PV}:6[gui,widgets]
+       ~dev-qt/qtdeclarative-${PV}:6
+       quick3d? ( ~dev-qt/qtquick3d-${PV}:6 )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               # simpler than keeping track of and disabling every graphs-3d* 
features
+               $(cmake_use_find_package quick3d Qt6Quick3D)
+       )
+
+       cmake_src_configure
+}

diff --git a/dev-qt/qtgraphs/qtgraphs-6.9.9999.ebuild 
b/dev-qt/qtgraphs/qtgraphs-6.9.9999.ebuild
new file mode 100644
index 000000000000..49d7c4464b8c
--- /dev/null
+++ b/dev-qt/qtgraphs/qtgraphs-6.9.9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt6-build
+
+DESCRIPTION="Graphs component library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+       KEYWORDS="~amd64"
+fi
+
+IUSE="quick3d"
+
+# note: widgets is only used with quick3d and is technically optional,
+# but the top level CMakeLists.txt requires through assertTargets()
+RDEPEND="
+       ~dev-qt/qtbase-${PV}:6[gui,widgets]
+       ~dev-qt/qtdeclarative-${PV}:6
+       quick3d? ( ~dev-qt/qtquick3d-${PV}:6 )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               # simpler than keeping track of and disabling every graphs-3d* 
features
+               $(cmake_use_find_package quick3d Qt6Quick3D)
+       )
+
+       cmake_src_configure
+}

diff --git a/dev-qt/qtgraphs/qtgraphs-6.9999.ebuild 
b/dev-qt/qtgraphs/qtgraphs-6.9999.ebuild
new file mode 100644
index 000000000000..49d7c4464b8c
--- /dev/null
+++ b/dev-qt/qtgraphs/qtgraphs-6.9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt6-build
+
+DESCRIPTION="Graphs component library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+       KEYWORDS="~amd64"
+fi
+
+IUSE="quick3d"
+
+# note: widgets is only used with quick3d and is technically optional,
+# but the top level CMakeLists.txt requires through assertTargets()
+RDEPEND="
+       ~dev-qt/qtbase-${PV}:6[gui,widgets]
+       ~dev-qt/qtdeclarative-${PV}:6
+       quick3d? ( ~dev-qt/qtquick3d-${PV}:6 )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               # simpler than keeping track of and disabling every graphs-3d* 
features
+               $(cmake_use_find_package quick3d Qt6Quick3D)
+       )
+
+       cmake_src_configure
+}

diff --git a/metadata/stabilization-groups/qt/qt6.group 
b/metadata/stabilization-groups/qt/qt6.group
index ff400cbf75e2..9ca90e6a3955 100644
--- a/metadata/stabilization-groups/qt/qt6.group
+++ b/metadata/stabilization-groups/qt/qt6.group
@@ -6,6 +6,7 @@ dev-qt/qtbase:6
 dev-qt/qtcharts:6
 dev-qt/qtconnectivity:6
 dev-qt/qtdeclarative:6
+dev-qt/qtgraphs:6
 dev-qt/qthttpserver:6
 dev-qt/qtimageformats:6
 dev-qt/qtlanguageserver:6

Reply via email to