diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-08-01 11:02:16 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-08-01 12:57:22 +0200 |
commit | 97ed04e3d67461cae4398b96543b21aa78e35c4f (patch) | |
tree | 1c467acde56af78d4ffb120f4e10f0cd7c73f931 /sci-astronomy | |
parent | sci-libs/indilib: add 2.0.3 (diff) | |
download | gentoo-97ed04e3d67461cae4398b96543b21aa78e35c4f.tar.gz gentoo-97ed04e3d67461cae4398b96543b21aa78e35c4f.tar.bz2 gentoo-97ed04e3d67461cae4398b96543b21aa78e35c4f.zip |
sci-astronomy/kstars: add 3.6.6
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/kstars/Manifest | 1 | ||||
-rw-r--r-- | sci-astronomy/kstars/files/kstars-3.6.6-missing-headers.patch | 38 | ||||
-rw-r--r-- | sci-astronomy/kstars/kstars-3.6.6.ebuild | 112 |
3 files changed, 151 insertions, 0 deletions
diff --git a/sci-astronomy/kstars/Manifest b/sci-astronomy/kstars/Manifest index dfde830d2fb0..8426372e13f1 100644 --- a/sci-astronomy/kstars/Manifest +++ b/sci-astronomy/kstars/Manifest @@ -1,2 +1,3 @@ DIST kstars-3.6.2.tar.xz 111110944 BLAKE2B 8a2c5821b982ee62167e2ba28d70d3931d9643d7c9410097169f87556ec4b2ea137e6595089960c63c6063f69c1415968664b8dd1e05a8f8a619b37d2539c26e SHA512 8519aaab748afe948af332cf3b54a031aa65ac0d36f4dc3b5da7de9bffd9eab402221a11378ebe4d97cf4d4b0754b1a7c644f8222c93e0fca089f26545f10283 DIST kstars-3.6.5.tar.xz 114135376 BLAKE2B eebd8406782239193d1e7d08b1d2c86ad6a235f5159e08fc0942537846dbaae690af7156a6fd31231c79025ef8e68f15e76472b1365b1df3682e98508a403cc1 SHA512 91a461529af2a78e130c13f92006f7293cee2161f952301c6e0b87c91094d6147b59b74cc70ec1166dd413343f940e319f88a1d205d93adf9caf4723d8b52318 +DIST kstars-3.6.6.tar.xz 135870036 BLAKE2B 20a313b4df8c266cf406677ed062b8788b1840670c88c86043a84ef15947f16247d0733f2b91b623a951e53659fcd6e3bbd25b22c105a3ac3df3481fe57078a3 SHA512 ef2cbd12578cc336e46dda875e8d6b077922c9732b4afb35b7782ae1573c2a6ccd0337d1ba1206d2e5ac5922f8b9c91ddc45f59b6a487f22b779f8d1100b1636 diff --git a/sci-astronomy/kstars/files/kstars-3.6.6-missing-headers.patch b/sci-astronomy/kstars/files/kstars-3.6.6-missing-headers.patch new file mode 100644 index 000000000000..22ec88b215f9 --- /dev/null +++ b/sci-astronomy/kstars/files/kstars-3.6.6-missing-headers.patch @@ -0,0 +1,38 @@ +From 8f749bd3ae3d052c9b38fecbb40c5180348e2787 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Tue, 1 Aug 2023 11:17:03 +0200 +Subject: [PATCH] Add missing Qt headers + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + kstars/dialogs/finddialog.cpp | 1 + + kstars/dialogs/fovdialog.cpp | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/kstars/dialogs/finddialog.cpp b/kstars/dialogs/finddialog.cpp +index 77df85c49..188e8c8ad 100644 +--- a/kstars/dialogs/finddialog.cpp ++++ b/kstars/dialogs/finddialog.cpp +@@ -20,6 +20,7 @@ + #include "catalogscomponent.h" + #include <KMessageBox> + ++#include <QPointer> + #include <QSortFilterProxyModel> + #include <QStringListModel> + #include <QTimer> +diff --git a/kstars/dialogs/fovdialog.cpp b/kstars/dialogs/fovdialog.cpp +index d45727967..3d7d35853 100644 +--- a/kstars/dialogs/fovdialog.cpp ++++ b/kstars/dialogs/fovdialog.cpp +@@ -9,6 +9,7 @@ + #include <QFile> + #include <QFrame> + #include <QPainter> ++#include <QPointer> + #include <QTextStream> + #include <QPaintEvent> + #include <QDebug> +-- +2.41.0 + diff --git a/sci-astronomy/kstars/kstars-3.6.6.ebuild b/sci-astronomy/kstars/kstars-3.6.6.ebuild new file mode 100644 index 000000000000..776e6db87349 --- /dev/null +++ b/sci-astronomy/kstars/kstars-3.6.6.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="forceoptional" +ECM_TEST="true" +KFMIN=5.106.0 +QTMIN=5.15.9 +inherit ecm kde.org optfeature + +DESCRIPTION="Desktop Planetarium" +HOMEPAGE="https://apps.kde.org/kstars/ https://edu.kde.org/kstars/" + +if [[ ${KDE_BUILD_TYPE} = release ]]; then + SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2+ GPL-3+" +SLOT="5" +IUSE="fits indi +password raw wcs" + +REQUIRED_USE="indi? ( fits ) ${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND=" + >=dev-qt/qtdatavis3d-${QTMIN}:5 + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtnetwork-${QTMIN}:5 + >=dev-qt/qtprintsupport-${QTMIN}:5 + >=dev-qt/qtsql-${QTMIN}:5 + >=dev-qt/qtsvg-${QTMIN}:5 + >=dev-qt/qtwebsockets-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kcrash-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kio-${KFMIN}:5 + >=kde-frameworks/knewstuff-${KFMIN}:5 + >=kde-frameworks/knotifications-${KFMIN}:5 + >=kde-frameworks/knotifyconfig-${KFMIN}:5 + >=kde-frameworks/kplotting-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 + sci-libs/gsl:= + sys-libs/zlib + fits? ( sci-libs/cfitsio:= ) + indi? ( + >=sci-libs/indilib-2.0.2 + sci-libs/libnova:= + >=sci-libs/stellarsolver-2.2 + ) + password? ( dev-libs/qtkeychain:=[qt5(+)] ) + raw? ( media-libs/libraw:= ) + wcs? ( sci-astronomy/wcslib:= ) +" +# TODO: Add back when re-enabled by upstream +# opengl? ( +# >=dev-qt/qtopengl-${QTMIN}:5 +# virtual/opengl +# ) +DEPEND="${COMMON_DEPEND} + dev-cpp/eigen:3 + >=dev-qt/qtconcurrent-${QTMIN}:5 +" +RDEPEND="${COMMON_DEPEND} + >=dev-qt/qtgraphicaleffects-${QTMIN}:5 + >=dev-qt/qtpositioning-${QTMIN}:5 + >=dev-qt/qtquickcontrols-${QTMIN}:5 + >=dev-qt/qtquickcontrols2-${QTMIN}:5 +" + +PATCHES=( + # https://invent.kde.org/education/kstars/-/merge_requests/960 + "${FILESDIR}/${P}-missing-headers.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_PYKSTARS=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_LibXISF=ON # not packaged + -DBUILD_DOC=$(usex handbook) + $(cmake_use_find_package fits CFitsio) + $(cmake_use_find_package indi INDI) + $(cmake_use_find_package indi Nova) + $(cmake_use_find_package password Qt5Keychain) + $(cmake_use_find_package raw LibRaw) + $(cmake_use_find_package wcs WCSLIB) + ) + + ecm_src_configure +} + +src_test() { + # bug 842768, test declared unstable by upstream + local myctestargs=( + -E "(TestKSPaths)" + ) + + ecm_src_test +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + optfeature "Display 'current' pictures of planets" x11-misc/xplanet + fi + ecm_pkg_postinst +} |