diff options
author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2023-09-25 22:31:07 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-09-26 21:06:26 +0200 |
commit | 9f3f07f97dd72e0987ad7688b19e4f1bfe4210bf (patch) | |
tree | 06892e5ea8510e2f11a53eca577a9163f33ca05c /sci-astronomy/stellarium | |
parent | sci-astronomy/stellarium: fix build even when sci-libs/indilib is installed (diff) | |
download | gentoo-9f3f07f97dd72e0987ad7688b19e4f1bfe4210bf.tar.gz gentoo-9f3f07f97dd72e0987ad7688b19e4f1bfe4210bf.tar.bz2 gentoo-9f3f07f97dd72e0987ad7688b19e4f1bfe4210bf.zip |
sci-astronomy/stellarium: add 23.3
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-astronomy/stellarium')
-rw-r--r-- | sci-astronomy/stellarium/Manifest | 6 | ||||
-rw-r--r-- | sci-astronomy/stellarium/files/stellarium-0.23.3-ccache.patch | 13 | ||||
-rw-r--r-- | sci-astronomy/stellarium/stellarium-23.3.ebuild | 198 |
3 files changed, 217 insertions, 0 deletions
diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest index 7c6a5509eaab..29694c1b5062 100644 --- a/sci-astronomy/stellarium/Manifest +++ b/sci-astronomy/stellarium/Manifest @@ -8,9 +8,15 @@ DIST stellarium-23.1.tar.xz 347455652 BLAKE2B 1cd367b91a77bd9ace1afe667d9579fad9 DIST stellarium-23.1.tar.xz.asc 313 BLAKE2B 69a9c88defbd1fa955ad3f93af98d33a1b959fdbe7a8138590f5fbd88c25d5b25b3929a31d235eaf43af562e9eb2bd70a2ca4999dffeb3cb5d71f9bf4d692025 SHA512 d9ee09317d0bfc1758fb771ac15a2d4c29cb6cd77cbffd2f4046137a243d31c2253a3f367a12c2a089a4c09b865a78670ab626b8e7f40a8500c2f0abb5d60474 DIST stellarium-23.2.tar.xz 317080088 BLAKE2B ac1d0473ba6c8e5c56a95113b48fb710e0dfb61c7fe45b39165e994b22f58c3de899f0d147158a2fcc933f91c5328ee0f6b4ce4c6a56b818f2db20fa5d89930f SHA512 ba1ab70367eb626fdc831a5845a25d5deb6ed4d89c1bd6acc9b769e1cd739afb6bc98263a842e3153e1015796e5ef132fd1077b590010c4de1090e13928a7200 DIST stellarium-23.2.tar.xz.asc 313 BLAKE2B e1ac6d32211edff8dfdd44d0b2bc98ea54e17f33ed9c0e3b49036aabcc20608bcee7a478d8763eb23dfd045c5151961f733bcbd894b61f806788c897eda60b3b SHA512 c2867bc9b0aca5c47b32bd5ae8c91a563d896b392bcb3d705e9f0b8246f0396bc79fba5681e8f5a7b423535f08e3f11fa5b5db20715b9e2a962390f6c1471c22 +DIST stellarium-23.3.tar.xz 320086976 BLAKE2B 38e6c7710b071f6c3086f9c428723a55ba76c9d14d919d3fa712040286cb1d866094918c25c18d245d86644851046e89ccad5c5e008e0f6b66b4cc2bd3672ca7 SHA512 da52d2c8981a3db4086539d2b32c42c6e85600cb4675aae2305bb82cf14398be162d8643f3f3ea38f1020c4650d8d2d4165fbd32be701562ab665e4c31fe99fb +DIST stellarium-23.3.tar.xz.asc 313 BLAKE2B 6efd2402c7b3c0ee5647a2ad506c7b7b17f481c1305ed10601459f1cf0cf3b77042a3131840bba27d411d293f6f73e7339c9878cfabd708dd3d9538a3cc75c82 SHA512 57a4feafe161d2fac3f0592d56372eca3cff9cd8b9c90876f63a3468a326bcf1104b54ed2ae7ae1e84c44a05cb35d64b6c6ca2fe26d7064f90a5e3d7e897eaf4 DIST stellarium-dso-catalog-3.19.dat 28678714 BLAKE2B 855ec3370efa2ad33d9a99cf473659c76cbcfce87c10df67a6f81514fe3fa2385e295e1a092e55db8164093628e5038399dd62b837e39efc2306be15a0292dc5 SHA512 4187c574789c2bb387791039465eed9c915fec16ae4edbf0c160406dd7bdf7dae0c70846f0208ca639909bb6842c2bc3c2337302bfaf1394f4e081707df5079c DIST stellarium-dso-catalog-3.19.dat.asc 313 BLAKE2B 6ae0acdb9b1012e71c346e5834b88dd1e8146789158a5d81e7e992b1730ab5a74899aac76b84b269fb1ccdc2494ddb258209c580751705bda6023fc59132e7d7 SHA512 95a1cf3911c67e2104d6240b9a5e0ce0d0f2d8ed5edcb40303432d17b3d4ccd8875eb9b9e8b7f94e81d1103dba98d3ac5cb6354933f78ebda83015a45297a159 +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-23.1-1.pdf 32513574 BLAKE2B 30e971f186d88bdfe5d8346dd4385444eb75e84ce8f5acc8d9f3a6050ac5a7c734b6f74e681738cdb4d4af91645b50a81bb65798b5caa58a9a23691bb40b5593 SHA512 5e5a69f9377496fb42ce2e2ce72e4caf0d35e475e586ccba2814ca7d2e2a3f60bfc46e496f9153a7b4157977460ac7c574d7f452f4af746799ecc9231e32e49d DIST stellarium_user_guide-23.1-1.pdf.asc 313 BLAKE2B b573ea45b236ad35cca1614919bb1e2076d4785f2d5d878a874f9536df9c454c9aa2a90797ea930f669676bc23db545ca051996f2ba2124e3eb3acc0890bc975 SHA512 124f9a4ee2452297d6ffdf696cb32c7087d7b5e31c08c56016842414b407fd8c14ce1dd59d160b7d685a0db88982e0a9b6410fbe69ef476a3a16649e16c591a2 DIST stellarium_user_guide-23.2-1.pdf 32767542 BLAKE2B feb317354b0e696b585fb9edbe2a643bd57ba9da7657173506c1989d63618dcc4e2dd15fd1a9009d919d99ab4b28bd56599b569df11a573aa8d0af8ab85522ef SHA512 d699c9acd048d44221409515657a1f8a3be01629e64e233a1fb114c3935ee1c0fdffe9c7cd1ac60337d8168858f8d9ca3f5624965ff3343463b1a1a0b1b32849 DIST stellarium_user_guide-23.2-1.pdf.asc 313 BLAKE2B bbc579e34b00a5e5b3497955e7cafcefbf9400063c97dee11bcc0c66e46f446f247c20e1d0205cf9b2117330d4209b6289808a59db4ff298c986771ca962a136 SHA512 d8fac13754bde068cb581ca21149ebcb6307bf4c71c95083fa4bf6e01f953f8d586ed5e149d91ca6439995d6fb7049254be09001ad0c8ff354ea75f7600e5de6 +DIST stellarium_user_guide-23.3-1.pdf 32929394 BLAKE2B 0d4c1c4a667d963981dc7625cd2d0b229351393cf3ef6073cbb7b76947256906186cf72195f1c34081a9771b451f79adf459e45e01253675285efe8747d0aa91 SHA512 c5b4b41caf4a36ae85527ab33511e1d69da663714744d78cebd7513472227ef045db38944e9800ad9be0fe34902a7e7b09db7518194790e64eb93141eadf8d7e +DIST stellarium_user_guide-23.3-1.pdf.asc 313 BLAKE2B 8e976d2528bfa3b35761c968da5970ce3b76694a1c9980f90dcd51e7f55b9f34fbf778acb6c0999c544787382274ff747edacaf23e685a6b0ac2d75170296132 SHA512 be300a11072b17df4e0ecd7e1fd25193e23e0214ccfee3e1748461732f7065a9c2c7c38bfaf838607204b0f7b1bda4917ac5973d6ff081718f1ed7cd12f29c7b diff --git a/sci-astronomy/stellarium/files/stellarium-0.23.3-ccache.patch b/sci-astronomy/stellarium/files/stellarium-0.23.3-ccache.patch new file mode 100644 index 000000000000..e71c9f7f90ea --- /dev/null +++ b/sci-astronomy/stellarium/files/stellarium-0.23.3-ccache.patch @@ -0,0 +1,13 @@ +Don't automagically use ccache https://bugs.gentoo.org/847439 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -196,7 +196,7 @@ IF(OPENGL_DEBUG_LOGGING) + ENDIF()
+
+ # Use ccache if possible
+-IF(NOT WIN32)
++IF(FALSE)
+ FIND_PROGRAM(CCACHE_PROGRAM ccache)
+ IF(CCACHE_PROGRAM)
+ MESSAGE(STATUS "Found ccache ${CCACHE_PROGRAM}")
diff --git a/sci-astronomy/stellarium/stellarium-23.3.ebuild b/sci-astronomy/stellarium/stellarium-23.3.ebuild new file mode 100644 index 000000000000..3df848b94c87 --- /dev/null +++ b/sci-astronomy/stellarium/stellarium-23.3.ebuild @@ -0,0 +1,198 @@ +# 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.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-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.23.3-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 + # https://bugs.gentoo.org/913177 + mycmakeargs+=( + -DPREFER_SYSTEM_INDILIB=no + -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 +} |