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.1.ebuild
Date: Sat, 02 May 2009 08:52:21
Message-Id: E1M0AxH-0002of-2R@stork.gentoo.org
1 mr_bones_ 09/05/02 08:52:19
2
3 Modified: ChangeLog
4 Added: nexuiz-2.5.1.ebuild
5 Log:
6 version bump (bug #268240)
7 (Portage version: 2.1.6.11/cvs/Linux i686)
8
9 Revision Changes Path
10 1.31 games-fps/nexuiz/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/ChangeLog?rev=1.31&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/ChangeLog?rev=1.31&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/ChangeLog?r1=1.30&r2=1.31
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v
19 retrieving revision 1.30
20 retrieving revision 1.31
21 diff -u -r1.30 -r1.31
22 --- ChangeLog 9 Apr 2009 04:52:54 -0000 1.30
23 +++ ChangeLog 2 May 2009 08:52:19 -0000 1.31
24 @@ -1,6 +1,11 @@
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.30 2009/04/09 04:52:54 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.31 2009/05/02 08:52:19 mr_bones_ Exp $
29 +
30 +*nexuiz-2.5.1 (02 May 2009)
31 +
32 + 02 May 2009; Michael Sterrett <mr_bones_@g.o> +nexuiz-2.5.1.ebuild:
33 + version bump (bug #268240)
34
35 *nexuiz-2.5 (09 Apr 2009)
36
37
38
39
40 1.1 games-fps/nexuiz/nexuiz-2.5.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/nexuiz-2.5.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/nexuiz/nexuiz-2.5.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nexuiz-2.5.1.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/nexuiz-2.5.1.ebuild,v 1.1 2009/05/02 08:52:19 mr_bones_ Exp $
50
51 EAPI=2
52 inherit eutils 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="media-libs/libogg
68 media-libs/libvorbis
69 x11-libs/libX11
70 x11-libs/libXau
71 x11-libs/libXdmcp
72 x11-libs/libXext
73 x11-libs/libXxf86dga
74 x11-libs/libXxf86vm
75 virtual/opengl
76 alsa? ( media-libs/alsa-lib )
77 sdl? ( media-libs/libsdl )"
78 UIDEPEND="x11-proto/xextproto
79 x11-proto/xf86dgaproto
80 x11-proto/xf86vidmodeproto
81 x11-proto/xproto"
82 RDEPEND="media-libs/jpeg
83 net-misc/curl
84 opengl? ( ${UIRDEPEND} )
85 !dedicated? ( !opengl? ( ${UIRDEPEND} ) )"
86 DEPEND="${RDEPEND}
87 app-arch/unzip
88 opengl? ( ${UIDEPEND} )
89 !dedicated? ( !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
107 src_prepare() {
108 # Make the game automatically look in the correct data directory
109 sed -i \
110 -e "/^CC=/d" \
111 -e "s:-O2:${CFLAGS}:" \
112 -e "/-lm/s:$: ${LDFLAGS}:" \
113 -e '/^STRIP/s/strip/true/' \
114 makefile.inc \
115 || die "sed failed"
116
117 sed -i \
118 -e "s:ifdef DP_.*:DP_FS_BASEDIR=${GAMES_DATADIR}/nexuiz\n&:" \
119 makefile \
120 || die "sed failed"
121
122 if ! use alsa ; then
123 sed -i \
124 -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
125 makefile \
126 || die "sed failed"
127 fi
128 }
129
130 src_compile() {
131 if use opengl || ! use dedicated ; then
132 emake cl-${PN} || die "emake cl-${PN} failed"
133 if use sdl ; then
134 emake sdl-${PN} || die "emake sdl-${PN} failed"
135 fi
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 dedicated ; then
145 dogamesbin ${PN}-glx || die "dogamesbin glx failed"
146 newicon darkplaces72x72.png ${PN}.png
147 make_desktop_entry ${PN}-glx "Nexuiz (GLX)"
148 if use sdl ; then
149 dogamesbin ${PN}-sdl || die "dogamesbin sdl failed"
150 make_desktop_entry ${PN}-sdl "Nexuiz (SDL)"
151 dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
152 else
153 dosym ${PN}-glx "${GAMES_BINDIR}"/${PN}
154 fi
155 fi
156
157 if use dedicated ; then
158 dogamesbin ${PN}-dedicated || die "dogamesbin dedicated failed"
159 fi
160
161 cd "${WORKDIR}"/${MY_PN}
162
163 dodoc Docs/*.txt
164 dohtml Docs/*.{htm,html}
165
166 insinto "${GAMES_DATADIR}"/${PN}
167
168 if use dedicated ; then
169 doins -r server || die "doins server failed"
170 fi
171
172 doins -r data || die "doins data failed"
173 doins -r havoc || die "doins havoc failed"
174
175 prepgamesdirs
176 }