public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/kstars/files/, sci-astronomy/kstars/
Date: Sat, 01 Feb 2025 21:55:09 +0000 (UTC)	[thread overview]
Message-ID: <1738446903.dd9d003ce560dc27d8b823fa90fe4cec6ce645fe.asturm@gentoo> (raw)

commit:     dd9d003ce560dc27d8b823fa90fe4cec6ce645fe
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  1 21:15:27 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 21:55:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd9d003c

sci-astronomy/kstars: add 3.7.5, ported to Qt6

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

 sci-astronomy/kstars/Manifest                      |   1 +
 .../kstars/files/kstars-3.7.5-cmake.patch          |  26 +++++
 sci-astronomy/kstars/kstars-3.7.5.ebuild           | 110 +++++++++++++++++++++
 3 files changed, 137 insertions(+)

diff --git a/sci-astronomy/kstars/Manifest b/sci-astronomy/kstars/Manifest
index cdcb20b8dc86..df1ae43a1367 100644
--- a/sci-astronomy/kstars/Manifest
+++ b/sci-astronomy/kstars/Manifest
@@ -1 +1,2 @@
 DIST kstars-3.7.4.tar.xz 163434540 BLAKE2B a59917c94503bca2faa23d000c51c8ef3b9c1150b9b9023e9c36d5e34b9780cae13aa08c614bdc319e0abd22f1beaca341bc6857215e18dbd932ae52e88a66ba SHA512 4b195c690d7ef15db93ff6c2cf6c064e1939713e72fe60930605e7dae137b65a4d6abb30a510ea15ac3b53a2ae5f25dcbbd06bc42461951f8d642701c9b5394f
+DIST kstars-3.7.5.tar.xz 163498784 BLAKE2B f8b8c0246ab3c6dccec4a6af2039f4ef80e71d4ac43eebad869123494f6418dc36a5e1a8044c49e8e58a07267d58daaee589850b0800b9843bfdd3411bedb286 SHA512 988a5e0221b283bb9d0bb0c24d8e7fa91f9618e1cb9a764cec823217349c17bb0c7bc70213e16d2d021bb2bf6d21488c1daacb30f26e4f6f60b012fa05afd257

diff --git a/sci-astronomy/kstars/files/kstars-3.7.5-cmake.patch b/sci-astronomy/kstars/files/kstars-3.7.5-cmake.patch
new file mode 100644
index 000000000000..229076f3c5a3
--- /dev/null
+++ b/sci-astronomy/kstars/files/kstars-3.7.5-cmake.patch
@@ -0,0 +1,26 @@
+From 51e5aff74ecfa40975cfb851f7a64a684a0fee0d Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Sat, 1 Feb 2025 22:32:10 +0100
+Subject: [PATCH] Cleanup bogus (un-ifdef'd and duplicated) headers
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ kstars/ekos/focus/focus.cpp | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/kstars/ekos/focus/focus.cpp b/kstars/ekos/focus/focus.cpp
+index 553a94e6f..1193115eb 100644
+--- a/kstars/ekos/focus/focus.cpp
++++ b/kstars/ekos/focus/focus.cpp
+@@ -12,8 +12,6 @@
+ #if defined(HAVE_OPENCV)
+ #include "focusblurriness.h"
+ #endif
+-#include "aberrationinspector.h"
+-#include "aberrationinspectorutils.h"
+ #include "kstars.h"
+ #include "kstarsdata.h"
+ #include "Options.h"
+-- 
+2.48.1
+

diff --git a/sci-astronomy/kstars/kstars-3.7.5.ebuild b/sci-astronomy/kstars/kstars-3.7.5.ebuild
new file mode 100644
index 000000000000..af5b23d02f3e
--- /dev/null
+++ b/sci-astronomy/kstars/kstars-3.7.5.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="true"
+KFMIN=6.5.0
+QTMIN=6.7.2
+inherit ecm kde.org optfeature
+
+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.6-r10
+	sys-libs/zlib
+	opencv? (
+		media-libs/opencv:=[ffmpeg]
+		|| (
+			media-libs/opencv[qt6(-)]
+			media-libs/opencv[gtk3(-)]
+		)
+	)
+	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,5}-cmake.patch # bug 895892
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_PYKSTARS=OFF
+		-DCMAKE_DISABLE_FIND_PACKAGE_LibXISF=ON # not packaged
+		-DBUILD_QT5=OFF # KF6 please
+		-DBUILD_DOC=$(usex handbook)
+		$(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
+	ecm_pkg_postinst
+}


             reply	other threads:[~2025-02-01 21:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-01 21:55 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-03 21:00 [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/kstars/files/, sci-astronomy/kstars/ Andreas Sturmlechner
2024-12-03 19:21 Andreas Sturmlechner
2023-08-25 10:03 Andreas Sturmlechner
2023-07-25 14:42 Andreas Sturmlechner
2022-10-05 20:47 Andreas Sturmlechner
2021-11-26 12:25 Andreas Sturmlechner
2020-09-04 13:45 Andreas Sturmlechner
2020-05-26 10:51 Andreas Sturmlechner
2019-02-15 20:10 Andreas Sturmlechner
2018-12-23  1:25 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1738446903.dd9d003ce560dc27d8b823fa90fe4cec6ce645fe.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox