commit:     a163c704c272bef363949b7574c58555fbc8be2f
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  9 19:22:57 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 13 11:23:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a163c704

sci-astronomy/kstars: add 3.8.0

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-astronomy/kstars/Manifest                      |   1 +
 .../kstars/files/kstars-3.8.0-gcc15.patch          |  26 ++++++
 sci-astronomy/kstars/kstars-3.8.0.ebuild           | 104 +++++++++++++++++++++
 3 files changed, 131 insertions(+)

diff --git a/sci-astronomy/kstars/Manifest b/sci-astronomy/kstars/Manifest
index 918059e5bec6..72a2883e9b5d 100644
--- a/sci-astronomy/kstars/Manifest
+++ b/sci-astronomy/kstars/Manifest
@@ -1 +1,2 @@
 DIST kstars-3.7.9.tar.xz 51113076 BLAKE2B 
1cbdec01a9c4b7d0ab06afa4c7310d99154a5c86270b63e4a06cb499a749cf83a9d1b0e87d07247935eec52f0fcd0173400857bd5917b245e004300c4d3a49f4
 SHA512 
4e28a5f150880dc193c2512afef2bc73220f693e8eceb19047cae7475d8e9640e09e1578ec4076d025ef56597387efd6a6b2ea7dc31f883c2a0ff063391a75c0
+DIST kstars-3.8.0.tar.xz 51561840 BLAKE2B 
3b6d544926192d0ca141e22707ae6223ae2026219c6ee630c5df2e2d2943b7e2e5f39302ec5737179987e6997ca695837108a3d47f06e9e9ef2cb3b88df312f3
 SHA512 
f45d5162587f3fb08e5462b39ceb3505cfeef94e109a9eb9b7eda8b9aeb36853371c625560f814b47497dd9aa40b898c3207d1fff739cdec69b913cf5ef873fe

diff --git a/sci-astronomy/kstars/files/kstars-3.8.0-gcc15.patch 
b/sci-astronomy/kstars/files/kstars-3.8.0-gcc15.patch
new file mode 100644
index 000000000000..8b3b7ca7f0ba
--- /dev/null
+++ b/sci-astronomy/kstars/files/kstars-3.8.0-gcc15.patch
@@ -0,0 +1,26 @@
+From 3d10e7bd5ca7d6d5625c8d2bae87496defc0608c Mon Sep 17 00:00:00 2001
+From: Jasem Mutlaq <[email protected]>
+Date: Thu, 4 Dec 2025 07:14:02 +0300
+Subject: [PATCH] Fix build issue on GCC 15.
+
+BUGS:512890
+FIXED-IN:3.8.1
+---
+ .../MPI_IS_gaussian_process/src/gaussian_process.cpp             | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git 
a/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp
 
b/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp
+index 27e6f6177..2746ce8b1 100644
+--- 
a/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp
++++ 
b/kstars/ekos/guide/internalguide/MPI_IS_gaussian_process/src/gaussian_process.cpp
+@@ -18,6 +18,7 @@
+  */
+ 
+ #include <cstdint>
++#include <cassert>
+ 
+ #include "gaussian_process.h"
+ #include "math_tools.h"
+-- 
+2.52.0
+

diff --git a/sci-astronomy/kstars/kstars-3.8.0.ebuild 
b/sci-astronomy/kstars/kstars-3.8.0.ebuild
new file mode 100644
index 000000000000..68df5543369a
--- /dev/null
+++ b/sci-astronomy/kstars/kstars-3.8.0.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="true"
+KFMIN=6.9.0
+QTMIN=6.8.1
+inherit ecm kde.org optfeature xdg
+
+DESCRIPTION="Desktop Planetarium"
+HOMEPAGE="https://apps.kde.org/kstars/ https://kstars.kde.org/";
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+       SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="0"
+IUSE="opencv +password raw"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# https://wiki.gentoo.org/wiki/Project:Qt/Qt6_migration_notes#Still_unpackaged
+# >=dev-qt/qtdatavis3d-${QTMIN}:6
+COMMON_DEPEND="
+       >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,sql,widgets]
+       >=dev-qt/qtdeclarative-${QTMIN}:6
+       >=dev-qt/qtsvg-${QTMIN}:6
+       >=dev-qt/qtwebsockets-${QTMIN}:6
+       >=kde-frameworks/kconfig-${KFMIN}:6
+       >=kde-frameworks/kconfigwidgets-${KFMIN}:6
+       >=kde-frameworks/kcoreaddons-${KFMIN}:6
+       >=kde-frameworks/kcrash-${KFMIN}:6
+       >=kde-frameworks/ki18n-${KFMIN}:6
+       >=kde-frameworks/kio-${KFMIN}:6
+       >=kde-frameworks/knewstuff-${KFMIN}:6
+       >=kde-frameworks/knotifications-${KFMIN}:6
+       >=kde-frameworks/knotifyconfig-${KFMIN}:6
+       >=kde-frameworks/kplotting-${KFMIN}:6
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+       >=kde-frameworks/kxmlgui-${KFMIN}:6
+       sci-astronomy/wcslib:=
+       sci-libs/cfitsio:=
+       sci-libs/gsl:=
+       >=sci-libs/indilib-2.0.2
+       sci-libs/libnova:=
+       >=sci-libs/stellarsolver-2.7
+       virtual/zlib:=
+       opencv? ( media-libs/opencv:=[ffmpeg] )
+       password? ( >=dev-libs/qtkeychain-0.14.2:=[qt6(+)] )
+       raw? ( media-libs/libraw:= )
+"
+# TODO: what about virtual/opengl?
+DEPEND="${COMMON_DEPEND}
+       dev-cpp/eigen:3
+       >=dev-qt/qtbase-${QTMIN}:6[concurrent]
+       test? ( sci-astronomy/erfa )
+"
+RDEPEND="${COMMON_DEPEND}
+       !${CATEGORY}/${PN}:5
+       >=dev-qt/qt5compat-${QTMIN}:6[qml]
+       >=dev-qt/qtpositioning-${QTMIN}:6
+"
+
+CMAKE_SKIP_TESTS=(
+       # bug 842768, test declared unstable by upstream
+       TestKSPaths
+       # bugs 923871, 939788
+       TestPlaceholderPath # ki18n (KLocalizedString) failure
+       # all fail with offscreen plugin
+       TestEkos{Capture,FilterWheel,Focus,Mount,Scheduler{,Ops},Simulator}
+)
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.7.4-cmake.patch # bug 895892, downstream patch
+       "${FILESDIR}"/${P}-gcc15.patch
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_PYKSTARS=OFF
+               -DCMAKE_DISABLE_FIND_PACKAGE_LibXISF=ON # not packaged
+               -DBUILD_WITH_QT6=ON # KF6 please
+               -DENABLE_SENTRY=OFF
+               $(cmake_use_find_package opencv OpenCV)
+               $(cmake_use_find_package password Qt6Keychain)
+               $(cmake_use_find_package raw LibRaw)
+       )
+
+       ecm_src_configure
+}
+
+src_test() {
+       LC_NUMERIC="C" LC_TIME="C" TZ=UTC ecm_src_test
+}
+
+pkg_postinst() {
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               optfeature "Display 'current' pictures of planets" 
x11-misc/xplanet
+       fi
+       xdg_pkg_postinst
+}

Reply via email to