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