commit:     db55de33ddd6a334cc9efb7bf3daebc8ee8baf22
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  2 19:17:17 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct  2 21:27:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db55de33

sci-astronomy/kstars: add 3.7.9

Drop opencv highui USEdeps, set ENABLE_SENTRY=OFF
Drop obsolete BUILD_QT5=OFF cmake arg

Upstream commits:
6791a3febf9bade2b5379857973ce1c6d0c03b35
4a47f73ea7a956d472d39231c82d457ee52ccb87
c52f11908eedf569b55e432fc5d43f1ee41037a5

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

 sci-astronomy/kstars/Manifest            |   1 +
 sci-astronomy/kstars/kstars-3.7.9.ebuild | 103 +++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/sci-astronomy/kstars/Manifest b/sci-astronomy/kstars/Manifest
index f913c4f46428..28bcb5f6732a 100644
--- a/sci-astronomy/kstars/Manifest
+++ b/sci-astronomy/kstars/Manifest
@@ -1,2 +1,3 @@
 DIST kstars-3.7.5.tar.xz 163498784 BLAKE2B 
f8b8c0246ab3c6dccec4a6af2039f4ef80e71d4ac43eebad869123494f6418dc36a5e1a8044c49e8e58a07267d58daaee589850b0800b9843bfdd3411bedb286
 SHA512 
988a5e0221b283bb9d0bb0c24d8e7fa91f9618e1cb9a764cec823217349c17bb0c7bc70213e16d2d021bb2bf6d21488c1daacb30f26e4f6f60b012fa05afd257
 DIST kstars-3.7.8.tar.xz 50942300 BLAKE2B 
c41132a7b7bcc093bad630ff2787e821ecabab0c1e6b6202a976e8cd0affc7a12996738fdd042aa5fec38d31575717abc2d7ebef9b6c64f5940166054ad3f8b6
 SHA512 
1ae1ae02572b832a8b3a45785c353147333baa811c280b132c0597a3ad8dec8a7cfa26458587a4fc7c81847b29c93f2375cc9ce35c4b613583bfdee70727c460
+DIST kstars-3.7.9.tar.xz 51113076 BLAKE2B 
1cbdec01a9c4b7d0ab06afa4c7310d99154a5c86270b63e4a06cb499a749cf83a9d1b0e87d07247935eec52f0fcd0173400857bd5917b245e004300c4d3a49f4
 SHA512 
4e28a5f150880dc193c2512afef2bc73220f693e8eceb19047cae7475d8e9640e09e1578ec4076d025ef56597387efd6a6b2ea7dc31f883c2a0ff063391a75c0

diff --git a/sci-astronomy/kstars/kstars-3.7.9.ebuild 
b/sci-astronomy/kstars/kstars-3.7.9.ebuild
new file mode 100644
index 000000000000..41c425f0952a
--- /dev/null
+++ b/sci-astronomy/kstars/kstars-3.7.9.ebuild
@@ -0,0 +1,103 @@
+# 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
+       sys-libs/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
+)
+
+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