1 |
commit: fcaf5fc9f33c8b0dee570c996ea60f38a50c83d7 |
2 |
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> |
3 |
AuthorDate: Sat Dec 25 17:09:35 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 3 19:06:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcaf5fc9 |
7 |
|
8 |
sci-astronomy/stellarium: version 0.21.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/23513 |
13 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
14 |
|
15 |
profiles/arch/riscv/package.use.mask | 4 + |
16 |
sci-astronomy/stellarium/Manifest | 2 + |
17 |
sci-astronomy/stellarium/metadata.xml | 1 + |
18 |
sci-astronomy/stellarium/stellarium-0.21.3.ebuild | 144 ++++++++++++++++++++++ |
19 |
4 files changed, 151 insertions(+) |
20 |
|
21 |
diff --git a/profiles/arch/riscv/package.use.mask b/profiles/arch/riscv/package.use.mask |
22 |
index db4112892041..64bd1d5f56fb 100644 |
23 |
--- a/profiles/arch/riscv/package.use.mask |
24 |
+++ b/profiles/arch/riscv/package.use.mask |
25 |
@@ -13,6 +13,10 @@ net-misc/vinagre spice |
26 |
# dev-lang/julia doesn't support riscv yet |
27 |
sci-mathematics/singular julia |
28 |
|
29 |
+# Alexey Sokolov <alexey+gentoo@××××××××.org> (2012-12-25) |
30 |
+# Requires dev-qt/qtwebengine |
31 |
+sci-astronomy/stellarium webengine |
32 |
+ |
33 |
# Alex Fan <alex.fan.q@×××××.com> (2021-12-12) |
34 |
# dev-python/uvloop fails test #806412 |
35 |
# but with it installed, anyio passes all tests |
36 |
|
37 |
diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest |
38 |
index 3d724de878bb..dccc451abef6 100644 |
39 |
--- a/sci-astronomy/stellarium/Manifest |
40 |
+++ b/sci-astronomy/stellarium/Manifest |
41 |
@@ -4,5 +4,7 @@ DIST stars_6_2v0_1.cat 148352404 BLAKE2B c605b284b3d768cb1619ada3f58d406fa7737f0 |
42 |
DIST stars_7_2v0_1.cat 305710678 BLAKE2B 1cc9b4a6bc35a9339e495f7e0da4f7e90a0e92b05b5de8599be1bbdd2a8053cbcec44b0e58bc9248364666db9cdf23449edf236e3f21fdc0e8f1a4a706afc919 SHA512 43b866eb793e8812c9d5502101a6c985d2055fb88bdbda274726bcd51e1527ecf342b22acd673318c9c8e88cac68eace18de8f27d29ffe64933fd32a5b84c5e3 |
43 |
DIST stars_8_2v0_1.cat 559068934 BLAKE2B c040a369cdf6885759998e1315b554d21a5e2b9b149a67967a8af45606aebf57bec407fab5ce1904978af0dc529aa6bddd267331ca45f58617bbf56d5ca99dee SHA512 06d4fa298b9dff8452f550377df99fcaa5e7107cfc7b75c9a4769b3cb6d97a822a54213c706102c1d7ef2dabc16df32a85f46b2f6d6c6f76a4e919353b739de4 |
44 |
DIST stellarium-0.21.2.tar.gz 387061883 BLAKE2B 74878961efb01088c5c7c3031d989cccce5db2e072890d01a37a8b40d30838d7ee06f440abcd8279f14677f12c42f29d129499cf2e73c0bd2e771f201007d123 SHA512 91f4e263bcda25ba356decc99f46a3e278be24bcab25519522deac0ed540205ab8320365bb40a56b7f231635bf5b026b4f87f00eeb68a26eab2b7e37d38567bf |
45 |
+DIST stellarium-0.21.3.tar.gz 390176992 BLAKE2B 9a6ba3ab6e1b0a61916c844d271bb2181f7b6482dfaaf24e9160dd00cec297e80fc2af167f77aaf248c4dcb358ff64c5cdc138626f37030529146f1e822813e8 SHA512 6553f0229f837742e8b9db2715ecb96d69fe46aa7f057d86fb2547540d86f2cb767ca4a6bb5ff18037642113b42fec3f2850e037275fc732aae63da8031bbd0e |
46 |
DIST stellarium-dso-catalog-3.13.dat 28683353 BLAKE2B 6d7587f98ccb06a83e6befb1d569c9639170c8a430901c1c6098a86a33fe8934cd4454a87b51752636a15ab1a96fd3ebd77cbd5d9e4260436ec2e4e4795f98b0 SHA512 3880ec776798599640fb083b0c9ebbccadef44f640fb2214052161ddbeb06bf5b0babc0c31d9ac02aa40e52e290d4f5613c11a6dadd83fd61114dbfb49ebe855 |
47 |
DIST stellarium_user_guide-0.21.2-1.pdf 31351844 BLAKE2B f8a35dcc1c0d9a40ec8d640b3cc2ee1f5e154b0f06507e0ef9ccbabdc05add2c00704e611932710a60f2b21730c8398e52be0cb142428de77eec304489591db9 SHA512 7e0bb33583ac4e89ea3cd7be5585cc00d9ac473d99d4e0862be1a74edb66cbd13661bd5d7787b60a945e302e33e190cc30a51df10d363e1af49002129f8e399f |
48 |
+DIST stellarium_user_guide-0.21.3-1.pdf 31253904 BLAKE2B 3e8a0395a29c2fac164379ea315cd21d102b2b400d9eeacdb37cf85f00816f0678edabb9b779db135f4c43ee4cfcc6307ee59f4a149aa33e878c11fe26551266 SHA512 83137fe09bdc279bec23b78694d5e1efe9238733f8adf2cb8ed7e37f0eee60b0475c4c93b5bc85a04b92a175284c24354c36b6a93014216387211c9b031cdf7c |
49 |
|
50 |
diff --git a/sci-astronomy/stellarium/metadata.xml b/sci-astronomy/stellarium/metadata.xml |
51 |
index 7f5dce357280..a164ddaabccc 100644 |
52 |
--- a/sci-astronomy/stellarium/metadata.xml |
53 |
+++ b/sci-astronomy/stellarium/metadata.xml |
54 |
@@ -24,6 +24,7 @@ |
55 |
<flag name="media">Enable sound and video support</flag> |
56 |
<flag name="stars">Install extra star catalogs</flag> |
57 |
<flag name="telescope">Enable telescope control via <pkg>sci-libs/indilib</pkg></flag> |
58 |
+ <flag name="webengine">Show online results about the selected star in an embedded window using <pkg>dev-qt/qtwebengine</pkg></flag> |
59 |
</use> |
60 |
<upstream> |
61 |
<remote-id type="github">Stellarium/stellarium</remote-id> |
62 |
|
63 |
diff --git a/sci-astronomy/stellarium/stellarium-0.21.3.ebuild b/sci-astronomy/stellarium/stellarium-0.21.3.ebuild |
64 |
new file mode 100644 |
65 |
index 000000000000..abb37df4de69 |
66 |
--- /dev/null |
67 |
+++ b/sci-astronomy/stellarium/stellarium-0.21.3.ebuild |
68 |
@@ -0,0 +1,144 @@ |
69 |
+# Copyright 1999-2021 Gentoo Authors |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI=8 |
73 |
+ |
74 |
+PYTHON_COMPAT=( python3_{8..10} ) |
75 |
+inherit cmake desktop flag-o-matic python-any-r1 xdg virtualx |
76 |
+ |
77 |
+DESCRIPTION="3D photo-realistic skies in real time" |
78 |
+HOMEPAGE="https://stellarium.org/" |
79 |
+MY_DSO_VERSION="3.13" |
80 |
+SRC_URI=" |
81 |
+ https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.gz |
82 |
+ deep-sky? ( |
83 |
+ https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog-${MY_DSO_VERSION}.dat -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat |
84 |
+ ) |
85 |
+ doc? ( |
86 |
+ https://github.com/Stellarium/stellarium/releases/download/v${PV}/stellarium_user_guide-${PV}-1.pdf |
87 |
+ ) |
88 |
+ stars? ( |
89 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_4_1v0_2.cat |
90 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_5_2v0_1.cat |
91 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_6_2v0_1.cat |
92 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_7_2v0_1.cat |
93 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_8_2v0_1.cat |
94 |
+ )" |
95 |
+ |
96 |
+LICENSE="GPL-2+ SGI-B-2.0" |
97 |
+SLOT="0" |
98 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" |
99 |
+IUSE="debug deep-sky doc gps media nls stars telescope test webengine" |
100 |
+ |
101 |
+# Python interpreter is used while building RemoteControl plugin |
102 |
+BDEPEND=" |
103 |
+ ${PYTHON_DEPS} |
104 |
+ doc? ( app-doc/doxygen[dot] ) |
105 |
+ nls? ( dev-qt/linguist-tools:5 ) |
106 |
+" |
107 |
+RDEPEND=" |
108 |
+ dev-libs/qtcompress:= |
109 |
+ dev-qt/qtcore:5 |
110 |
+ dev-qt/qtgui:5 |
111 |
+ dev-qt/qtnetwork:5 |
112 |
+ dev-qt/qtopengl:5 |
113 |
+ dev-qt/qtprintsupport:5 |
114 |
+ dev-qt/qtscript:5 |
115 |
+ dev-qt/qtwidgets:5 |
116 |
+ media-fonts/dejavu |
117 |
+ sys-libs/zlib |
118 |
+ virtual/opengl |
119 |
+ gps? ( |
120 |
+ dev-qt/qtpositioning:5 |
121 |
+ dev-qt/qtserialport:5 |
122 |
+ sci-geosciences/gpsd:=[cxx] |
123 |
+ ) |
124 |
+ media? ( dev-qt/qtmultimedia:5[widgets] ) |
125 |
+ telescope? ( |
126 |
+ dev-qt/qtserialport:5 |
127 |
+ sci-libs/indilib:= |
128 |
+ ) |
129 |
+ webengine? ( dev-qt/qtwebengine:5[widgets] ) |
130 |
+" |
131 |
+DEPEND="${RDEPEND} |
132 |
+ dev-qt/qtconcurrent:5 |
133 |
+ test? ( dev-qt/qttest:5 ) |
134 |
+" |
135 |
+ |
136 |
+RESTRICT="!test? ( test )" |
137 |
+ |
138 |
+PATCHES=( |
139 |
+ "${FILESDIR}/stellarium-0.20.3-unbundle-indi.patch" |
140 |
+ "${FILESDIR}/stellarium-0.21.2-unbundle-qtcompress.patch" |
141 |
+ "${FILESDIR}/stellarium-0.20.3-unbundle-zlib.patch" |
142 |
+) |
143 |
+ |
144 |
+src_prepare() { |
145 |
+ cmake_src_prepare |
146 |
+ use debug || append-cppflags -DQT_NO_DEBUG #415769 |
147 |
+ |
148 |
+ # Several libraries are bundled, remove them. |
149 |
+ rm -r src/external/{libindi,qtcompress,zlib}/ || die |
150 |
+ |
151 |
+ # qcustomplot can't be easily unbundled because it uses qcustomplot 1 |
152 |
+ # while we have qcustomplot 2 in tree which changed API a bit |
153 |
+ # Also the license of the external qcustomplot is incompatible with stellarium |
154 |
+ |
155 |
+ # for glues_stel aka libtess I couldn't find an upstream with the same API |
156 |
+ |
157 |
+ # unbundling of qxlsx depends on https://github.com/QtExcel/QXlsx/pull/185 |
158 |
+ |
159 |
+ local remaining="$(cd src/external/ && echo */)" |
160 |
+ if [[ "${remaining}" != "glues_stel/ qcustomplot/ qxlsx/" ]]; then |
161 |
+ eqawarn "Need to unbundle more deps: ${remaining}" |
162 |
+ fi |
163 |
+} |
164 |
+ |
165 |
+src_configure() { |
166 |
+ local mycmakeargs=( |
167 |
+ -DENABLE_GPS="$(usex gps)" |
168 |
+ -DENABLE_MEDIA="$(usex media)" |
169 |
+ -DENABLE_NLS="$(usex nls)" |
170 |
+ -DENABLE_TESTING="$(usex test)" |
171 |
+ -DUSE_PLUGIN_TELESCOPECONTROL="$(usex telescope)" |
172 |
+ $(cmake_use_find_package webengine Qt5WebEngine) |
173 |
+ $(cmake_use_find_package webengine Qt5WebEngineWidgets) |
174 |
+ ) |
175 |
+ cmake_src_configure |
176 |
+} |
177 |
+ |
178 |
+src_test() { |
179 |
+ virtx cmake_src_test |
180 |
+} |
181 |
+ |
182 |
+src_compile() { |
183 |
+ cmake_src_compile |
184 |
+ |
185 |
+ if use doc ; then |
186 |
+ cmake_build apidoc |
187 |
+ fi |
188 |
+} |
189 |
+ |
190 |
+src_install() { |
191 |
+ if use doc ; then |
192 |
+ local HTML_DOCS=( "${BUILD_DIR}/doc/html/." ) |
193 |
+ dodoc "${DISTDIR}/stellarium_user_guide-${PV}-1.pdf" |
194 |
+ fi |
195 |
+ cmake_src_install |
196 |
+ |
197 |
+ # use the more up-to-date system fonts |
198 |
+ rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die |
199 |
+ dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf |
200 |
+ dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf |
201 |
+ |
202 |
+ if use stars ; then |
203 |
+ insinto /usr/share/${PN}/stars/default |
204 |
+ doins "${DISTDIR}"/stars_4_1v0_2.cat |
205 |
+ doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.cat |
206 |
+ fi |
207 |
+ if use deep-sky ; then |
208 |
+ insinto /usr/share/${PN}/nebulae/default |
209 |
+ newins "${DISTDIR}/${PN}-dso-catalog-${MY_DSO_VERSION}.dat" catalog.dat |
210 |
+ fi |
211 |
+ newicon doc/images/stellarium-logo.png ${PN}.png |
212 |
+} |