1 |
commit: 8f20d34724292c6f0dac17bb4b6fb5cea350f359 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 21:18:01 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 21:18:20 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f20d347 |
7 |
|
8 |
games-action/armagetronad: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
13 |
|
14 |
Package-Manager: portage-2.2.28 |
15 |
|
16 |
.../armagetronad/armagetronad-0.2.8.3.3-r1.ebuild | 70 ++++++++++++++++++++++ |
17 |
1 file changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild b/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..c976a01 |
22 |
--- /dev/null |
23 |
+++ b/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild |
24 |
@@ -0,0 +1,70 @@ |
25 |
+# Copyright 1999-2016 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+# $Id$ |
28 |
+ |
29 |
+EAPI=6 |
30 |
+inherit eutils gnome2-utils |
31 |
+ |
32 |
+DESCRIPTION="Fast-paced 3D lightcycle game based on Tron" |
33 |
+HOMEPAGE="http://armagetronad.org/" |
34 |
+SRC_URI="https://launchpad.net/armagetronad/${PV:0:5}/${PV:0:7}.x/+download/armagetronad-${PV}.src.tar.bz2" |
35 |
+ |
36 |
+LICENSE="GPL-2+" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="dedicated sound" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-libs/libxml2 |
43 |
+ !dedicated? ( |
44 |
+ media-libs/libpng:0 |
45 |
+ media-libs/libsdl[X,opengl,video] |
46 |
+ media-libs/sdl-image[jpeg,png] |
47 |
+ virtual/glu |
48 |
+ virtual/opengl |
49 |
+ sound? ( |
50 |
+ media-libs/libsdl[sound] |
51 |
+ media-libs/sdl-mixer |
52 |
+ ) |
53 |
+ )" |
54 |
+DEPEND=${RDEPEND} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ sed -i -e 's#aa_docdir=.*$#aa_docdir=${docdir}#' configure || die |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ # --enable-games just messes up paths |
63 |
+ econf \ |
64 |
+ --docdir=/usr/share/doc/${PF} \ |
65 |
+ $(use_enable dedicated) \ |
66 |
+ $(use_enable sound music) \ |
67 |
+ --disable-sysinstall \ |
68 |
+ --disable-useradd \ |
69 |
+ --disable-uninstall \ |
70 |
+ --disable-games |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ # FIXME: is the -j1 needed? https://bugs.gentoo.org/588104 |
75 |
+ emake -j1 DESTDIR="${D}" install |
76 |
+ einstalldocs |
77 |
+ |
78 |
+ # misplaced desktop-file/icons |
79 |
+ rm -rf "${ED%/}${GAMES_DATADIR}"/armagetronad/desktop |
80 |
+ doicon -s 48 desktop/icons/large/armagetronad.png |
81 |
+ make_desktop_entry ${PN} |
82 |
+} |
83 |
+ |
84 |
+pkg_preinst() { |
85 |
+ gnome2_icon_savelist |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ gnome2_icon_cache_update |
90 |
+} |
91 |
+ |
92 |
+pkg_postrm() { |
93 |
+ gnome2_icon_cache_update |
94 |
+} |