1 |
nyhm 09/09/02 19:29:22 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: warsow-0.5.ebuild |
5 |
Log: |
6 |
Version bump, bug #283168 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 games-fps/warsow/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/metadata.xml?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/metadata.xml?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/metadata.xml?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-fps/warsow/metadata.xml,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- metadata.xml 26 Jul 2008 03:57:13 -0000 1.2 |
23 |
+++ metadata.xml 2 Sep 2009 19:29:22 -0000 1.3 |
24 |
@@ -3,6 +3,7 @@ |
25 |
<pkgmetadata> |
26 |
<herd>games</herd> |
27 |
<use> |
28 |
+ <flag name="angelscript">Enable AngelScript support</flag> |
29 |
<flag name="irc">Enable IRC support</flag> |
30 |
</use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.23 games-fps/warsow/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.23&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.23&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/ChangeLog?r1=1.22&r2=1.23 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v |
44 |
retrieving revision 1.22 |
45 |
retrieving revision 1.23 |
46 |
diff -u -r1.22 -r1.23 |
47 |
--- ChangeLog 26 May 2009 07:16:00 -0000 1.22 |
48 |
+++ ChangeLog 2 Sep 2009 19:29:22 -0000 1.23 |
49 |
@@ -1,6 +1,12 @@ |
50 |
# ChangeLog for games-fps/warsow |
51 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.22 2009/05/26 07:16:00 mr_bones_ Exp $ |
53 |
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.23 2009/09/02 19:29:22 nyhm Exp $ |
54 |
+ |
55 |
+*warsow-0.5 (02 Sep 2009) |
56 |
+ |
57 |
+ 02 Sep 2009; Tristan Heaven <nyhm@g.o> +warsow-0.5.ebuild, |
58 |
+ +files/warsow-0.5-build.patch, +files/warsow-0.5-openal.patch: |
59 |
+ Version bump, bug #283168 |
60 |
|
61 |
26 May 2009; Michael Sterrett <mr_bones_@g.o> warsow-0.4.2.ebuild: |
62 |
curl is also needed for USE=dedicated (bug #270048) |
63 |
|
64 |
|
65 |
|
66 |
1.1 games-fps/warsow/warsow-0.5.ebuild |
67 |
|
68 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/warsow-0.5.ebuild?rev=1.1&view=markup |
69 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/warsow-0.5.ebuild?rev=1.1&content-type=text/plain |
70 |
|
71 |
Index: warsow-0.5.ebuild |
72 |
=================================================================== |
73 |
# Copyright 1999-2009 Gentoo Foundation |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.5.ebuild,v 1.1 2009/09/02 19:29:22 nyhm Exp $ |
76 |
|
77 |
EAPI=2 |
78 |
inherit eutils toolchain-funcs versionator games |
79 |
|
80 |
MY_P=${PN}_${PV} |
81 |
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)" |
82 |
HOMEPAGE="http://www.warsow.net/" |
83 |
SRC_URI="http://static.warsow.net/release/${MY_P}_unified.zip |
84 |
http://static.warsow.net/release/${MY_P}_sdk.zip |
85 |
mirror://gentoo/${PN}.png" |
86 |
|
87 |
LICENSE="GPL-2 warsow" |
88 |
SLOT="0" |
89 |
KEYWORDS="~amd64 ~x86" |
90 |
IUSE="+angelscript debug dedicated irc openal opengl" |
91 |
|
92 |
UIRDEPEND="media-libs/jpeg |
93 |
media-libs/libvorbis |
94 |
media-libs/libsdl |
95 |
virtual/opengl |
96 |
x11-libs/libXinerama |
97 |
x11-libs/libXxf86dga |
98 |
x11-libs/libXxf86vm |
99 |
openal? ( media-libs/openal )" |
100 |
RDEPEND="net-misc/curl |
101 |
opengl? ( ${UIRDEPEND} ) |
102 |
!opengl? ( !dedicated? ( ${UIRDEPEND} ) )" |
103 |
UIDEPEND="x11-proto/xineramaproto |
104 |
x11-proto/xf86dgaproto |
105 |
x11-proto/xf86vidmodeproto |
106 |
openal? ( dev-util/pkgconfig )" |
107 |
DEPEND="${RDEPEND} |
108 |
app-arch/unzip |
109 |
x11-misc/makedepend |
110 |
opengl? ( ${UIDEPEND} ) |
111 |
!opengl? ( !dedicated? ( ${UIDEPEND} ) )" |
112 |
|
113 |
S=${WORKDIR}/source |
114 |
|
115 |
src_prepare() { |
116 |
sed -i \ |
117 |
-e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \ |
118 |
qcommon/files.c \ |
119 |
|| die "sed files.c failed" |
120 |
|
121 |
cd "${WORKDIR}" |
122 |
epatch \ |
123 |
"${FILESDIR}"/${P}-build.patch \ |
124 |
"${FILESDIR}"/${P}-openal.patch |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
yesno() { use ${1} && echo YES || echo NO ; } |
129 |
|
130 |
local client="NO" irc="NO" openal="NO" |
131 |
if use opengl || ! use dedicated ; then |
132 |
client="YES" |
133 |
use irc && irc="YES" |
134 |
use openal && openal="YES" |
135 |
fi |
136 |
|
137 |
tc-export CC AR RANLIB |
138 |
|
139 |
if use angelscript ; then |
140 |
emake \ |
141 |
-C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc \ |
142 |
|| die "emake angelscript failed" |
143 |
fi |
144 |
|
145 |
emake \ |
146 |
BINDIR=bin \ |
147 |
BUILD_CLIENT=${client} \ |
148 |
BUILD_SERVER=$(yesno dedicated) \ |
149 |
BUILD_TV_SERVER=$(yesno dedicated) \ |
150 |
BUILD_ANGELWRAP=$(yesno angelscript) \ |
151 |
BUILD_IRC=${irc} \ |
152 |
BUILD_SND_OPENAL=${openal} \ |
153 |
BUILD_SND_QF=${client} \ |
154 |
DEBUG_BUILD=$(yesno debug) \ |
155 |
|| die "emake failed" |
156 |
} |
157 |
|
158 |
src_install() { |
159 |
cd bin |
160 |
|
161 |
if use opengl || ! use dedicated ; then |
162 |
newgamesbin ${PN}.* ${PN} || die "newgamesbin ${PN} failed" |
163 |
doicon "${DISTDIR}"/${PN}.png |
164 |
make_desktop_entry ${PN} Warsow |
165 |
fi |
166 |
|
167 |
if use dedicated ; then |
168 |
newgamesbin wsw_server.* ${PN}-ded || die "newgamesbin ${PN}-ded failed" |
169 |
newgamesbin wswtv_server.* ${PN}-tv || die "newgamesbin ${PN}-tv failed" |
170 |
fi |
171 |
|
172 |
exeinto "$(games_get_libdir)"/${PN} |
173 |
doexe */*.so || die "doexe failed" |
174 |
|
175 |
insinto "${GAMES_DATADIR}"/${PN} |
176 |
doins -r "${WORKDIR}"/basewsw || die "doins failed" |
177 |
|
178 |
local so |
179 |
for so in basewsw/*.so ; do |
180 |
dosym "$(games_get_libdir)"/${PN}/${so##*/} \ |
181 |
"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed" |
182 |
done |
183 |
|
184 |
if [[ -e libs ]] ; then |
185 |
dodir "${GAMES_DATADIR}"/${PN}/libs |
186 |
for so in libs/*.so ; do |
187 |
dosym "$(games_get_libdir)"/${PN}/${so##*/} \ |
188 |
"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed" |
189 |
done |
190 |
fi |
191 |
|
192 |
dodoc "${WORKDIR}"/docs/* |
193 |
prepgamesdirs |
194 |
} |