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-fps/alienarena/, games-fps/alienarena/files/
Date: Sun, 29 Apr 2018 17:13:25
Message-Id: 1525021984.6b8369377971c2503071bc38d68413ae11243b50.pacho@gentoo
1 commit: 6b8369377971c2503071bc38d68413ae11243b50
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 16:37:15 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 17:13:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b836937
7
8 games-fps/alienarena: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-fps/alienarena/alienarena-20130827-r1.ebuild | 73 ++++++++++++++++++++++
13 .../files/alienarena-20130827-format.patch | 4 +-
14 2 files changed, 75 insertions(+), 2 deletions(-)
15
16 diff --git a/games-fps/alienarena/alienarena-20130827-r1.ebuild b/games-fps/alienarena/alienarena-20130827-r1.ebuild
17 new file mode 100644
18 index 00000000000..fabaaecffeb
19 --- /dev/null
20 +++ b/games-fps/alienarena/alienarena-20130827-r1.ebuild
21 @@ -0,0 +1,73 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +inherit desktop gnome2-utils
27 +
28 +MY_PN="alienarena-7.66"
29 +
30 +DESCRIPTION="Fast-paced multiplayer deathmatch game"
31 +HOMEPAGE="http://red.planetarena.org/"
32 +SRC_URI="http://icculus.org/alienarena/Files/${MY_PN}-linux${PV}.tar.gz
33 + http://red.planetarena.org/files/${MY_PN}-linux${PV}.tar.gz"
34 +
35 +LICENSE="GPL-2 free-noncomm"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="dedicated +dga +vidmode +zlib"
39 +
40 +UIRDEPEND="
41 + virtual/jpeg:0
42 + media-libs/openal
43 + media-libs/libvorbis
44 + media-libs/freetype:2
45 + virtual/glu
46 + virtual/opengl
47 + dga? ( x11-libs/libXxf86dga )
48 + vidmode? ( x11-libs/libXxf86vm )
49 + zlib? ( sys-libs/zlib )
50 + net-misc/curl
51 +"
52 +UIDEPEND="
53 + dga? ( x11-proto/xf86dgaproto )
54 + vidmode? ( x11-proto/xf86vidmodeproto )
55 +"
56 +RDEPEND="!dedicated? ( ${UIRDEPEND} )"
57 +DEPEND="${RDEPEND}
58 + !dedicated? ( ${UIDEPEND} )
59 + virtual/pkgconfig
60 +"
61 +
62 +S="${WORKDIR}/${MY_PN/_/.}"
63 +
64 +PATCHES=( "${FILESDIR}"/${P}-format.patch )
65 +
66 +src_configure() {
67 + econf \
68 + --with-icondir=/usr/share/icons/hicolor/48x48/apps/ \
69 + --without-system-libode \
70 + --disable-documents \
71 + $(use_enable !dedicated client) \
72 + $(use_with zlib) \
73 + $(use_with vidmode xf86vm) \
74 + $(use_with dga xf86dga)
75 +}
76 +
77 +src_install() {
78 + DOCS="docs/README.txt README" default
79 + if ! use dedicated ; then
80 + make_desktop_entry ${PN} "Alien Arena"
81 + fi
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 +}
95
96 diff --git a/games-fps/alienarena/files/alienarena-20130827-format.patch b/games-fps/alienarena/files/alienarena-20130827-format.patch
97 index 4a88eab840f..3162a558afa 100644
98 --- a/games-fps/alienarena/files/alienarena-20130827-format.patch
99 +++ b/games-fps/alienarena/files/alienarena-20130827-format.patch
100 @@ -1,5 +1,5 @@
101 ---- source/game/p_client.c.old 2016-01-18 20:13:25.147714704 +0100
102 -+++ source/game/p_client.c 2016-01-18 20:13:38.776476727 +0100
103 +--- a/source/game/p_client.c.old 2016-01-18 20:13:25.147714704 +0100
104 ++++ b/source/game/p_client.c 2016-01-18 20:13:38.776476727 +0100
105 @@ -2123,7 +2123,7 @@
106 #else
107 ent->ctype = 0; //alien is default