Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/stellarium/
Date: Thu, 16 Jul 2020 14:39:19
Message-Id: 1594910323.403e1b6a2d459405e69055941553fd326a11ab0a.juippis@gentoo
1 commit: 403e1b6a2d459405e69055941553fd326a11ab0a
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Mon Jun 22 23:27:07 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 16 14:38:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=403e1b6a
7
8 sci-astronomy/stellarium: version 0.20.2
9
10 Also added USE-flag to install extra DSO.
11
12 Package-Manager: Portage-2.3.99, Repoman-2.3.22
13 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
14 Closes: https://github.com/gentoo/gentoo/pull/16379
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 sci-astronomy/stellarium/Manifest | 2 +
18 sci-astronomy/stellarium/metadata.xml | 1 +
19 sci-astronomy/stellarium/stellarium-0.20.2.ebuild | 91 +++++++++++++++++++++++
20 3 files changed, 94 insertions(+)
21
22 diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest
23 index 156bf5bab29..e2c36144a7b 100644
24 --- a/sci-astronomy/stellarium/Manifest
25 +++ b/sci-astronomy/stellarium/Manifest
26 @@ -5,3 +5,5 @@ DIST stars_7_2v0_1.cat 305710678 BLAKE2B 1cc9b4a6bc35a9339e495f7e0da4f7e90a0e92b
27 DIST stars_8_2v0_1.cat 559068934 BLAKE2B c040a369cdf6885759998e1315b554d21a5e2b9b149a67967a8af45606aebf57bec407fab5ce1904978af0dc529aa6bddd267331ca45f58617bbf56d5ca99dee SHA512 06d4fa298b9dff8452f550377df99fcaa5e7107cfc7b75c9a4769b3cb6d97a822a54213c706102c1d7ef2dabc16df32a85f46b2f6d6c6f76a4e919353b739de4
28 DIST stellarium-0.19.3.tar.gz 326218851 BLAKE2B 286d2559a2152f030640ed88778f57f1213d0d8b9e990d0aa1ad5138396fe9641083ec76554e1296dc79d914955e289d23046af42299df6217bbfbaca76b2f18 SHA512 c2948603a3b84fd2b7002cbd9993a2432ca0908d9236aca03c03ff0cf0706728a407218096e94da2b2a623b5434c109906d94ee5069a2d57a8e35af7c8455ff7
29 DIST stellarium-0.20.1.tar.gz 343991703 BLAKE2B 59580dd2bca885893bfc68faaf966a727e3d7c0774f59726e23cec132cbfca4ae518983db2e52d4d3d3f1ec96c7ce876168bb23959178ebf212ee6bb357299b3 SHA512 685a306391dc681cc21834a226e35c769e11909f625ff7461d7e896ba412ad595871e93c69981b342099f46829f9f3ef3e276be867dc5ea5523fa60a99cc21d1
30 +DIST stellarium-0.20.2.tar.gz 344319520 BLAKE2B 0a64cfc6d5a43bf811609caa9104458768e234bad8fabd2aa88a38d860c22573d076f677f7523c95e1fc1770e73dc1e73b2e94d544cb099c7cd9a21ac79f6bdb SHA512 34f1ad5891dde84b53324046bdf1514df858335ba8f0954bb72350b057ff6dc4091a2d7bf89083489e0d8d1c750c5fb8ba8e1e241f9287a740121b377f0e510c
31 +DIST stellarium-dso-catalog-3.10.dat 28297970 BLAKE2B 69d8f9756986c872cde0190ae3e5f225de30d8fabd5ba3e007176c8ffc4234e964ccc3beb58f75fc4579c75cee620661728a7c6c1d6960d5cb1be027828ba127 SHA512 22068d9ebca592db214f9831765701c52d07e71616705faaf6f5827d51a65af805947bd1f84553e5768f3e82f9e1a0e81eb36943713afb924d604a4676711b1f
32
33 diff --git a/sci-astronomy/stellarium/metadata.xml b/sci-astronomy/stellarium/metadata.xml
34 index 2e00add2cfd..53378dcf228 100644
35 --- a/sci-astronomy/stellarium/metadata.xml
36 +++ b/sci-astronomy/stellarium/metadata.xml
37 @@ -20,6 +20,7 @@
38 projectors.
39 </longdescription>
40 <use>
41 + <flag name="deep-sky">Install extra deep sky objects catalog (may affect performance)</flag>
42 <flag name="media">Enable sound and video support</flag>
43 <flag name="stars">Install extra star catalogs</flag>
44 </use>
45
46 diff --git a/sci-astronomy/stellarium/stellarium-0.20.2.ebuild b/sci-astronomy/stellarium/stellarium-0.20.2.ebuild
47 new file mode 100644
48 index 00000000000..b9d232ba256
49 --- /dev/null
50 +++ b/sci-astronomy/stellarium/stellarium-0.20.2.ebuild
51 @@ -0,0 +1,91 @@
52 +# Copyright 1999-2020 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +inherit cmake desktop flag-o-matic xdg virtualx
58 +
59 +DESCRIPTION="3D photo-realistic skies in real time"
60 +HOMEPAGE="https://stellarium.org/"
61 +MY_DSO_VERSION="3.10"
62 +SRC_URI="
63 + https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.gz
64 + deep-sky? (
65 + https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog.dat -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat
66 + )
67 + stars? (
68 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_4_1v0_2.cat
69 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_5_2v0_1.cat
70 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_6_2v0_1.cat
71 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_7_2v0_1.cat
72 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_8_2v0_1.cat
73 + )"
74 +
75 +LICENSE="GPL-2+"
76 +SLOT="0"
77 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
78 +IUSE="debug deep-sky gps media nls stars test"
79 +
80 +BDEPEND="
81 + nls? ( dev-qt/linguist-tools:5 )
82 +"
83 +RDEPEND="
84 + dev-qt/qtcore:5
85 + dev-qt/qtgui:5
86 + dev-qt/qtnetwork:5
87 + dev-qt/qtopengl:5
88 + dev-qt/qtprintsupport:5
89 + dev-qt/qtscript:5
90 + dev-qt/qtserialport:5
91 + dev-qt/qtwidgets:5
92 + media-fonts/dejavu
93 + sys-libs/zlib
94 + virtual/opengl
95 + gps? ( dev-qt/qtpositioning:5 )
96 + media? ( dev-qt/qtmultimedia:5[widgets] )
97 +"
98 +DEPEND="${RDEPEND}
99 + dev-qt/qtconcurrent:5
100 + test? ( dev-qt/qttest:5 )
101 +"
102 +
103 +RESTRICT="!test? ( test )"
104 +
105 +src_prepare() {
106 + cmake_src_prepare
107 + use debug || append-cppflags -DQT_NO_DEBUG #415769
108 +}
109 +
110 +src_configure() {
111 + local mycmakeargs=(
112 + -DENABLE_GPS="$(usex gps)"
113 + -DENABLE_MEDIA="$(usex media)"
114 + -DENABLE_NLS="$(usex nls)"
115 + -DENABLE_TESTING="$(usex test)"
116 + )
117 + cmake_src_configure
118 +}
119 +
120 +src_test() {
121 + virtx cmake_src_test
122 +}
123 +
124 +src_install() {
125 + cmake_src_install
126 +
127 + # use the more up-to-date system fonts
128 + rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die
129 + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf
130 + dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf
131 +
132 + if use stars ; then
133 + insinto /usr/share/${PN}/stars/default
134 + doins "${DISTDIR}"/stars_4_1v0_2.cat
135 + doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.cat
136 + fi
137 + if use deep-sky ; then
138 + insinto /usr/share/${PN}/nebulae/default
139 + newins "${DISTDIR}/${PN}-dso-catalog-${MY_DSO_VERSION}.dat" catalog.dat
140 + fi
141 + newicon doc/images/stellarium-logo.png ${PN}.png
142 +}