Gentoo Archives: gentoo-commits

From: "Tristan Heaven (nyhm)" <nyhm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/alienarena: ChangeLog alienarena-20080227.ebuild
Date: Tue, 25 Mar 2008 18:28:04
Message-Id: E1JeDsP-0004ba-Ey@stork.gentoo.org
1 nyhm 08/03/25 18:28:01
2
3 Modified: ChangeLog
4 Added: alienarena-20080227.ebuild
5 Log:
6 Version bump, thanks to Paul Bredbury and Rémy Dupont, bug #212575
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.9 games-fps/alienarena/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/ChangeLog?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/ChangeLog?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/ChangeLog?r1=1.8&r2=1.9
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- ChangeLog 22 Jan 2008 04:46:06 -0000 1.8
23 +++ ChangeLog 25 Mar 2008 18:28:00 -0000 1.9
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-fps/alienarena
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.8 2008/01/22 04:46:06 nyhm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.9 2008/03/25 18:28:00 nyhm Exp $
29 +
30 +*alienarena-20080227 (25 Mar 2008)
31 +
32 + 25 Mar 2008; Tristan Heaven <nyhm@g.o>
33 + +files/alienarena-20080227-include.patch, +alienarena-20080227.ebuild:
34 + Version bump, thanks to Paul Bredbury and Rémy Dupont, bug #212575
35
36 22 Jan 2008; Tristan Heaven <nyhm@g.o> alienarena-20071011.ebuild:
37 Fix deps again, bug #206378
38 @@ -29,7 +35,7 @@
39 +alienarena-20070613.ebuild:
40 Version bump
41
42 - 07 Mar 2007; Piotr Jaroszyński <peper@g.o>
43 + 07 Mar 2007; Piotr Jaroszyński <peper@g.o>
44 alienarena-20070224-r1.ebuild:
45 Add ~amd64 wrt bug #169049.
46
47
48
49
50 1.1 games-fps/alienarena/alienarena-20080227.ebuild
51
52 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/alienarena-20080227.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/alienarena-20080227.ebuild?rev=1.1&content-type=text/plain
54
55 Index: alienarena-20080227.ebuild
56 ===================================================================
57 # Copyright 1999-2008 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/alienarena-20080227.ebuild,v 1.1 2008/03/25 18:28:00 nyhm Exp $
60
61 inherit eutils flag-o-matic toolchain-funcs games
62
63 MY_PN=${PN}${PV:0:4}
64 DESCRIPTION="Fast-paced multiplayer deathmatch game"
65 HOMEPAGE="http://red.planetarena.org/"
66 SRC_URI="http://icculus.org/${PN}/Files/${MY_PN}-linux${PV}.zip"
67
68 LICENSE="GPL-2 free-noncomm"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="dedicated opengl sdl"
72
73 UIRDEPEND="media-libs/jpeg
74 virtual/glu
75 virtual/opengl
76 x11-libs/libXxf86dga
77 x11-libs/libXxf86vm
78 sdl? ( media-libs/libsdl )"
79 RDEPEND="opengl? ( ${UIRDEPEND} )
80 !opengl? ( !dedicated? ( ${UIRDEPEND} ) )
81 net-misc/curl"
82 UIDEPEND="x11-proto/xf86dgaproto
83 x11-proto/xf86vidmodeproto"
84 DEPEND="${RDEPEND}
85 opengl? ( ${UIDEPEND} )
86 !opengl? ( !dedicated? ( ${UIDEPEND} ) )
87 app-arch/unzip"
88
89 S=${WORKDIR}/${MY_PN}/source
90
91 src_unpack() {
92 unpack ${A}
93 cd ${MY_PN}
94 rm -f */*.so cr*
95 mv data1/scripts/maps/tca-titan2k8{\ ,}.rscript
96 cd "${S}"
97 epatch "${FILESDIR}"/${P}-include.patch
98 }
99
100 src_compile() {
101 # To avoid audio crackling (gcc bug)
102 [[ $(gcc-fullversion) == "4.1.1" ]] && replace-flags -O? -O0
103
104 emake \
105 CC="$(tc-getCC)" \
106 OPTIMIZED_CFLAGS=no \
107 PREFIX= \
108 WITH_DATADIR=yes \
109 WITH_LIBDIR=yes \
110 DATADIR="${GAMES_DATADIR}"/${PN} \
111 LIBDIR="$(games_get_libdir)"/${PN} \
112 $(use opengl && use sdl && echo SDLSOUND=yes || echo SDLSOUND=no) \
113 $(use opengl && ! use dedicated && echo BUILD=CLIENT) \
114 $(! use opengl && use dedicated && echo BUILD=DEDICATED) \
115 $(use opengl && use dedicated && echo BUILD=ALL) \
116 $(use opengl || use dedicated || echo BUILD=CLIENT) \
117 || die "emake failed"
118 }
119
120 src_install() {
121 cd release
122 exeinto "$(games_get_libdir)"/${PN}
123 doexe game.so || die "doexe failed"
124 dosym . "$(games_get_libdir)"/${PN}/arena
125 dosym . "$(games_get_libdir)"/${PN}/data1
126
127 if use opengl || ! use dedicated ; then
128 newgamesbin crx ${PN}-oss || die "newgamesbin crx failed"
129 make_desktop_entry ${PN}-oss "Alien Arena (OSS audio)"
130 use sdl || dosym ${PN}-oss "${GAMES_BINDIR}"/${PN}
131 fi
132
133 if use opengl && use sdl ; then
134 newgamesbin crx.sdl ${PN}-sdl || die "newgamesbin crx.sdl failed"
135 make_desktop_entry ${PN}-sdl "Alien Arena (SDL audio)"
136 dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
137 fi
138
139 if use dedicated ; then
140 newgamesbin crded ${PN}-ded || die "newgamesbin crded failed"
141 fi
142
143 cd "${WORKDIR}/${MY_PN}"
144 insinto "${GAMES_DATADIR}"/${PN}
145 doins -r arena botinfo data1 || die "doins failed"
146 newicon aa.png ${PN}.png || die "newicon failed"
147 dodoc docs/README.txt
148
149 prepgamesdirs
150 }
151
152
153
154 --
155 gentoo-commits@l.g.o mailing list