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: Wed, 01 Jan 2020 10:08:50
Message-Id: 1577873169.c4bd8fef8a9d89de7242121cad6b83735be188bc.asturm@gentoo
1 commit: c4bd8fef8a9d89de7242121cad6b83735be188bc
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Tue Dec 31 08:10:50 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 1 10:06:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4bd8fef
7
8 sci-astronomy/stellarium: version bump - 0.19.3
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Alexey Sokolov <sokolov <AT> google.com>
12 Closes: https://github.com/gentoo/gentoo/pull/14196
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 sci-astronomy/stellarium/Manifest | 1 +
16 sci-astronomy/stellarium/stellarium-0.19.3.ebuild | 83 +++++++++++++++++++++++
17 2 files changed, 84 insertions(+)
18
19 diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest
20 index 335b0fe58cc..4083d884486 100644
21 --- a/sci-astronomy/stellarium/Manifest
22 +++ b/sci-astronomy/stellarium/Manifest
23 @@ -6,3 +6,4 @@ DIST stars_8_2v0_1.cat 559068934 BLAKE2B c040a369cdf6885759998e1315b554d21a5e2b9
24 DIST stellarium-0.19.0.tar.gz 309151408 BLAKE2B d5726762c402cebca47c7cb218a2edc918aceb11e4bf44f0473bf86a8bfc75b908467112e8ce797c90f9c1307884f853a24f919efe11e86ef04c9eb0ff356a3b SHA512 26cb44fe4280275ce64594d01bdded4ddd2cda5d21887b4329de51188cc392e8390036702ee316446dcdb54182dec5d217a387898c4c7aa82ce14742b4d4694f
25 DIST stellarium-0.19.1.tar.gz 314373270 BLAKE2B 23f11005e2862c42abefc37d997c875bbed379e8182dbc533f24f303200791dc4c069adc0e290b2faa630a0fc058b7060bc3715714bae37a89ff5820b86d21ed SHA512 59ab715f7b81e037ed3d23444547dcd00a41b9a1925d58b40a17372e286bbea2c1b762582cd7e1f81d690204840cc23dd9627e2c0bd4abf52367a456849eefe9
26 DIST stellarium-0.19.2.tar.gz 318402838 BLAKE2B cee07bbb2e4a124912dc383e1d43007912498793c3609de05caf3b6673d01ccfcf0b560cb879bf47d6b00c7ce6b10810a17189f38fdac55e02dc496e194269b3 SHA512 a0002dc8a1e43aa264cdf013b57362880d4809207a1f867285d3e1187c4c88c67d166652afe0edeec5a98eff1167e6c3693594d467605ba78ee29d6eb7878d4b
27 +DIST stellarium-0.19.3.tar.gz 326218851 BLAKE2B 286d2559a2152f030640ed88778f57f1213d0d8b9e990d0aa1ad5138396fe9641083ec76554e1296dc79d914955e289d23046af42299df6217bbfbaca76b2f18 SHA512 c2948603a3b84fd2b7002cbd9993a2432ca0908d9236aca03c03ff0cf0706728a407218096e94da2b2a623b5434c109906d94ee5069a2d57a8e35af7c8455ff7
28
29 diff --git a/sci-astronomy/stellarium/stellarium-0.19.3.ebuild b/sci-astronomy/stellarium/stellarium-0.19.3.ebuild
30 new file mode 100644
31 index 00000000000..aeb64700a64
32 --- /dev/null
33 +++ b/sci-astronomy/stellarium/stellarium-0.19.3.ebuild
34 @@ -0,0 +1,83 @@
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 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 +RESTRICT="!test? ( test )"
83 +
84 +src_prepare() {
85 + cmake_src_prepare
86 + use debug || append-cppflags -DQT_NO_DEBUG #415769
87 +}
88 +
89 +src_configure() {
90 + local mycmakeargs=(
91 + -DENABLE_GPS="$(usex gps)"
92 + -DENABLE_MEDIA="$(usex media)"
93 + -DENABLE_NLS="$(usex nls)"
94 + -DENABLE_TESTING="$(usex test)"
95 + )
96 + cmake_src_configure
97 +}
98 +
99 +src_test() {
100 + virtx cmake_src_test
101 +}
102 +
103 +src_install() {
104 + cmake_src_install
105 +
106 + # use the more up-to-date system fonts
107 + rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die
108 + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf
109 + dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf
110 +
111 + if use stars ; then
112 + insinto /usr/share/${PN}/stars/default
113 + doins "${DISTDIR}"/stars_4_1v0_2.cat
114 + doins "${DISTDIR}"/stars_{5,6,7,8}_2v0_1.cat
115 + fi
116 + newicon doc/images/stellarium-logo.png ${PN}.png
117 +}