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