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@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-06-17 13:54:00 -04:00
parent 12b5906368
commit ba909f8b72
7 changed files with 151 additions and 0 deletions

1
dev-qt/qtgraphs/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST qtgraphs-everywhere-src-6.9.1.tar.xz 5230620 BLAKE2B e87205e821dbde845f72c5bb8577637eb9faa8d1ca4a07a7100e51cf9beeaf17d51f8f88b20c8c853638ef6a077f410cdce046b66485b586ddd56ead906a59bb SHA512 7a2ca552a296ac700cf92a03cb3e1edda678882147b64e858409aa5bbe440b6d7e969c7c68b7364dfa824f167492446c6933dc818decf16692d41359e2782641

View File

@@ -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>qt@gentoo.org</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>

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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