1 |
hasufell 12/07/29 20:46:08 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: warsow-1.0.ebuild |
5 |
Log: |
6 |
version bump wrt #428458 |
7 |
|
8 |
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 games-fps/warsow/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/metadata.xml?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/metadata.xml?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/metadata.xml?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-fps/warsow/metadata.xml,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- metadata.xml 2 Sep 2009 19:29:22 -0000 1.3 |
24 |
+++ metadata.xml 29 Jul 2012 20:46:08 -0000 1.4 |
25 |
@@ -4,6 +4,7 @@ |
26 |
<herd>games</herd> |
27 |
<use> |
28 |
<flag name="angelscript">Enable AngelScript support</flag> |
29 |
- <flag name="irc">Enable IRC support</flag> |
30 |
+ <flag name="irc">Enable IRC support</flag> |
31 |
+ <flag name="server">Build server binaries additionally</flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
1.35 games-fps/warsow/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.35&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.35&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/ChangeLog?r1=1.34&r2=1.35 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v |
46 |
retrieving revision 1.34 |
47 |
retrieving revision 1.35 |
48 |
diff -u -r1.34 -r1.35 |
49 |
--- ChangeLog 29 Jul 2012 12:12:16 -0000 1.34 |
50 |
+++ ChangeLog 29 Jul 2012 20:46:08 -0000 1.35 |
51 |
@@ -1,6 +1,12 @@ |
52 |
# ChangeLog for games-fps/warsow |
53 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.34 2012/07/29 12:12:16 hasufell Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.35 2012/07/29 20:46:08 hasufell Exp $ |
56 |
+ |
57 |
+*warsow-1.0 (29 Jul 2012) |
58 |
+ |
59 |
+ 29 Jul 2012; Julian Ospald <hasufell@g.o> +warsow-1.0.ebuild, |
60 |
+ +files/warsow-1.0-build.patch: |
61 |
+ version bump wrt #428458 |
62 |
|
63 |
29 Jul 2012; Julian Ospald <hasufell@g.o> |
64 |
files/warsow-0.62-build.patch: |
65 |
|
66 |
|
67 |
|
68 |
1.1 games-fps/warsow/warsow-1.0.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/warsow-1.0.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/warsow-1.0.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: warsow-1.0.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2012 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-1.0.ebuild,v 1.1 2012/07/29 20:46:08 hasufell Exp $ |
78 |
|
79 |
EAPI=4 |
80 |
inherit eutils check-reqs toolchain-funcs gnome2-utils games |
81 |
|
82 |
MY_P=${PN}_${PV} |
83 |
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)" |
84 |
HOMEPAGE="http://www.warsow.net/" |
85 |
SRC_URI="http://funpark.warsow-esport.net/~${PN}/${PV}/${MY_P}_unified.tar.gz |
86 |
http://funpark.warsow-esport.net/~${PN}/${PV}/${MY_P}_sdk.tar.gz |
87 |
mirror://gentoo/${PN}.png" |
88 |
|
89 |
LICENSE="GPL-2 warsow" |
90 |
SLOT="0" |
91 |
KEYWORDS="~amd64 ~x86" |
92 |
IUSE="+angelscript debug dedicated irc openal server" |
93 |
|
94 |
RDEPEND="media-libs/freetype |
95 |
net-misc/curl |
96 |
sys-libs/zlib |
97 |
!dedicated? ( |
98 |
media-libs/libpng:0 |
99 |
media-libs/libsdl |
100 |
media-libs/libtheora |
101 |
media-libs/libvorbis |
102 |
x11-libs/libX11 |
103 |
x11-libs/libXinerama |
104 |
x11-libs/libXrandr |
105 |
x11-libs/libXxf86dga |
106 |
x11-libs/libXxf86vm |
107 |
virtual/jpeg |
108 |
virtual/opengl |
109 |
openal? ( media-libs/openal ) |
110 |
)" |
111 |
DEPEND="${RDEPEND} |
112 |
x11-misc/makedepend |
113 |
!dedicated? ( |
114 |
x11-proto/xineramaproto |
115 |
x11-proto/xf86dgaproto |
116 |
x11-proto/xf86vidmodeproto |
117 |
) |
118 |
openal? ( virtual/pkgconfig )" |
119 |
|
120 |
S=${WORKDIR}/${MY_P}_sdk/source |
121 |
S_U=${WORKDIR}/${MY_P} |
122 |
|
123 |
CHECKREQS_DISK_BUILD="1G" |
124 |
CHECKREQS_DISK_USR="500M" |
125 |
|
126 |
src_prepare() { |
127 |
sed -i \ |
128 |
-e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \ |
129 |
qcommon/files.c \ |
130 |
|| die "sed files.c failed" |
131 |
|
132 |
sed -i \ |
133 |
-e "s:q_jpeg_mem_src:_&:" \ |
134 |
ref_gl/r_image.c || die "sed r_image.c failed" |
135 |
|
136 |
rm -r "${S_U}"/docs/old* || die |
137 |
|
138 |
cd "${WORKDIR}"/${MY_P}_sdk || die |
139 |
epatch "${FILESDIR}"/${P}-build.patch \ |
140 |
"${FILESDIR}"/${PN}-0.5-pic.patch |
141 |
} |
142 |
|
143 |
src_compile() { |
144 |
yesno() { use ${1} && echo YES || echo NO ; } |
145 |
|
146 |
use angelscript && |
147 |
emake -C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc |
148 |
|
149 |
local arch |
150 |
if use amd64 ; then |
151 |
arch=x86_64 |
152 |
elif use x86 ; then |
153 |
arch=i386 |
154 |
fi |
155 |
|
156 |
local myconf |
157 |
if use dedicated ; then |
158 |
myconf=( |
159 |
BUILD_CLIENT=NO |
160 |
BUILD_IRC=NO |
161 |
BUILD_SND_OPENAL=NO |
162 |
BUILD_SND_QF=NO |
163 |
BUILD_CIN=NO |
164 |
BUILD_SERVER=YES |
165 |
BUILD_TV_SERVER=YES |
166 |
) |
167 |
else |
168 |
myconf=( |
169 |
BUILD_CLIENT=YES |
170 |
BUILD_IRC=$(yesno irc) |
171 |
BUILD_SND_OPENAL=$(yesno openal) |
172 |
BUILD_SND_QF=YES |
173 |
BUILD_CIN=YES |
174 |
BUILD_SERVER=$(yesno server) |
175 |
BUILD_TV_SERVER=$(yesno server) |
176 |
) |
177 |
fi |
178 |
|
179 |
emake \ |
180 |
BASE_ARCH=${arch} \ |
181 |
BINDIR=bin \ |
182 |
BUILD_ANGELWRAP=$(yesno angelscript) \ |
183 |
DEBUG_BUILD=$(yesno debug) \ |
184 |
${myconf[@]} |
185 |
} |
186 |
|
187 |
src_install() { |
188 |
cd bin |
189 |
|
190 |
if ! use dedicated ; then |
191 |
newgamesbin ${PN}.* ${PN} |
192 |
doicon -s 48 "${DISTDIR}"/${PN}.png |
193 |
make_desktop_entry ${PN} Warsow |
194 |
fi |
195 |
|
196 |
if use dedicated || use server ; then |
197 |
newgamesbin wsw_server.* ${PN}-ded |
198 |
newgamesbin wswtv_server.* ${PN}-tv |
199 |
fi |
200 |
|
201 |
exeinto "$(games_get_libdir)"/${PN} |
202 |
doexe */*.so |
203 |
|
204 |
insinto "${GAMES_DATADIR}"/${PN} |
205 |
doins -r "${S_U}"/basewsw |
206 |
|
207 |
local so |
208 |
for so in basewsw/*.so ; do |
209 |
dosym "$(games_get_libdir)"/${PN}/${so##*/} \ |
210 |
"${GAMES_DATADIR}"/${PN}/${so} |
211 |
done |
212 |
|
213 |
if [[ -e libs ]] ; then |
214 |
dodir "${GAMES_DATADIR}"/${PN}/libs |
215 |
for so in libs/*.so ; do |
216 |
dosym "$(games_get_libdir)"/${PN}/${so##*/} \ |
217 |
"${GAMES_DATADIR}"/${PN}/${so} |
218 |
done |
219 |
fi |
220 |
|
221 |
dodoc "${S_U}"/docs/* |
222 |
prepgamesdirs |
223 |
} |
224 |
|
225 |
pkg_preinst() { |
226 |
games_pkg_preinst |
227 |
gnome2_icon_savelist |
228 |
} |
229 |
|
230 |
pkg_postinst() { |
231 |
games_pkg_postinst |
232 |
gnome2_icon_cache_update |
233 |
} |
234 |
|
235 |
pkg_postrm() { |
236 |
gnome2_icon_cache_update |
237 |
} |