Gentoo Archives: gentoo-commits

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