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-20070613-r1.ebuild alienarena-20070613.ebuild
Date: Mon, 24 Sep 2007 21:36:12
Message-Id: E1IZvT3-0004vw-0j@stork.gentoo.org
1 nyhm 07/09/24 21:27:49
2
3 Modified: ChangeLog
4 Added: alienarena-20070613-r1.ebuild
5 Removed: alienarena-20070613.ebuild
6 Log:
7 Security fixes from Debian, bug #191484
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.6 games-fps/alienarena/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/ChangeLog?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/ChangeLog?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/ChangeLog?r1=1.5&r2=1.6
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- ChangeLog 28 Jul 2007 09:13:00 -0000 1.5
24 +++ ChangeLog 24 Sep 2007 21:27:48 -0000 1.6
25 @@ -1,6 +1,14 @@
26 # ChangeLog for games-fps/alienarena
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.5 2007/07/28 09:13:00 nyhm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.6 2007/09/24 21:27:48 nyhm Exp $
30 +
31 +*alienarena-20070613-r1 (24 Sep 2007)
32 +
33 + 24 Sep 2007; Tristan Heaven <nyhm@g.o>
34 + +files/alienarena-20070613-dos.patch,
35 + +files/alienarena-20070613-format-strings.patch,
36 + -alienarena-20070613.ebuild, +alienarena-20070613-r1.ebuild:
37 + Security fixes from Debian, bug #191484
38
39 28 Jul 2007; Tristan Heaven <nyhm@g.o> alienarena-20070613.ebuild:
40 Fix dependencies for USE=sdl
41
42
43
44 1.1 games-fps/alienarena/alienarena-20070613-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/alienarena-20070613-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/alienarena/alienarena-20070613-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: alienarena-20070613-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/alienarena-20070613-r1.ebuild,v 1.1 2007/09/24 21:27:48 nyhm Exp $
54
55 inherit eutils flag-o-matic toolchain-funcs games
56
57 MY_PN=${PN}${PV:0:4}
58 DESCRIPTION="Fast paced multiplayer deathmatch game"
59 HOMEPAGE="http://red.planetarena.org/"
60 SRC_URI="http://cor.planetquake.gamespy.com/codered/files/${MY_PN}-${PV}-linux.zip
61 http://icculus.org/${PN}/files/${MY_PN}-${PV}-linux.zip"
62
63 LICENSE="GPL-2 free-noncomm"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="dedicated opengl sdl"
67
68 UIDEPEND="media-libs/jpeg
69 virtual/glu
70 virtual/opengl
71 x11-libs/libXxf86dga
72 x11-libs/libXxf86vm"
73 RDEPEND="!dedicated? ( ${UIDEPEND} )
74 opengl? ( ${UIDEPEND} )
75 sdl? ( ${UIDEPEND} media-libs/libsdl )"
76 DEPEND="${RDEPEND}
77 app-arch/unzip"
78
79 S=${WORKDIR}/${MY_PN}
80
81 src_unpack() {
82 unpack ${A}
83 cd ${MY_PN}
84 rm -f */*.so
85 epatch \
86 "${FILESDIR}"/${P}-paths.patch \
87 "${FILESDIR}"/${P}-format-strings.patch \
88 "${FILESDIR}"/${P}-dos.patch
89 sed -i \
90 -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
91 -e "s:GENTOO_LIBDIR:$(games_get_libdir)/${PN}:" \
92 source/unix/sys_unix.c \
93 || die "sed failed"
94 }
95
96 src_compile() {
97 [[ $(gcc-fullversion) == "4.1.1" ]] && replace-flags -O? -O0
98 emake \
99 CC="$(tc-getCC)" \
100 OPTIMIZED_CFLAGS= \
101 $(use sdl && echo SDLSOUND=1) \
102 $(use opengl && ! use dedicated && echo BUILD=GAME) \
103 $(! use opengl && use dedicated && echo BUILD=DEDICATED) \
104 $(use opengl && use dedicated && echo BUILD=ALL) \
105 $(! use opengl && ! use dedicated && echo BUILD=GAME) \
106 || die "emake failed"
107 }
108
109 src_install() {
110 cd release
111 exeinto "$(games_get_libdir)"/${PN}
112 doexe game.so || die "doexe failed"
113
114 if use opengl || ! use dedicated ; then
115 newgamesbin crx ${PN}-oss || die "newgamesbin crx failed"
116 make_desktop_entry ${PN}-oss "Alien Arena (OSS audio)" ${PN}.xpm
117 use sdl || dosym ${PN}-oss "${GAMES_BINDIR}"/${PN}
118 fi
119
120 if use sdl ; then
121 newgamesbin crx.sdl ${PN}-sdl || die "newgamesbin crx.sdl failed"
122 make_desktop_entry ${PN}-sdl "Alien Arena (SDL audio)" ${PN}.xpm
123 dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
124 fi
125
126 if use dedicated ; then
127 newgamesbin crded ${PN}-ded || die "newgamesbin crded failed"
128 fi
129
130 cd "${WORKDIR}"/${MY_PN}
131 insinto "${GAMES_DATADIR}"/${PN}
132 doins -r arena botinfo data1 || die "doins failed"
133 doicon "${FILESDIR}"/${PN}.xpm
134 dodoc docs/README.txt docs/changelog.txt
135 prepgamesdirs
136 }
137
138
139
140 --
141 gentoo-commits@g.o mailing list