1 |
commit: 322e1cc0f6f08d12e24880cf2ce79b05afc3df57 |
2 |
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> |
3 |
AuthorDate: Wed Sep 29 08:07:37 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 29 08:07:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=322e1cc0 |
7 |
|
8 |
sci-astronomy/stellarium: 0.21.2 version bump |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22437 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
sci-astronomy/stellarium/Manifest | 3 + |
16 |
.../stellarium-0.21.2-unbundle-qtcompress.patch | 207 +++++++++++++++++++++ |
17 |
sci-astronomy/stellarium/stellarium-0.21.2.ebuild | 141 ++++++++++++++ |
18 |
3 files changed, 351 insertions(+) |
19 |
|
20 |
diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest |
21 |
index 943e3f7c2fd..02259f1d146 100644 |
22 |
--- a/sci-astronomy/stellarium/Manifest |
23 |
+++ b/sci-astronomy/stellarium/Manifest |
24 |
@@ -4,5 +4,8 @@ DIST stars_6_2v0_1.cat 148352404 BLAKE2B c605b284b3d768cb1619ada3f58d406fa7737f0 |
25 |
DIST stars_7_2v0_1.cat 305710678 BLAKE2B 1cc9b4a6bc35a9339e495f7e0da4f7e90a0e92b05b5de8599be1bbdd2a8053cbcec44b0e58bc9248364666db9cdf23449edf236e3f21fdc0e8f1a4a706afc919 SHA512 43b866eb793e8812c9d5502101a6c985d2055fb88bdbda274726bcd51e1527ecf342b22acd673318c9c8e88cac68eace18de8f27d29ffe64933fd32a5b84c5e3 |
26 |
DIST stars_8_2v0_1.cat 559068934 BLAKE2B c040a369cdf6885759998e1315b554d21a5e2b9b149a67967a8af45606aebf57bec407fab5ce1904978af0dc529aa6bddd267331ca45f58617bbf56d5ca99dee SHA512 06d4fa298b9dff8452f550377df99fcaa5e7107cfc7b75c9a4769b3cb6d97a822a54213c706102c1d7ef2dabc16df32a85f46b2f6d6c6f76a4e919353b739de4 |
27 |
DIST stellarium-0.21.1.tar.gz 362055145 BLAKE2B a7ea6327d415331848a53879e76ea973fbb51709a0bd561cd4e415b215e5c8494290e2e663bda9f463f565a771465e0e0133f46517a5798d607f076e2635764d SHA512 6dd935808c711da32c793a0cedad464a15bf35ede60cff385e96f1d5868e751ed2e09b61551f7a6fe599b702a6f4d0a62d4494a40b68e77685ba57b6a63b5031 |
28 |
+DIST stellarium-0.21.2.tar.gz 387061883 BLAKE2B 74878961efb01088c5c7c3031d989cccce5db2e072890d01a37a8b40d30838d7ee06f440abcd8279f14677f12c42f29d129499cf2e73c0bd2e771f201007d123 SHA512 91f4e263bcda25ba356decc99f46a3e278be24bcab25519522deac0ed540205ab8320365bb40a56b7f231635bf5b026b4f87f00eeb68a26eab2b7e37d38567bf |
29 |
DIST stellarium-dso-catalog-3.12.dat 28298461 BLAKE2B 0845981c1d35480eb0b1656e167f7f2dece00d82890c6605b6e5305e6c5be02bcce463c4a34ba3f9ee52f42c35b0a416a93b91361fdd9ce3c24f9bcb4be038f9 SHA512 0de88e559cc26c484edb0eb9d3dd33b4faf9a0e3579dc5ebfbcba70cc39a4e052248c159ace29c9a69027c8c121a832d510459d523b2e05bb0620556d2a49935 |
30 |
+DIST stellarium-dso-catalog-3.13.dat 28683353 BLAKE2B 6d7587f98ccb06a83e6befb1d569c9639170c8a430901c1c6098a86a33fe8934cd4454a87b51752636a15ab1a96fd3ebd77cbd5d9e4260436ec2e4e4795f98b0 SHA512 3880ec776798599640fb083b0c9ebbccadef44f640fb2214052161ddbeb06bf5b0babc0c31d9ac02aa40e52e290d4f5613c11a6dadd83fd61114dbfb49ebe855 |
31 |
DIST stellarium_user_guide-0.21.1-1.pdf 31256531 BLAKE2B 511bbd2c7247156959966a038d387c0522f0539d6226c0db5c76abbe60a972a61530c7c0c5b4a93ad3d36a2eaf53260ad7d8ab09b207b90a56f35b0b67bfae42 SHA512 5ba8b4ccfc9ea2b374cc486bbd43d7aad344f8c1f204cf314f8b73b7a68199fcebac938021d7a94093514c95b61ac3dd1b6992a51ff7a5522cf025e430e51c7f |
32 |
+DIST stellarium_user_guide-0.21.2-1.pdf 31351844 BLAKE2B f8a35dcc1c0d9a40ec8d640b3cc2ee1f5e154b0f06507e0ef9ccbabdc05add2c00704e611932710a60f2b21730c8398e52be0cb142428de77eec304489591db9 SHA512 7e0bb33583ac4e89ea3cd7be5585cc00d9ac473d99d4e0862be1a74edb66cbd13661bd5d7787b60a945e302e33e190cc30a51df10d363e1af49002129f8e399f |
33 |
|
34 |
diff --git a/sci-astronomy/stellarium/files/stellarium-0.21.2-unbundle-qtcompress.patch b/sci-astronomy/stellarium/files/stellarium-0.21.2-unbundle-qtcompress.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..f5d757b1bb1 |
37 |
--- /dev/null |
38 |
+++ b/sci-astronomy/stellarium/files/stellarium-0.21.2-unbundle-qtcompress.patch |
39 |
@@ -0,0 +1,207 @@ |
40 |
+--- a/CMakeLists.txt |
41 |
++++ b/CMakeLists.txt |
42 |
+@@ -594,6 +594,7 @@ ELSE(ENABLE_GPS) |
43 |
+ MESSAGE(STATUS "GPS: disabled.") |
44 |
+ ENDIF(ENABLE_GPS) |
45 |
+ |
46 |
++find_package(Qt5Compress REQUIRED) |
47 |
+ |
48 |
+ IF(USE_QTOPENGL) |
49 |
+ # QtOpenGL module is deprecated. After merging the QOpenGLWidget branch, we don't use this module directly anymore, |
50 |
+--- a/plugins/Satellites/src/CMakeLists.txt |
51 |
++++ b/plugins/Satellites/src/CMakeLists.txt |
52 |
+@@ -55,7 +55,7 @@ IF(ENABLE_TESTING) |
53 |
+ ENDIF(ENABLE_TESTING) |
54 |
+ |
55 |
+ ADD_LIBRARY(Satellites-static STATIC ${Satellites_SRCS} ${Satellites_RES_CXX} ${SatellitesDialog_UIS_H}) |
56 |
+-TARGET_LINK_LIBRARIES(Satellites-static Qt5::Core Qt5::Network Qt5::Widgets) |
57 |
++TARGET_LINK_LIBRARIES(Satellites-static Qt5::Core Qt5::Network Qt5::Widgets Qt5::Compress) |
58 |
+ # The library target "Satellites-static" has a default OUTPUT_NAME of "Satellites-static", so change it. |
59 |
+ SET_TARGET_PROPERTIES(Satellites-static PROPERTIES OUTPUT_NAME "Satellites") |
60 |
+ IF(MSVC) |
61 |
+--- a/plugins/Satellites/src/Satellites.cpp |
62 |
++++ b/plugins/Satellites/src/Satellites.cpp |
63 |
+@@ -43,7 +43,7 @@ |
64 |
+ #include "StelUtils.hpp" |
65 |
+ #include "StelActionMgr.hpp" |
66 |
+ |
67 |
+-#include "external/qtcompress/qzipreader.h" |
68 |
++#include "qzipreader.h" |
69 |
+ |
70 |
+ #include <QNetworkAccessManager> |
71 |
+ #include <QNetworkReply> |
72 |
+@@ -1549,12 +1549,12 @@ void Satellites::saveDownloadedUpdate(QNetworkReply* reply) |
73 |
+ QString archive = zip.fileName(); |
74 |
+ QByteArray data; |
75 |
+ |
76 |
+- Stel::QZipReader reader(archive); |
77 |
+- if (reader.status() != Stel::QZipReader::NoError) |
78 |
++ QZipReader reader(archive); |
79 |
++ if (reader.status() != QZipReader::NoError) |
80 |
+ qWarning() << "[Satellites] Unable to open as a ZIP archive"; |
81 |
+ else |
82 |
+ { |
83 |
+- QList<Stel::QZipReader::FileInfo> infoList = reader.fileInfoList(); |
84 |
++ QList<QZipReader::FileInfo> infoList = reader.fileInfoList(); |
85 |
+ for (const auto& info : qAsConst(infoList)) |
86 |
+ { |
87 |
+ // qWarning() << "[Satellites] Processing:" << info.filePath; |
88 |
+--- a/src/CMakeLists.txt |
89 |
++++ b/src/CMakeLists.txt |
90 |
+@@ -464,7 +464,7 @@ IF(ENABLE_SPOUT AND SPOUT_LIBRARY_DLL) |
91 |
+ CONFIGURE_FILE(${SPOUT_LIBRARY_DLL} ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) |
92 |
+ ENDIF() |
93 |
+ |
94 |
+-SET(STELMAIN_DEPS ${ZLIB_LIBRARIES} qtcompress_stel glues_stel qcustomplot_stel qxlsx_stel ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} ${STELLARIUM_QT_LIBRARIES} ${SPOUT_LIBRARY}) |
95 |
++SET(STELMAIN_DEPS ${ZLIB_LIBRARIES} Qt5::Compress glues_stel qcustomplot_stel qxlsx_stel ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} ${STELLARIUM_QT_LIBRARIES} ${SPOUT_LIBRARY}) |
96 |
+ IF(ENABLE_LIBGPS) |
97 |
+ SET(STELMAIN_DEPS ${STELMAIN_DEPS} ${GPS_LIBRARY}) |
98 |
+ ENDIF() |
99 |
+--- a/src/core/modules/LandscapeMgr.cpp |
100 |
++++ b/src/core/modules/LandscapeMgr.cpp |
101 |
+@@ -1322,8 +1322,8 @@ QString LandscapeMgr::installLandscapeFromArchive(QString sourceFilePath, const |
102 |
+ } |
103 |
+ QDir destinationDir (parentDestinationDir.absoluteFilePath("landscapes")); |
104 |
+ |
105 |
+- Stel::QZipReader reader(sourceFilePath); |
106 |
+- if (reader.status() != Stel::QZipReader::NoError) |
107 |
++ QZipReader reader(sourceFilePath); |
108 |
++ if (reader.status() != QZipReader::NoError) |
109 |
+ { |
110 |
+ qWarning() << "LandscapeMgr: Unable to open as a ZIP archive:" << QDir::toNativeSeparators(sourceFilePath); |
111 |
+ emit errorNotArchive(); |
112 |
+@@ -1332,7 +1332,7 @@ QString LandscapeMgr::installLandscapeFromArchive(QString sourceFilePath, const |
113 |
+ |
114 |
+ //Detect top directory |
115 |
+ QString topDir, iniPath; |
116 |
+- QList<Stel::QZipReader::FileInfo> infoList = reader.fileInfoList(); |
117 |
++ QList<QZipReader::FileInfo> infoList = reader.fileInfoList(); |
118 |
+ for (const auto& info : infoList) |
119 |
+ { |
120 |
+ QFileInfo fileInfo(info.filePath); |
121 |
+--- a/src/external/CMakeLists.txt |
122 |
++++ b/src/external/CMakeLists.txt |
123 |
+@@ -70,6 +70,7 @@ target_include_directories(zlib_stel PUBLIC zlib) |
124 |
+ set_target_properties(zlib_stel PROPERTIES AUTOMOC 0) |
125 |
+ SET_TARGET_PROPERTIES(zlib_stel PROPERTIES FOLDER "src/external") |
126 |
+ |
127 |
++if(0) |
128 |
+ set(qtcompress_SRCS |
129 |
+ qtcompress/qzip.cpp |
130 |
+ qtcompress/qzipreader.h |
131 |
+@@ -82,6 +83,7 @@ target_link_libraries(qtcompress_stel ${ZLIB_LIBRARIES} Qt5::Core) |
132 |
+ #turn off automoc, not needed here |
133 |
+ set_target_properties(qtcompress_stel PROPERTIES AUTOMOC 0) |
134 |
+ SET_TARGET_PROPERTIES(qtcompress_stel PROPERTIES FOLDER "src/external") |
135 |
++endif() |
136 |
+ |
137 |
+ # QCustomPlot should not be unbundled, because upstream uses GPL 3, and |
138 |
+ # Stellarium uses GPL 2. Author of QCustomPlot has agreed for GPL 2+ for this. |
139 |
+@@ -180,7 +182,7 @@ SET(qxlsx_SRCS |
140 |
+ qxlsx/xlsxcelllocation.h |
141 |
+ ) |
142 |
+ add_library(qxlsx_stel STATIC EXCLUDE_FROM_ALL ${qxlsx_SRCS}) |
143 |
+-target_link_libraries(qxlsx_stel Qt5::Core Qt5::Gui qtcompress_stel) |
144 |
++target_link_libraries(qxlsx_stel Qt5::Core Qt5::Gui Qt5::Compress) |
145 |
+ set_target_properties(qxlsx_stel PROPERTIES FOLDER "src/external") |
146 |
+ |
147 |
+ ################################# INDI ################################ |
148 |
+--- a/src/external/qxlsx/xlsxzipreader.cpp |
149 |
++++ b/src/external/qxlsx/xlsxzipreader.cpp |
150 |
+@@ -5,13 +5,13 @@ |
151 |
+ QT_BEGIN_NAMESPACE_XLSX |
152 |
+ |
153 |
+ ZipReader::ZipReader(const QString &filePath) : |
154 |
+- m_reader(new Stel::QZipReader(filePath)) |
155 |
++ m_reader(new QZipReader(filePath)) |
156 |
+ { |
157 |
+ init(); |
158 |
+ } |
159 |
+ |
160 |
+ ZipReader::ZipReader(QIODevice *device) : |
161 |
+- m_reader(new Stel::QZipReader(device)) |
162 |
++ m_reader(new QZipReader(device)) |
163 |
+ { |
164 |
+ init(); |
165 |
+ } |
166 |
+@@ -23,8 +23,8 @@ ZipReader::~ZipReader() |
167 |
+ |
168 |
+ void ZipReader::init() |
169 |
+ { |
170 |
+- QList<Stel::QZipReader::FileInfo> allFiles = m_reader->fileInfoList(); |
171 |
+- for (const Stel::QZipReader::FileInfo &fi : allFiles) { |
172 |
++ QList<QZipReader::FileInfo> allFiles = m_reader->fileInfoList(); |
173 |
++ for (const QZipReader::FileInfo &fi : allFiles) { |
174 |
+ if (fi.isFile || (!fi.isDir && !fi.isFile && !fi.isSymLink)) |
175 |
+ m_filePaths.append(fi.filePath); |
176 |
+ } |
177 |
+--- a/src/external/qxlsx/xlsxzipreader_p.h |
178 |
++++ b/src/external/qxlsx/xlsxzipreader_p.h |
179 |
+@@ -8,7 +8,7 @@ |
180 |
+ #include <QIODevice> |
181 |
+ |
182 |
+ #include "xlsxglobal.h" |
183 |
+-#include "external/qtcompress/qzipreader.h" |
184 |
++#include "qzipreader.h" |
185 |
+ |
186 |
+ #if QT_VERSION >= 0x050600 |
187 |
+ #include <QVector> |
188 |
+@@ -31,7 +31,7 @@ public: |
189 |
+ private: |
190 |
+ Q_DISABLE_COPY(ZipReader) |
191 |
+ void init(); |
192 |
+- QScopedPointer<Stel::QZipReader> m_reader; |
193 |
++ QScopedPointer<QZipReader> m_reader; |
194 |
+ QStringList m_filePaths; |
195 |
+ }; |
196 |
+ |
197 |
+--- a/src/external/qxlsx/xlsxzipwriter.cpp |
198 |
++++ b/src/external/qxlsx/xlsxzipwriter.cpp |
199 |
+@@ -10,14 +10,14 @@ QT_BEGIN_NAMESPACE_XLSX |
200 |
+ |
201 |
+ ZipWriter::ZipWriter(const QString &filePath) |
202 |
+ { |
203 |
+- m_writer = new Stel::QZipWriter(filePath, QIODevice::WriteOnly); |
204 |
+- m_writer->setCompressionPolicy(Stel::QZipWriter::AutoCompress); |
205 |
++ m_writer = new QZipWriter(filePath, QIODevice::WriteOnly); |
206 |
++ m_writer->setCompressionPolicy(QZipWriter::AutoCompress); |
207 |
+ } |
208 |
+ |
209 |
+ ZipWriter::ZipWriter(QIODevice *device) |
210 |
+ { |
211 |
+- m_writer = new Stel::QZipWriter(device); |
212 |
+- m_writer->setCompressionPolicy(Stel::QZipWriter::AutoCompress); |
213 |
++ m_writer = new QZipWriter(device); |
214 |
++ m_writer->setCompressionPolicy(QZipWriter::AutoCompress); |
215 |
+ } |
216 |
+ |
217 |
+ ZipWriter::~ZipWriter() |
218 |
+@@ -27,7 +27,7 @@ ZipWriter::~ZipWriter() |
219 |
+ |
220 |
+ bool ZipWriter::error() const |
221 |
+ { |
222 |
+- return m_writer->status() != Stel::QZipWriter::NoError; |
223 |
++ return m_writer->status() != QZipWriter::NoError; |
224 |
+ } |
225 |
+ |
226 |
+ void ZipWriter::addFile(const QString &filePath, QIODevice *device) |
227 |
+--- a/src/external/qxlsx/xlsxzipwriter_p.h |
228 |
++++ b/src/external/qxlsx/xlsxzipwriter_p.h |
229 |
+@@ -8,7 +8,7 @@ |
230 |
+ #include <QIODevice> |
231 |
+ |
232 |
+ #include "xlsxglobal.h" |
233 |
+-#include "external/qtcompress/qzipwriter.h" |
234 |
++#include "qzipwriter.h" |
235 |
+ |
236 |
+ class QZipWriter; |
237 |
+ |
238 |
+@@ -27,7 +27,7 @@ public: |
239 |
+ void close(); |
240 |
+ |
241 |
+ private: |
242 |
+- Stel::QZipWriter *m_writer; |
243 |
++ QZipWriter *m_writer; |
244 |
+ }; |
245 |
+ |
246 |
+ QT_END_NAMESPACE_XLSX |
247 |
|
248 |
diff --git a/sci-astronomy/stellarium/stellarium-0.21.2.ebuild b/sci-astronomy/stellarium/stellarium-0.21.2.ebuild |
249 |
new file mode 100644 |
250 |
index 00000000000..6a6c1243304 |
251 |
--- /dev/null |
252 |
+++ b/sci-astronomy/stellarium/stellarium-0.21.2.ebuild |
253 |
@@ -0,0 +1,141 @@ |
254 |
+# Copyright 1999-2021 Gentoo Authors |
255 |
+# Distributed under the terms of the GNU General Public License v2 |
256 |
+ |
257 |
+EAPI=8 |
258 |
+ |
259 |
+PYTHON_COMPAT=( python3_{8..10} ) |
260 |
+inherit cmake desktop flag-o-matic python-any-r1 xdg virtualx |
261 |
+ |
262 |
+DESCRIPTION="3D photo-realistic skies in real time" |
263 |
+HOMEPAGE="https://stellarium.org/" |
264 |
+MY_DSO_VERSION="3.13" |
265 |
+SRC_URI=" |
266 |
+ https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.gz |
267 |
+ deep-sky? ( |
268 |
+ https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog-${MY_DSO_VERSION}.dat -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat |
269 |
+ ) |
270 |
+ doc? ( |
271 |
+ https://github.com/Stellarium/stellarium/releases/download/v${PV}/stellarium_user_guide-${PV}-1.pdf |
272 |
+ ) |
273 |
+ stars? ( |
274 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_4_1v0_2.cat |
275 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_5_2v0_1.cat |
276 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_6_2v0_1.cat |
277 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_7_2v0_1.cat |
278 |
+ https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_8_2v0_1.cat |
279 |
+ )" |
280 |
+ |
281 |
+LICENSE="GPL-2+ SGI-B-2.0" |
282 |
+SLOT="0" |
283 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
284 |
+IUSE="debug deep-sky doc gps media nls stars telescope test" |
285 |
+ |
286 |
+# Python interpreter is used while building RemoteControl plugin |
287 |
+BDEPEND=" |
288 |
+ ${PYTHON_DEPS} |
289 |
+ doc? ( app-doc/doxygen[dot] ) |
290 |
+ nls? ( dev-qt/linguist-tools:5 ) |
291 |
+" |
292 |
+RDEPEND=" |
293 |
+ dev-libs/qtcompress:= |
294 |
+ dev-qt/qtcore:5 |
295 |
+ dev-qt/qtgui:5 |
296 |
+ dev-qt/qtnetwork:5 |
297 |
+ dev-qt/qtopengl:5 |
298 |
+ dev-qt/qtprintsupport:5 |
299 |
+ dev-qt/qtscript:5 |
300 |
+ dev-qt/qtwidgets:5 |
301 |
+ media-fonts/dejavu |
302 |
+ sys-libs/zlib |
303 |
+ virtual/opengl |
304 |
+ gps? ( |
305 |
+ dev-qt/qtpositioning:5 |
306 |
+ dev-qt/qtserialport:5 |
307 |
+ sci-geosciences/gpsd:=[cxx] |
308 |
+ ) |
309 |
+ media? ( dev-qt/qtmultimedia:5[widgets] ) |
310 |
+ telescope? ( |
311 |
+ dev-qt/qtserialport:5 |
312 |
+ sci-libs/indilib:= |
313 |
+ ) |
314 |
+" |
315 |
+DEPEND="${RDEPEND} |
316 |
+ dev-qt/qtconcurrent:5 |
317 |
+ test? ( dev-qt/qttest:5 ) |
318 |
+" |
319 |
+ |
320 |
+RESTRICT="!test? ( test )" |
321 |
+ |
322 |
+PATCHES=( |
323 |
+ "${FILESDIR}/stellarium-0.20.3-unbundle-indi.patch" |
324 |
+ "${FILESDIR}/stellarium-0.21.2-unbundle-qtcompress.patch" |
325 |
+ "${FILESDIR}/stellarium-0.20.3-unbundle-zlib.patch" |
326 |
+) |
327 |
+ |
328 |
+src_prepare() { |
329 |
+ cmake_src_prepare |
330 |
+ use debug || append-cppflags -DQT_NO_DEBUG #415769 |
331 |
+ |
332 |
+ # Several libraries are bundled, remove them. |
333 |
+ rm -r src/external/{libindi,qtcompress,zlib}/ || die |
334 |
+ |
335 |
+ # qcustomplot can't be easily unbundled because it uses qcustomplot 1 |
336 |
+ # while we have qcustomplot 2 in tree which changed API a bit |
337 |
+ # Also the license of the external qcustomplot is incompatible with stellarium |
338 |
+ |
339 |
+ # for glues_stel aka libtess I couldn't find an upstream with the same API |
340 |
+ |
341 |
+ # unbundling of qxlsx depends on https://github.com/QtExcel/QXlsx/pull/185 |
342 |
+ |
343 |
+ local remaining="$(cd src/external/ && echo */)" |
344 |
+ if [[ "${remaining}" != "glues_stel/ qcustomplot/ qxlsx/" ]]; then |
345 |
+ eqawarn "Need to unbundle more deps: ${remaining}" |
346 |
+ fi |
347 |
+} |
348 |
+ |
349 |
+src_configure() { |
350 |
+ local mycmakeargs=( |
351 |
+ -DENABLE_GPS="$(usex gps)" |
352 |
+ -DENABLE_MEDIA="$(usex media)" |
353 |
+ -DENABLE_NLS="$(usex nls)" |
354 |
+ -DENABLE_TESTING="$(usex test)" |
355 |
+ -DUSE_PLUGIN_TELESCOPECONTROL="$(usex telescope)" |
356 |
+ ) |
357 |
+ cmake_src_configure |
358 |
+} |
359 |
+ |
360 |
+src_test() { |
361 |
+ virtx cmake_src_test |
362 |
+} |
363 |
+ |
364 |
+src_compile() { |
365 |
+ cmake_src_compile |
366 |
+ |
367 |
+ if use doc ; then |
368 |
+ cmake_build apidoc |
369 |
+ fi |
370 |
+} |
371 |
+ |
372 |
+src_install() { |
373 |
+ if use doc ; then |
374 |
+ local HTML_DOCS=( "${BUILD_DIR}/doc/html/." ) |
375 |
+ dodoc "${DISTDIR}/stellarium_user_guide-${PV}-1.pdf" |
376 |
+ fi |
377 |
+ cmake_src_install |
378 |
+ |
379 |
+ # use the more up-to-date system fonts |
380 |
+ rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die |
381 |
+ dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf |
382 |
+ dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf |
383 |
+ |
384 |
+ if use stars ; then |
385 |
+ insinto /usr/share/${PN}/stars/default |
386 |
+ doins "${DISTDIR}"/stars_4_1v0_2.cat |
387 |
+ doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.cat |
388 |
+ fi |
389 |
+ if use deep-sky ; then |
390 |
+ insinto /usr/share/${PN}/nebulae/default |
391 |
+ newins "${DISTDIR}/${PN}-dso-catalog-${MY_DSO_VERSION}.dat" catalog.dat |
392 |
+ fi |
393 |
+ newicon doc/images/stellarium-logo.png ${PN}.png |
394 |
+} |