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