From a0f8d0cf907d73eb5d35dde1025b3562386c20f2 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Wed, 6 Sep 2023 01:31:47 +0100 Subject: sci-astronomy/stellarium: use indilib 1.8.5 I'm not restoring older sci-libs/indilib because depending on it would prevent installing latest indilib at the same time, and actually 1.9.8 doesn't build anymore without patching While Stellarium supports using external indilib, it also has support for downloading version 1.8.5 inside cmake using CPM, and using the needed parts of it statically - that's how official packages are built; here I'm telling CPM to not download it automatically, but use the source downloaded by portage Signed-off-by: Alexey Sokolov Bug: https://bugs.gentoo.org/913177 Closes: https://github.com/gentoo/gentoo/pull/32641 Signed-off-by: Joonas Niilola --- sci-astronomy/stellarium/Manifest | 1 + sci-astronomy/stellarium/stellarium-23.2-r1.ebuild | 196 +++++++++++++++++++++ sci-astronomy/stellarium/stellarium-23.2.ebuild | 189 -------------------- 3 files changed, 197 insertions(+), 189 deletions(-) create mode 100644 sci-astronomy/stellarium/stellarium-23.2-r1.ebuild delete mode 100644 sci-astronomy/stellarium/stellarium-23.2.ebuild (limited to 'sci-astronomy') diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest index ec5ff3c6f920..7c6a5509eaab 100644 --- a/sci-astronomy/stellarium/Manifest +++ b/sci-astronomy/stellarium/Manifest @@ -1,3 +1,4 @@ +DIST indilib-1.8.5.tar.gz 2122866 BLAKE2B 203b6c78664aaf3f87b7f697b76544e6ed0fa6db8ac0fe43e6ebcf00de404e96a49b8cd7f8b0be2e4ff5c7f902b3e34177a244a4a49069887f11d28aea073620 SHA512 4c583f7ff0d96d787c7d035e23074f42db3f836ec74a0a7a1595574ae2d32d56234b16abddabacaf9bd5a10cb88c6c37994aafcef86d65a665b2bceae87446f9 DIST stars_4_1v0_2.cat 16948302 BLAKE2B 6efe02c6343fa3cd121879dddd3017dbd42a7c8965481b1ab79a258cedc4adc85df25240003b95c325eb35a8ed9686c38b2590f78aff9cd400ecac675583232d SHA512 80e5b2d0bc78c09658e84e7ee57309be290ba66a131ff38aa471235ff513d7824b28f6852ba1fdb485f86ede1fb2388cfb6327b2f1fe60bb097ce0cdbe48d2cb DIST stars_5_2v0_1.cat 42580300 BLAKE2B eb6528c0577b3f2001a8b03cc5a4e08fa4e75723f677d0dda98d27c50791d9825c0e0feca7b00f0cb82ce362bc83f3e8dc2260d14e81e4a070cbbfa44f2107ba SHA512 6fc0f7352d1165a0744cc932b6d379741e4614d5a95edd136522c789eaa8d1bcf05d7445f7dfd6896e8183aa64bf37b3610d87902b54542f62f2418b285892e0 DIST stars_6_2v0_1.cat 148352404 BLAKE2B c605b284b3d768cb1619ada3f58d406fa7737f09949e8926d6c14b82a85927d124d7fcb50c6d6c357d21b003938cc0b28937f2adb28ae268bb5c85d575f5e0ff SHA512 794279407595f44bbc1e492086063d98068bf332202a5448cd83dd7afbdcf7c6c3ff2878f3016369ebb5a98552874eb4eddb38e2c40e9a163c6231b640e02977 diff --git a/sci-astronomy/stellarium/stellarium-23.2-r1.ebuild b/sci-astronomy/stellarium/stellarium-23.2-r1.ebuild new file mode 100644 index 000000000000..76d6e6f498a1 --- /dev/null +++ b/sci-astronomy/stellarium/stellarium-23.2-r1.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit cmake desktop flag-o-matic python-any-r1 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.19" +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-2.0/stars_4_1v0_2.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_5_2v0_1.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_6_2v0_1.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_7_2v0_1.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_8_2v0_1.cat + ) + telescope? ( + https://github.com/indilib/indi/archive/v1.8.5.tar.gz -> indilib-1.8.5.tar.gz + )" + +LICENSE="GPL-2+ SGI-B-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="debug deep-sky doc gps media nls qt6 +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-doc/doxygen[dot] ) + nls? ( + !qt6? ( dev-qt/linguist-tools:5 ) + qt6? ( dev-qt/qttools:6[linguist] ) + ) + verify-sig? ( sec-keys/openpgp-keys-stellarium ) +" +RDEPEND=" + media-fonts/dejavu + sys-libs/zlib + gps? ( sci-geosciences/gpsd:=[cxx] ) + media? ( virtual/opengl ) + !qt6? ( + dev-qt/qtcharts:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5= + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + >=sci-astronomy/calcmysky-0.3.0:=[qt5] + gps? ( + dev-qt/qtpositioning:5 + dev-qt/qtserialport:5 + ) + media? ( + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtopengl:5 + ) + scripting? ( dev-qt/qtscript:5 ) + telescope? ( dev-qt/qtserialport:5 ) + webengine? ( dev-qt/qtwebengine:5[widgets] ) + xlsx? ( dev-libs/qxlsx:=[qt5] ) + ) + qt6? ( + dev-qt/qtbase:6=[gui,network,widgets] + dev-qt/qtcharts:6 + >=sci-astronomy/calcmysky-0.3.0:=[qt6] + gps? ( + dev-qt/qtpositioning:6 + dev-qt/qtserialport:6 + ) + media? ( + dev-qt/qtmultimedia:6[gstreamer] + ) + scripting? ( dev-qt/qtdeclarative:6 ) + telescope? ( dev-qt/qtserialport:6 ) + webengine? ( dev-qt/qtwebengine:6[widgets] ) + xlsx? ( dev-libs/qxlsx:=[qt6] ) + ) +" +DEPEND="${RDEPEND} + !qt6? ( + dev-qt/qtconcurrent:5 + test? ( dev-qt/qttest:5 ) + ) + qt6? ( dev-qt/qtbase:6=[concurrent] ) +" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/stellarium-0.20.3-unbundle-zlib.patch" + "${FILESDIR}/stellarium-0.22.2-ccache.patch" +) + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/stellarium.asc +src_unpack() { + # stars-2.0 are not signed + if use verify-sig; then + pushd "${DISTDIR}" > /dev/null || die + verify-sig_verify_detached \ + ${P}.tar.xz{,.asc} + use deep-sky && verify-sig_verify_detached \ + ${PN}-dso-catalog-${MY_DSO_VERSION}.dat{,.asc} + use doc && verify-sig_verify_detached \ + stellarium_user_guide-${PV}-1.pdf{,.asc} + popd > /dev/null || die + fi + default_src_unpack +} + +src_prepare() { + cmake_src_prepare + use debug || append-cppflags -DQT_NO_DEBUG #415769 + + rm -r src/external/zlib/ || 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=( + -DCPM_LOCAL_PACKAGES_ONLY=yes + -DENABLE_GPS="$(usex gps)" + -DENABLE_MEDIA="$(usex media)" + -DENABLE_NLS="$(usex nls)" + -DENABLE_QT6="$(usex qt6)" + -DENABLE_QTWEBENGINE="$(usex webengine)" + -DENABLE_SHOWMYSKY=$(usex show-my-sky) + -DENABLE_SCRIPTING=$(usex scripting) + -DENABLE_TESTING="$(usex test)" + -DENABLE_XLSX="$(usex xlsx)" + -DUSE_PLUGIN_TELESCOPECONTROL="$(usex telescope)" + "$(cmake_use_find_package doc Doxygen)" + ) + if use telescope; then + mycmakeargs+=( + -DCPM_indiclient_SOURCE="${WORKDIR}/indi-1.8.5" + ) + fi + 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/default + doins "${DISTDIR}"/stars_4_1v0_2.cat + doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.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 +} diff --git a/sci-astronomy/stellarium/stellarium-23.2.ebuild b/sci-astronomy/stellarium/stellarium-23.2.ebuild deleted file mode 100644 index 4c2406c674bd..000000000000 --- a/sci-astronomy/stellarium/stellarium-23.2.ebuild +++ /dev/null @@ -1,189 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake desktop flag-o-matic python-any-r1 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.19" -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-2.0/stars_4_1v0_2.cat - https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_5_2v0_1.cat - https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_6_2v0_1.cat - https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_7_2v0_1.cat - https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_8_2v0_1.cat - )" - -LICENSE="GPL-2+ SGI-B-2.0" -SLOT="0" -KEYWORDS="amd64 ~ppc ~ppc64 ~riscv ~x86" -IUSE="debug deep-sky doc gps media nls qt6 +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-doc/doxygen[dot] ) - nls? ( - !qt6? ( dev-qt/linguist-tools:5 ) - qt6? ( dev-qt/qttools:6[linguist] ) - ) - verify-sig? ( sec-keys/openpgp-keys-stellarium ) -" -RDEPEND=" - media-fonts/dejavu - sys-libs/zlib - gps? ( sci-geosciences/gpsd:=[cxx] ) - media? ( virtual/opengl ) - !qt6? ( - dev-qt/qtcharts:5 - dev-qt/qtcore:5 - dev-qt/qtgui:5= - dev-qt/qtnetwork:5 - dev-qt/qtwidgets:5 - >=sci-astronomy/calcmysky-0.3.0:=[qt5] - gps? ( - dev-qt/qtpositioning:5 - dev-qt/qtserialport:5 - ) - media? ( - dev-qt/qtmultimedia:5[widgets] - dev-qt/qtopengl:5 - ) - scripting? ( dev-qt/qtscript:5 ) - telescope? ( dev-qt/qtserialport:5 ) - webengine? ( dev-qt/qtwebengine:5[widgets] ) - xlsx? ( dev-libs/qxlsx:=[qt5] ) - ) - qt6? ( - dev-qt/qtbase:6=[gui,network,widgets] - dev-qt/qtcharts:6 - >=sci-astronomy/calcmysky-0.3.0:=[qt6] - gps? ( - dev-qt/qtpositioning:6 - dev-qt/qtserialport:6 - ) - media? ( - dev-qt/qtmultimedia:6[gstreamer] - ) - scripting? ( dev-qt/qtdeclarative:6 ) - telescope? ( dev-qt/qtserialport:6 ) - webengine? ( dev-qt/qtwebengine:6[widgets] ) - xlsx? ( dev-libs/qxlsx:=[qt6] ) - ) - telescope? ( sci-libs/indilib:= ) -" -DEPEND="${RDEPEND} - !qt6? ( - dev-qt/qtconcurrent:5 - test? ( dev-qt/qttest:5 ) - ) - qt6? ( dev-qt/qtbase:6=[concurrent] ) -" - -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}/stellarium-0.20.3-unbundle-zlib.patch" - "${FILESDIR}/stellarium-0.22.2-ccache.patch" -) - -VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/stellarium.asc -src_unpack() { - # stars-2.0 are not signed - if use verify-sig; then - pushd "${DISTDIR}" > /dev/null || die - verify-sig_verify_detached \ - ${P}.tar.xz{,.asc} - use deep-sky && verify-sig_verify_detached \ - ${PN}-dso-catalog-${MY_DSO_VERSION}.dat{,.asc} - use doc && verify-sig_verify_detached \ - stellarium_user_guide-${PV}-1.pdf{,.asc} - popd > /dev/null || die - fi - default_src_unpack -} - -src_prepare() { - cmake_src_prepare - use debug || append-cppflags -DQT_NO_DEBUG #415769 - - rm -r src/external/zlib/ || 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=( - -DCPM_LOCAL_PACKAGES_ONLY=yes - -DENABLE_GPS="$(usex gps)" - -DENABLE_MEDIA="$(usex media)" - -DENABLE_NLS="$(usex nls)" - -DENABLE_QT6="$(usex qt6)" - -DENABLE_QTWEBENGINE="$(usex webengine)" - -DENABLE_SHOWMYSKY=$(usex show-my-sky) - -DENABLE_SCRIPTING=$(usex scripting) - -DENABLE_TESTING="$(usex test)" - -DENABLE_XLSX="$(usex xlsx)" - -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/default - doins "${DISTDIR}"/stars_4_1v0_2.cat - doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.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 -} -- cgit v1.2.3-65-gdbad