Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/lightyears/files/, games-strategy/lightyears/
Date: Wed, 02 May 2018 19:28:39
Message-Id: 1525289272.6a75659b72ad7b71fa16e7ee07fa3a5fecd978b5.pacho@gentoo
1 commit: 6a75659b72ad7b71fa16e7ee07fa3a5fecd978b5
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 18:03:10 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:27:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a75659b
7
8 games-strategy/lightyears: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 .../lightyears/files/lightyears-1.4-gentoo.patch | 4 +-
13 games-strategy/lightyears/lightyears-1.4-r2.ebuild | 50 ++++++++++++++++++++++
14 2 files changed, 52 insertions(+), 2 deletions(-)
15
16 diff --git a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
17 index 063dbab3c1e..325c4365ded 100644
18 --- a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
19 +++ b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
20 @@ -1,5 +1,5 @@
21 ---- lightyears
22 -+++ lightyears
23 +--- a/lightyears
24 ++++ b/lightyears
25 @@ -1,7 +1,6 @@
26 #!/usr/bin/python
27
28
29 diff --git a/games-strategy/lightyears/lightyears-1.4-r2.ebuild b/games-strategy/lightyears/lightyears-1.4-r2.ebuild
30 new file mode 100644
31 index 00000000000..7e7344951fc
32 --- /dev/null
33 +++ b/games-strategy/lightyears/lightyears-1.4-r2.ebuild
34 @@ -0,0 +1,50 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +PYTHON_COMPAT=( python2_7 )
40 +
41 +inherit desktop python-single-r1
42 +
43 +DESCRIPTION="A single-player game with a science-fiction theme"
44 +HOMEPAGE="http://www.jwhitham.org/20kly/"
45 +SRC_URI="http://www.jwhitham.org/20kly/${P}.tar.bz2"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +IUSE=""
52 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
53 +
54 +RDEPEND="${PYTHON_DEPS}
55 + dev-python/pygame[${PYTHON_USEDEP}]
56 +"
57 +RDEPEND="${DEPEND}"
58 +
59 +src_prepare() {
60 + default
61 + eapply "${FILESDIR}/${P}"-gentoo.patch
62 + sed -i \
63 + -e "s:@GENTOO_LIBDIR@:/usr/$(get_libdir)/${PN}:" \
64 + -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
65 + ${PN} || die
66 + python_fix_shebang .
67 +}
68 +
69 +src_install() {
70 + dobin ${PN}
71 +
72 + insinto /usr/"$(get_libdir)/${PN}"
73 + doins code/*.py
74 +
75 + einstalldocs
76 +
77 + insinto "/usr/share/${PN}"
78 + doins -r audio data manual
79 +
80 + python_optimize "${ED}/usr/$(get_libdir)/${PN}"
81 +
82 + newicon data/32.png ${PN}.png
83 + make_desktop_entry ${PN} "Light Years Into Space"
84 +}