From ba909f8b7231c699743a47984ae9d62dbf620522 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 17 Jun 2025 13:54:00 -0400 Subject: [PATCH] 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 --- 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(+) create mode 100644 dev-qt/qtgraphs/Manifest create mode 100644 dev-qt/qtgraphs/metadata.xml create mode 100644 dev-qt/qtgraphs/qtgraphs-6.10.9999.ebuild create mode 100644 dev-qt/qtgraphs/qtgraphs-6.9.1.ebuild create mode 100644 dev-qt/qtgraphs/qtgraphs-6.9.9999.ebuild create mode 100644 dev-qt/qtgraphs/qtgraphs-6.9999.ebuild diff --git a/dev-qt/qtgraphs/Manifest b/dev-qt/qtgraphs/Manifest new file mode 100644 index 0000000000000..8ba7abd765e34 --- /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 0000000000000..544e3d5e3b813 --- /dev/null +++ b/dev-qt/qtgraphs/metadata.xml @@ -0,0 +1,21 @@ + + + + + qt@gentoo.org + Gentoo Qt Project + + + https://bugreports.qt.io/ + https://doc.qt.io/ + qt/qtgraphs + + + Enable support for 3D graphs using dev-qt/qtquick3d + + + + Must only be used by packages that are known to use private parts of the Qt API. + + + 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 0000000000000..49d7c4464b8cc --- /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 0000000000000..49d7c4464b8cc --- /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 0000000000000..49d7c4464b8cc --- /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 0000000000000..49d7c4464b8cc --- /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 ff400cbf75e2e..9ca90e6a39550 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