commit: ad74ff1636ae6d4823b3cc1f6f8ec8f1c040b83f Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> AuthorDate: Wed Jun 25 01:00:19 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Jul 4 20:01:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad74ff16
sci-astronomy/stellarium: add 25.2 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/42733 Closes: https://github.com/gentoo/gentoo/pull/42733 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-astronomy/stellarium/Manifest | 4 + sci-astronomy/stellarium/stellarium-25.2.ebuild | 169 ++++++++++++++++++++++++ 2 files changed, 173 insertions(+) diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest index 3d496a7db99d..fb5b02f46397 100644 --- a/sci-astronomy/stellarium/Manifest +++ b/sci-astronomy/stellarium/Manifest @@ -10,7 +10,11 @@ DIST stars_8_2v0_3.cat 1971773856 BLAKE2B 49aab2f1490cd25c83a50eea4cab5c54d3db0e DIST stars_8_2v0_3.cat.asc 313 BLAKE2B 39c0f8a3189dc2434cb6c38f786bcf504bcfcb6473fd26ffbef7d84b3de7e351f8f3fe57171958965e1e0740eb3b2e88aa9d6e7eb66befcf6e0c1f882cada355 SHA512 90c1ae0e9391c3f940ef6c114385408f8d181b87c611f6240379d98f51d0a4cc4feb6b0433b345770ebac23485b1d219d38d5caf4addd24868da54143ef75537 DIST stellarium-25.1.tar.xz 371392288 BLAKE2B 4edaca0e61756bb4c4f835f8b2878e299c2eea2eef9e39ddf00d5c59d2e30954d8020cce6b93fbec9affb17708317df9de06e7deab3205f4af8c6309d27b5ef6 SHA512 c413e31994e98e69b85885ee2114847e9d5d541e0c5fcc213f4a0af1c520eadddbdc1873815f1a827cad6c15f644f2422f477d0fc96ec68e2afe58d83a75bbee DIST stellarium-25.1.tar.xz.asc 313 BLAKE2B 8a2a0dc5acbe9e8afa2004896f8e6b1fb752a81d147ba85d55e37ce5b6404686e6d623c934de15d394e2fe132e0343cb5b36cd1b5bbd449d9ac1e59870d7f7e3 SHA512 a9af17ce957e8a91017c6114094b0cc862737255102ba97d42e5c218cb16404839e674e59d2716943dc1e02cddf6dce78dad6ce988e2dd0b46ac88f4f6d245c7 +DIST stellarium-25.2.tar.xz 374328780 BLAKE2B 114af0c71f8580cec102474034b69a208f0a0ea850252f6045596a3a3e30fc273bc556172cf0834d138384775b0fa88f73cd95cfea87c36294cd6c532aae4e4a SHA512 291bebc9b698fa900cfad80cdd6a65727cecd9507d1c52db03cf57a06ba501384575d4a9a82ab5057662be407dd2e674e9f89f1a7bba6dc6b84d4fcefac9f47a +DIST stellarium-25.2.tar.xz.asc 313 BLAKE2B 002f551275d61711fa091f35157fa69bddd29294faf3d06f22a7aafb2f6c1a8be82942a7794da15a9698c8b5092ce8775d8e181beb8daf1c97fed2d0683fdd29 SHA512 d32926a18d66143d50b318ed0c2fd52a62b8aee42a16d4009d14f328ffe8b9a7d5d597d1a04ddf518fc04324320bc27c24459ae8e29ac5727aa01dd64a96a9da DIST stellarium-dso-catalog-3.20.dat 28678745 BLAKE2B 24ddf76e81e91424cced5df74dd164d17a45fed2b65c1dc1e7065371c18a796350a1e1aab2da5860376eb90eac07e7c836ffdbb324a0d3eda6c91e8ce1c4ab3a SHA512 c84832bbf56d1097db3ff8fa8f3faadac1470a9f79d9ee759493915a48754dc86174551b5e705786f29331991bee57daa4cab6d7ecc2e4e00a2f895823ccfd87 DIST stellarium-dso-catalog-3.20.dat.asc 313 BLAKE2B a7d9a1977ff4e1b21a80239d85ad5123ad03c2dcd57422cec7c2585eddb1004bbfc2b29a934653bc36c438981218811d21ade7380ae49278ef2c4f387ab762e5 SHA512 e8a7b10bb157d15b550a31646c8d8ce9933a77f748900a9c75f0c78b9b9205ce5e4e2ec18248ba786aacd5fbf36da00bbaf578b8b011c75351a9237568e62f1b DIST stellarium_user_guide-25.1-1.pdf 14438330 BLAKE2B fa7d53aec3a0c0ff2e941b9846eb726d9e895284139dffaa5242fd0f8c657ecfeb44446e4f3a5b145fd643b32b43bd28e21910b1f2d94a002f22661b96665019 SHA512 0c24e1710c58180352119b45e98dc1c1fdf11ceab1ddfa815c8659b615ccbaa4eb8a937f955cfc70a835307c3fa25037be502091c8dfa6fd89a22c2b72a13107 DIST stellarium_user_guide-25.1-1.pdf.asc 313 BLAKE2B 67a4f96966af10f1c0bcf96be521933cf8ba52707d7992d857b2dc863c232a4a752e11af47680fc4bb6df93913a3cac09fe03ef7cbe2ee560395071254ea7fd5 SHA512 b3fb4f21f750ca2ad0ad3b845212a55d6a04468e4127ffaa541bac60e67c0e0cbc1f213128522afd3b8da26137db68db7c0670bba25b59e9cc3b9aae43fe6513 +DIST stellarium_user_guide-25.2-1.pdf 14702921 BLAKE2B 47a327605502c98e13c459ad07e58ee4df21bc575098077019cfb552b5b28e6e5884752eab1f61cb572892360e6111b774a5835be491ab8596f62953bb4ff228 SHA512 1f97085c819b2e2f0eea254d450436c6b681daa243037b5ce03b2984ffcad70249c1445e1c014b1105e66b6b7abf843a94341efa68b3ec34c7fdf70e9daf322a +DIST stellarium_user_guide-25.2-1.pdf.asc 313 BLAKE2B a36c84e10ec752091ff8845591490bf291c104d2a348b70871284b9c8c358a4035991ab387eb0780e738b7a332910793ca0e90353b9b6c2dbdd334ca4a1b0614 SHA512 0508c0648c479c1e299c40599dc33c1ba6e0a7357ad5038c8a29b6c855455a50c79508e38e7bf17aeb1757b0a76abe1c33a07c93ed9886297fe629b7391d6d62 diff --git a/sci-astronomy/stellarium/stellarium-25.2.ebuild b/sci-astronomy/stellarium/stellarium-25.2.ebuild new file mode 100644 index 000000000000..642f2648450c --- /dev/null +++ b/sci-astronomy/stellarium/stellarium-25.2.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +inherit cmake desktop flag-o-matic python-any-r1 toolchain-funcs xdg verify-sig virtualx + +DESCRIPTION="3D photo-realistic skies in real time" +HOMEPAGE="https://stellarium.org/ https://github.com/Stellarium/stellarium" +MY_DSO_VERSION="3.20" +SRC_URI=" + https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.xz + verify-sig? ( https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.xz.asc ) + deep-sky? ( + https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog-${MY_DSO_VERSION}.dat -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat + verify-sig? ( https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog-${MY_DSO_VERSION}.dat.asc -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat.asc ) + ) + doc? ( + https://github.com/Stellarium/stellarium/releases/download/v${PV}/stellarium_user_guide-${PV}-1.pdf + verify-sig? ( https://github.com/Stellarium/stellarium/releases/download/v${PV}/stellarium_user_guide-${PV}-1.pdf.asc ) + ) + stars? ( + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_4_1v0_6.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_5_1v0_6.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_6_1v0_4.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_7_1v0_4.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_8_2v0_3.cat + verify-sig? ( + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_4_1v0_6.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_5_1v0_6.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_6_1v0_4.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_7_1v0_4.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_8_2v0_3.cat.asc + ) + )" + +LICENSE="GPL-2+ SGI-B-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="debug deep-sky doc gps +lens-distortion libcxx media nls +scripting +show-my-sky stars telescope test webengine +xlsx" + +# Python interpreter is used while building RemoteControl plugin +BDEPEND=" + ${PYTHON_DEPS} + dev-lang/perl + doc? ( app-text/doxygen[dot] ) + nls? ( dev-qt/qttools:6[linguist] ) + verify-sig? ( sec-keys/openpgp-keys-stellarium ) +" +# TODO: review need for dev-cpp/tbb after several releases of gcc and clang +RDEPEND=" + dev-cpp/tbb:= + dev-libs/md4c + dev-qt/qtbase:6=[concurrent,gui,network,widgets] + dev-qt/qtcharts:6 + dev-qt/qtpositioning:6 + media-fonts/dejavu + >=sci-astronomy/calcmysky-0.3.5:= + sys-libs/zlib + gps? ( + dev-qt/qtserialport:6 + sci-geosciences/gpsd:=[cxx] + ) + lens-distortion? ( + media-gfx/exiv2:= + sci-libs/nlopt + ) + media? ( + dev-qt/qtmultimedia:6[gstreamer] + virtual/opengl + ) + scripting? ( dev-qt/qtdeclarative:6 ) + telescope? ( + dev-qt/qtserialport:6 + sci-libs/indilib:= + ) + webengine? ( dev-qt/qtwebengine:6[widgets] ) + xlsx? ( >=dev-libs/qxlsx-1.5.0:= ) +" +DEPEND="${RDEPEND} + libcxx? ( dev-cpp/fast_float ) +" + +RESTRICT="!test? ( test )" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/stellarium.asc + +pkg_setup() { + if tc-is-clang && ! use libcxx && [[ $(tc-get-cxx-stdlib) == libc++ ]]; then + die "When using libc++, please enable USE=libcxx" + fi +} + +src_prepare() { + cmake_src_prepare + use debug || append-cppflags -DQT_NO_DEBUG #415769 + + rm -r src/external/qtcompress/ || die + rm -r src/external/zlib/ || die + rm -r src/external/fake-indi/ || die + + # for glues_stel aka libtess I couldn't find an upstream with the same API + + local remaining="$(cd src/external/ && echo */)" + if [[ "${remaining}" != "glues_stel/" ]]; then + eqawarn "Need to unbundle more deps: ${remaining}" + fi +} + +src_configure() { + filter-lto # https://bugs.gentoo.org/862249 + + local mycmakeargs=( + -DCCACHE_PROGRAM=no + -DCPM_LOCAL_PACKAGES_ONLY=yes + -DUSE_BUNDLED_QTCOMPRESS=no + -DENABLE_GPS="$(usex gps)" + -DENABLE_MEDIA="$(usex media)" + -DENABLE_NLS="$(usex nls)" + -DENABLE_QT6=yes + -DENABLE_QTWEBENGINE="$(usex webengine)" + -DENABLE_SHOWMYSKY=$(usex show-my-sky) + -DENABLE_SCRIPTING=$(usex scripting) + -DENABLE_TESTING="$(usex test)" + -DENABLE_XLSX="$(usex xlsx)" + -DUSE_PLUGIN_LENSDISTORTIONESTIMATOR="$(usex lens-distortion)" + -DUSE_PLUGIN_TELESCOPECONTROL="$(usex telescope)" + "$(cmake_use_find_package doc Doxygen)" + ) + cmake_src_configure +} + +src_test() { + virtx cmake_src_test +} + +src_compile() { + cmake_src_compile + + if use doc ; then + cmake_build apidoc + fi +} + +src_install() { + if use doc ; then + local HTML_DOCS=( "${BUILD_DIR}/doc/html/." ) + dodoc "${DISTDIR}/stellarium_user_guide-${PV}-1.pdf" + fi + cmake_src_install + + # use the more up-to-date system fonts + rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf + dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf + + if use stars ; then + insinto /usr/share/${PN}/stars/hip_gaia3 + doins "${DISTDIR}"/stars_{4,5}_1v0_6.cat + doins "${DISTDIR}"/stars_{6,7}_1v0_4.cat + doins "${DISTDIR}"/stars_8_2v0_3.cat + fi + if use deep-sky ; then + insinto /usr/share/${PN}/nebulae/default + newins "${DISTDIR}/${PN}-dso-catalog-${MY_DSO_VERSION}.dat" catalog.dat + fi + newicon doc/images/stellarium-logo.png ${PN}.png +}