Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/nexuiz: ChangeLog nexuiz-2.4.ebuild
Date: Mon, 03 Mar 2008 02:15:57
Message-Id: E1JW0DZ-00080R-RW@stork.gentoo.org
1 mr_bones_ 08/03/03 02:15:53
2
3 Modified: ChangeLog
4 Added: nexuiz-2.4.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.25 games-fps/nexuiz/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/ChangeLog?rev=1.25&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/ChangeLog?rev=1.25&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/ChangeLog?r1=1.24&r2=1.25
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v
19 retrieving revision 1.24
20 retrieving revision 1.25
21 diff -u -r1.24 -r1.25
22 --- ChangeLog 14 Oct 2007 14:26:50 -0000 1.24
23 +++ ChangeLog 3 Mar 2008 02:15:53 -0000 1.25
24 @@ -1,6 +1,11 @@
25 # ChangeLog for games-fps/nexuiz
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.24 2007/10/14 14:26:50 corsair Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.25 2008/03/03 02:15:53 mr_bones_ Exp $
30 +
31 +*nexuiz-2.4 (03 Mar 2008)
32 +
33 + 03 Mar 2008; Michael Sterrett <mr_bones_@g.o> +nexuiz-2.4.ebuild:
34 + version bump
35
36 14 Oct 2007; Markus Rothe <corsair@g.o> nexuiz-2.3.ebuild:
37 Stable on amd64; bug #194529
38
39
40
41 1.1 games-fps/nexuiz/nexuiz-2.4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/nexuiz-2.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/nexuiz-2.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nexuiz-2.4.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/nexuiz-2.4.ebuild,v 1.1 2008/03/03 02:15:53 mr_bones_ Exp $
51
52 inherit eutils toolchain-funcs games
53
54 MY_PN=Nexuiz
55 MY_P=${PN}-${PV//./}
56 MAPS=nexmappack_r2
57 DESCRIPTION="Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
58 HOMEPAGE="http://www.nexuiz.com/"
59 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip
60 maps? ( mirror://sourceforge/${PN}/${MAPS}.zip )"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86"
65 IUSE="alsa dedicated maps opengl sdl"
66
67 UIRDEPEND="alsa? ( media-libs/alsa-lib )
68 media-libs/libogg
69 media-libs/libvorbis
70 x11-libs/libX11
71 x11-libs/libXau
72 x11-libs/libXdmcp
73 x11-libs/libXext
74 x11-libs/libXxf86dga
75 x11-libs/libXxf86vm"
76 UIDEPEND="x11-proto/xextproto
77 x11-proto/xf86dgaproto
78 x11-proto/xf86vidmodeproto
79 x11-proto/xproto"
80 RDEPEND="media-libs/jpeg
81 net-misc/curl
82 sdl? ( media-libs/libsdl ${UIRDEPEND} )
83 opengl? ( virtual/opengl ${UIRDEPEND} )
84 !dedicated? ( !sdl? ( !opengl? ( virtual/opengl ${UIRDEPEND} ) ) )"
85 DEPEND="${RDEPEND}
86 app-arch/unzip
87 sdl? ( media-libs/libsdl ${UIDEPEND} )
88 opengl? ( virtual/opengl ${UIDEPEND} )
89 !dedicated? ( !sdl? ( !opengl? ( virtual/opengl ${UIDEPEND} ) ) )"
90
91 S=${WORKDIR}/darkplaces
92
93 src_unpack() {
94 unpack ${MY_P}.zip
95
96 local f
97 for f in "${MY_PN}"/sources/*.zip ; do
98 unpack ./${f}
99 done
100
101 if use maps ; then
102 cd "${WORKDIR}"/${MY_PN}
103 unpack ${MAPS}.zip
104 fi
105
106 cd "${S}"
107 # Make the game automatically look in the correct data directory
108 sed -i "s:gamedirname1:\"${PN}\":" fs.c \
109 || die "sed fs.c failed"
110
111 sed -i \
112 -e "/^CC=/s:gcc:$(tc-getCC):" \
113 -e "s/-O2/${CFLAGS}/" \
114 -e "/-lm/s:$: ${LDFLAGS}:" \
115 -e 's/strip/true/' \
116 makefile.inc \
117 || die "sed makefile.inc failed"
118
119 # This is the right dir, so that e.g. "darkplaces -game nexuiz" will work
120 sed -i "s:ifdef DP_.*:DP_FS_BASEDIR=${GAMES_DATADIR}/quake1\n&:" makefile \
121 || die "sed makefile failed"
122
123 if ! use alsa ; then
124 sed -i "/DEFAULT_SNDAPI/s:ALSA:OSS:" makefile \
125 || die "sed makefile failed"
126 fi
127 }
128
129 src_compile() {
130 if use opengl || (! use dedicated && ! use sdl) ; then
131 emake cl-${PN} || die "emake cl-${PN} failed"
132 fi
133
134 if use sdl ; then
135 emake sdl-${PN} || die "emake sdl-${PN} failed"
136 fi
137
138 if use dedicated ; then
139 emake sv-${PN} || die "emake sv-${PN} failed"
140 fi
141 }
142
143 src_install() {
144 if use opengl || use sdl || ! use dedicated ; then
145 newicon darkplaces72x72.png ${PN}.png
146 fi
147
148 if use opengl || (! use dedicated && ! use sdl) ; then
149 dogamesbin ${PN}-glx || die "dogamesbin glx failed"
150 make_desktop_entry ${PN}-glx "Nexuiz (GLX)"
151 dosym ${PN}-glx "${GAMES_BINDIR}"/${PN}
152 fi
153
154 if use sdl ; then
155 dogamesbin ${PN}-sdl || die "dogamesbin sdl failed"
156 make_desktop_entry ${PN}-sdl "Nexuiz (SDL)"
157 use opengl || dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
158 fi
159
160 if use dedicated ; then
161 dogamesbin ${PN}-dedicated || die "dogamesbin dedicated failed"
162 fi
163
164 cd "${WORKDIR}"/${MY_PN}
165 insinto "${GAMES_DATADIR}"/quake1/${PN}
166 doins -r data/* || die "doins data failed"
167
168 dodoc Docs/*.txt
169 dohtml Docs/*.{htm,html}
170 docinto server
171 dodoc Docs/server/*.{cfg,txt}
172
173 prepgamesdirs
174 }
175
176
177
178 --
179 gentoo-commits@l.g.o mailing list