From 2b6bd84e91ed64ab29ad2a81176e7341572f71a1 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Tue, 25 Jul 2023 15:21:12 +0200 Subject: sci-astronomy/kstars: add 3.6.5 Signed-off-by: Andreas Sturmlechner --- sci-astronomy/kstars/Manifest | 1 + .../kstars/files/kstars-3.6.5-buildfix.patch | 33 +++++++ sci-astronomy/kstars/kstars-3.6.5.ebuild | 110 +++++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 sci-astronomy/kstars/files/kstars-3.6.5-buildfix.patch create mode 100644 sci-astronomy/kstars/kstars-3.6.5.ebuild (limited to 'sci-astronomy') diff --git a/sci-astronomy/kstars/Manifest b/sci-astronomy/kstars/Manifest index 1c6e8b1aacce..dfde830d2fb0 100644 --- a/sci-astronomy/kstars/Manifest +++ b/sci-astronomy/kstars/Manifest @@ -1 +1,2 @@ DIST kstars-3.6.2.tar.xz 111110944 BLAKE2B 8a2c5821b982ee62167e2ba28d70d3931d9643d7c9410097169f87556ec4b2ea137e6595089960c63c6063f69c1415968664b8dd1e05a8f8a619b37d2539c26e SHA512 8519aaab748afe948af332cf3b54a031aa65ac0d36f4dc3b5da7de9bffd9eab402221a11378ebe4d97cf4d4b0754b1a7c644f8222c93e0fca089f26545f10283 +DIST kstars-3.6.5.tar.xz 114135376 BLAKE2B eebd8406782239193d1e7d08b1d2c86ad6a235f5159e08fc0942537846dbaae690af7156a6fd31231c79025ef8e68f15e76472b1365b1df3682e98508a403cc1 SHA512 91a461529af2a78e130c13f92006f7293cee2161f952301c6e0b87c91094d6147b59b74cc70ec1166dd413343f940e319f88a1d205d93adf9caf4723d8b52318 diff --git a/sci-astronomy/kstars/files/kstars-3.6.5-buildfix.patch b/sci-astronomy/kstars/files/kstars-3.6.5-buildfix.patch new file mode 100644 index 000000000000..793cb2fcead4 --- /dev/null +++ b/sci-astronomy/kstars/files/kstars-3.6.5-buildfix.patch @@ -0,0 +1,33 @@ +From ea6f3578b047be156c89137dc61ad874775b94b4 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Tue, 25 Jul 2023 15:51:40 +0200 +Subject: [PATCH] Drop superfluous definition + +While build fails only under certain downstream circumstances, +this line should not be here in the first place. + +Follow-up to a56e12970b2e10305e2942f7aa47cc8bb9f0d53f + +See also: https://invent.kde.org/education/kstars/-/issues/251 + +Signed-off-by: Andreas Sturmlechner +--- + kstars/skycomponents/supernovaecomponent.cpp | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/kstars/skycomponents/supernovaecomponent.cpp b/kstars/skycomponents/supernovaecomponent.cpp +index bb427b8e8..3b3866f7d 100644 +--- a/kstars/skycomponents/supernovaecomponent.cpp ++++ b/kstars/skycomponents/supernovaecomponent.cpp +@@ -36,8 +36,6 @@ + + #include + +-gzFile gzopen OF((const char *path, const char *mode)); +- + const QString SupernovaeComponent::tnsDataFilename("tns_public_objects.csv"); + const QString SupernovaeComponent::tnsDataFilenameZip("tns-daily.csv.gz"); + const QString SupernovaeComponent::tnsDataUrl( +-- +2.41.0 + diff --git a/sci-astronomy/kstars/kstars-3.6.5.ebuild b/sci-astronomy/kstars/kstars-3.6.5.ebuild new file mode 100644 index 000000000000..795566f25b35 --- /dev/null +++ b/sci-astronomy/kstars/kstars-3.6.5.ebuild @@ -0,0 +1,110 @@ +# 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 + sys-libs/zlib + fits? ( sci-libs/cfitsio:= ) + indi? ( + sci-libs/gsl:= + >=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 +" + +# https://invent.kde.org/education/kstars/-/issues/251 +PATCHES=( "${FILESDIR}/${P}-buildfix.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 +} -- cgit v1.2.3-65-gdbad