Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/celestia/
Date: Thu, 14 Jan 2021 01:16:12
Message-Id: 1610586965.f4c9b76959cdfe54cc1c33236c06b86e21d37b4a.polynomial-c@gentoo
1 commit: f4c9b76959cdfe54cc1c33236c06b86e21d37b4a
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 14 01:16:00 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 14 01:16:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4c9b769
7
8 sci-astronomy/celestia: Adjust live ebuild to upstream changes
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sci-astronomy/celestia/celestia-9999.ebuild | 23 +++++++----------------
14 1 file changed, 7 insertions(+), 16 deletions(-)
15
16 diff --git a/sci-astronomy/celestia/celestia-9999.ebuild b/sci-astronomy/celestia/celestia-9999.ebuild
17 index dd539877e82..44ee4d4b3d1 100644
18 --- a/sci-astronomy/celestia/celestia-9999.ebuild
19 +++ b/sci-astronomy/celestia/celestia-9999.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 @@ -59,8 +59,6 @@ DEPEND="
27 RDEPEND="${DEPEND}"
28
29 PATCHES=(
30 - # make better desktop files
31 - "${FILESDIR}"/${PN}-1.5.0-desktop.patch
32 # add a ~/.celestia for extra directories
33 "${FILESDIR}"/${PN}-1.6.99-cfg.patch
34 # allow forcing CMake to look for a specific Lua version instead of the newest branch installed
35 @@ -88,7 +86,7 @@ src_configure() {
36 )
37 # Upstream always looks for LuaJIT first unless stopped, and we only need
38 # the version specification when linking against PUC Lua
39 - if use lua && ! use lua_single_target_luajit; then
40 + if use lua && ! use lua_single_target_luajit ; then
41 mycmakeargs+=(
42 -DCMAKE_DISABLE_FIND_PACKAGE_LuaJIT=ON
43 -DLUA_VERSION=$(lua_get_version)
44 @@ -100,20 +98,13 @@ src_configure() {
45 src_install() {
46 cmake_src_install
47
48 - local size
49 - for size in 16 22 32 48 ; do
50 - newicon -s ${size} "${S}"/src/celestia/kde/data/hi${size}-app-${PN}.png ${PN}.png
51 - done
52 newicon -s 128 "${S}"/src/celestia/gtk/data/${PN}-logo.png ${PN}.png
53 doicon -s scalable "${S}"/src/celestia/gtk/data/${PN}.svg
54
55 - use glut && domenu ${PN}.desktop
56 - if use qt5 ; then
57 - sed \
58 - -e "/^Name/s@\$@ (qt5 interface)@" \
59 - -e "/^Exec/s@${PN}@${PN}-qt@" \
60 - ${PN}.desktop > "${T}"/${PN}-qt5.desktop || die
61 - domenu "${T}"/${PN}-qt5.desktop
62 - fi
63 + local backend
64 + for backend in glut qt5 ; do
65 + use ${backend} && domenu debian/celestia-${backend/qt5/qt}.desktop
66 + done
67 +
68 dodoc AUTHORS README TRANSLATORS *.txt
69 }