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