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