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