Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/stellarium/
Date: Sat, 02 Nov 2019 15:23:20
Message-Id: 1572708150.4c1d5f68f7c039fb4cc3b4969016cf9701013404.asturm@gentoo
1 commit: 4c1d5f68f7c039fb4cc3b4969016cf9701013404
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Fri Oct 11 20:59:51 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 2 15:22:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c1d5f68
7
8 sci-astronomy/stellarium: version 0.19.2
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Alexey Sokolov <sokolov <AT> google.com>
12 Closes: https://github.com/gentoo/gentoo/pull/13259
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 sci-astronomy/stellarium/Manifest | 1 +
16 sci-astronomy/stellarium/stellarium-0.19.2.ebuild | 81 +++++++++++++++++++++++
17 2 files changed, 82 insertions(+)
18
19 diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest
20 index 5b4dd900519..335b0fe58cc 100644
21 --- a/sci-astronomy/stellarium/Manifest
22 +++ b/sci-astronomy/stellarium/Manifest
23 @@ -5,3 +5,4 @@ DIST stars_7_2v0_1.cat 305710678 BLAKE2B 1cc9b4a6bc35a9339e495f7e0da4f7e90a0e92b
24 DIST stars_8_2v0_1.cat 559068934 BLAKE2B c040a369cdf6885759998e1315b554d21a5e2b9b149a67967a8af45606aebf57bec407fab5ce1904978af0dc529aa6bddd267331ca45f58617bbf56d5ca99dee SHA512 06d4fa298b9dff8452f550377df99fcaa5e7107cfc7b75c9a4769b3cb6d97a822a54213c706102c1d7ef2dabc16df32a85f46b2f6d6c6f76a4e919353b739de4
25 DIST stellarium-0.19.0.tar.gz 309151408 BLAKE2B d5726762c402cebca47c7cb218a2edc918aceb11e4bf44f0473bf86a8bfc75b908467112e8ce797c90f9c1307884f853a24f919efe11e86ef04c9eb0ff356a3b SHA512 26cb44fe4280275ce64594d01bdded4ddd2cda5d21887b4329de51188cc392e8390036702ee316446dcdb54182dec5d217a387898c4c7aa82ce14742b4d4694f
26 DIST stellarium-0.19.1.tar.gz 314373270 BLAKE2B 23f11005e2862c42abefc37d997c875bbed379e8182dbc533f24f303200791dc4c069adc0e290b2faa630a0fc058b7060bc3715714bae37a89ff5820b86d21ed SHA512 59ab715f7b81e037ed3d23444547dcd00a41b9a1925d58b40a17372e286bbea2c1b762582cd7e1f81d690204840cc23dd9627e2c0bd4abf52367a456849eefe9
27 +DIST stellarium-0.19.2.tar.gz 318402838 BLAKE2B cee07bbb2e4a124912dc383e1d43007912498793c3609de05caf3b6673d01ccfcf0b560cb879bf47d6b00c7ce6b10810a17189f38fdac55e02dc496e194269b3 SHA512 a0002dc8a1e43aa264cdf013b57362880d4809207a1f867285d3e1187c4c88c67d166652afe0edeec5a98eff1167e6c3693594d467605ba78ee29d6eb7878d4b
28
29 diff --git a/sci-astronomy/stellarium/stellarium-0.19.2.ebuild b/sci-astronomy/stellarium/stellarium-0.19.2.ebuild
30 new file mode 100644
31 index 00000000000..b47582c27ba
32 --- /dev/null
33 +++ b/sci-astronomy/stellarium/stellarium-0.19.2.ebuild
34 @@ -0,0 +1,81 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit cmake-utils desktop flag-o-matic xdg virtualx
41 +
42 +DESCRIPTION="3D photo-realistic skies in real time"
43 +HOMEPAGE="https://www.stellarium.org/"
44 +SRC_URI="
45 + https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.gz
46 + stars? (
47 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_4_1v0_2.cat
48 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_5_2v0_1.cat
49 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_6_2v0_1.cat
50 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_7_2v0_1.cat
51 + https://github.com/Stellarium/stellarium-data/releases/download/stars-2.0/stars_8_2v0_1.cat
52 + )"
53 +
54 +LICENSE="GPL-2+"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
57 +IUSE="debug gps media nls stars test"
58 +
59 +BDEPEND="
60 + nls? ( dev-qt/linguist-tools:5 )
61 +"
62 +RDEPEND="
63 + dev-qt/qtcore:5
64 + dev-qt/qtgui:5
65 + dev-qt/qtnetwork:5
66 + dev-qt/qtopengl:5
67 + dev-qt/qtprintsupport:5
68 + dev-qt/qtscript:5
69 + dev-qt/qtserialport:5
70 + dev-qt/qtwidgets:5
71 + media-fonts/dejavu
72 + sys-libs/zlib
73 + virtual/opengl
74 + gps? ( dev-qt/qtpositioning:5 )
75 + media? ( dev-qt/qtmultimedia:5[widgets] )
76 +"
77 +DEPEND="${RDEPEND}
78 + dev-qt/qtconcurrent:5
79 + test? ( dev-qt/qttest:5 )
80 +"
81 +
82 +src_prepare() {
83 + cmake-utils_src_prepare
84 + use debug || append-cppflags -DQT_NO_DEBUG #415769
85 +}
86 +
87 +src_configure() {
88 + local mycmakeargs=(
89 + -DENABLE_GPS="$(usex gps)"
90 + -DENABLE_MEDIA="$(usex media)"
91 + -DENABLE_NLS="$(usex nls)"
92 + -DENABLE_TESTING="$(usex test)"
93 + )
94 + cmake-utils_src_configure
95 +}
96 +
97 +src_test() {
98 + virtx cmake-utils_src_test
99 +}
100 +
101 +src_install() {
102 + cmake-utils_src_install
103 +
104 + # use the more up-to-date system fonts
105 + rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die
106 + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf
107 + dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf
108 +
109 + if use stars ; then
110 + insinto /usr/share/${PN}/stars/default
111 + doins "${DISTDIR}"/stars_4_1v0_2.cat
112 + doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.cat
113 + fi
114 + newicon doc/images/stellarium-logo.png ${PN}.png
115 +}