1 |
hasufell 14/01/27 00:00:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: urbanterror-4.2.018.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.41 games-fps/urbanterror/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/urbanterror/ChangeLog?rev=1.41&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/urbanterror/ChangeLog?rev=1.41&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/urbanterror/ChangeLog?r1=1.40&r2=1.41 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-fps/urbanterror/ChangeLog,v |
20 |
retrieving revision 1.40 |
21 |
retrieving revision 1.41 |
22 |
diff -u -r1.40 -r1.41 |
23 |
--- ChangeLog 24 Dec 2013 12:44:10 -0000 1.40 |
24 |
+++ ChangeLog 27 Jan 2014 00:00:21 -0000 1.41 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for games-fps/urbanterror |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-fps/urbanterror/ChangeLog,v 1.40 2013/12/24 12:44:10 ago Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/games-fps/urbanterror/ChangeLog,v 1.41 2014/01/27 00:00:21 hasufell Exp $ |
31 |
+ |
32 |
+*urbanterror-4.2.018 (26 Jan 2014) |
33 |
+ |
34 |
+ 26 Jan 2014; Julian Ospald <hasufell@g.o> |
35 |
+ +files/urbanterror-4.2.017-build.patch, +urbanterror-4.2.018.ebuild: |
36 |
+ version bump |
37 |
|
38 |
24 Dec 2013; Agostino Sarubbo <ago@g.o> urbanterror-4.2.015.ebuild: |
39 |
Stable for x86, wrt bug #491532 |
40 |
|
41 |
|
42 |
|
43 |
1.1 games-fps/urbanterror/urbanterror-4.2.018.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/urbanterror/urbanterror-4.2.018.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/urbanterror/urbanterror-4.2.018.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: urbanterror-4.2.018.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/games-fps/urbanterror/urbanterror-4.2.018.ebuild,v 1.1 2014/01/27 00:00:21 hasufell Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit check-reqs eutils gnome2-utils games |
57 |
|
58 |
ENGINE_PV=4.2.017 |
59 |
FULL_P=UrbanTerror42_full017 |
60 |
DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" |
61 |
HOMEPAGE="http://www.urbanterror.info/home/" |
62 |
SRC_URI="http://cdn.urbanterror.info/urt/42/zips/${FULL_P}.zip |
63 |
https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${ENGINE_PV}.tar.gz -> ${PN}-${ENGINE_PV}.tar.gz |
64 |
http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg" |
65 |
|
66 |
# fetch updates |
67 |
if [[ ${FULL_P#*full} != ${PV##*.} ]] ; then |
68 |
UPDATE_I=${ENGINE_PV:6:1} |
69 |
while [[ ${UPDATE_I} -lt ${PV:6:1} ]] ; do |
70 |
SRC_URI="${SRC_URI} http://cdn.urbanterror.info/urt/42/zips/UrbanTerror-${PV:0:6}${UPDATE_I}-to-${PV:0:6}$(( ${UPDATE_I} + 1)).zip" |
71 |
UPDATE_I=$(( ${UPDATE_I} + 1)) |
72 |
done |
73 |
fi |
74 |
unset UPDATE_I |
75 |
|
76 |
LICENSE="GPL-2 Q3AEULA-20000111 urbanterror-4.2-maps" |
77 |
SLOT="0" |
78 |
KEYWORDS="~amd64 ~x86" |
79 |
IUSE="+curl debug dedicated openal +sdl server smp vorbis" |
80 |
RESTRICT="mirror" |
81 |
|
82 |
RDEPEND=" |
83 |
!dedicated? ( |
84 |
virtual/opengl |
85 |
curl? ( net-misc/curl ) |
86 |
openal? ( media-libs/openal ) |
87 |
sdl? ( media-libs/libsdl[X,audio,joystick,opengl,video] ) |
88 |
!sdl? ( x11-libs/libX11 |
89 |
x11-libs/libXext |
90 |
x11-libs/libXxf86dga |
91 |
x11-libs/libXxf86vm ) |
92 |
vorbis? ( media-libs/libogg |
93 |
media-libs/libvorbis ) |
94 |
)" |
95 |
DEPEND="${RDEPEND} |
96 |
app-arch/unzip |
97 |
dedicated? ( curl? ( net-misc/curl ) )" |
98 |
|
99 |
S=${WORKDIR}/ioq3-for-UrbanTerror-4-release-${ENGINE_PV} |
100 |
S_DATA=${WORKDIR}/UrbanTerror42 |
101 |
|
102 |
CHECKREQS_DISK_BUILD="3300M" |
103 |
CHECKREQS_DISK_USR="1550M" |
104 |
|
105 |
pkg_pretend() { |
106 |
check-reqs_pkg_pretend |
107 |
|
108 |
if ! use dedicated ; then |
109 |
if ! use sdl && ! use openal ; then |
110 |
ewarn |
111 |
ewarn "Sound support disabled. Enable 'sdl' or 'openal' useflag." |
112 |
ewarn |
113 |
fi |
114 |
fi |
115 |
} |
116 |
|
117 |
src_unpack() { |
118 |
local UPDATE_I |
119 |
default |
120 |
# apply updates |
121 |
if [[ ${FULL_P#*full} != ${PV##*.} ]] ; then |
122 |
UPDATE_I=${ENGINE_PV:6:1} |
123 |
while [[ ${UPDATE_I} -lt ${PV:6:1} ]] ; do |
124 |
cp -dRpf \ |
125 |
"${WORKDIR}"/UrbanTerror-${PV:0:6}${UPDATE_I}-to-${PV:0:6}$((${UPDATE_I} + 1))/* \ |
126 |
"${S_DATA}"/ || die |
127 |
UPDATE_I=$(( ${UPDATE_I} + 1)) |
128 |
done |
129 |
fi |
130 |
} |
131 |
|
132 |
src_prepare() { |
133 |
epatch "${FILESDIR}"/${PN}-${ENGINE_PV}-build.patch |
134 |
} |
135 |
|
136 |
src_compile() { |
137 |
buildit() { use $1 && echo 1 || echo 0 ; } |
138 |
nobuildit() { use $1 && echo 0 || echo 1 ; } |
139 |
|
140 |
emake \ |
141 |
ARCH=$(usex amd64 "x86_64" "i386") \ |
142 |
DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \ |
143 |
BUILD_CLIENT=$(nobuildit dedicated) \ |
144 |
BUILD_CLIENT_SMP=$(usex smp "$(nobuildit dedicated)" "0") \ |
145 |
BUILD_SERVER=$(usex dedicated "1" "$(buildit server)") \ |
146 |
USE_SDL=$(buildit sdl) \ |
147 |
USE_OPENAL=$(buildit openal) \ |
148 |
USE_OPENAL_DLOPEN=0 \ |
149 |
USE_CURL=$(buildit curl) \ |
150 |
USE_CURL_DLOPEN=0 \ |
151 |
USE_CODEC_VORBIS=$(buildit vorbis) \ |
152 |
USE_LOCAL_HEADERS=0 \ |
153 |
Q="" \ |
154 |
$(usex debug "debug" "release") |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
local my_arch=$(usex amd64 "x86_64" "i386") |
159 |
|
160 |
dodoc ChangeLog README md4-readme.txt |
161 |
dodoc "${S_DATA}"/q3ut4/readme42.txt |
162 |
insinto "${GAMES_DATADIR}"/${PN}/q3ut4 |
163 |
doins "${S_DATA}"/q3ut4/*.pk3 |
164 |
|
165 |
if use !dedicated ; then |
166 |
newgamesbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT$(usex smp "-smp" "").${my_arch} ${PN} |
167 |
doicon -s scalable "${DISTDIR}"/${PN}.svg |
168 |
make_desktop_entry ${PN} "UrbanTerror" |
169 |
fi |
170 |
|
171 |
if use dedicated || use server ; then |
172 |
newgamesbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-dedicated |
173 |
docinto examples |
174 |
dodoc "${S_DATA}"/q3ut4/{server_example.cfg,mapcycle_example.txt} |
175 |
fi |
176 |
|
177 |
prepgamesdirs |
178 |
} |
179 |
|
180 |
pkg_preinst() { |
181 |
games_pkg_preinst |
182 |
use dedicated || gnome2_icon_savelist |
183 |
} |
184 |
|
185 |
pkg_postinst() { |
186 |
games_pkg_postinst |
187 |
use dedicated || gnome2_icon_cache_update |
188 |
|
189 |
if use openal && ! use dedicated ; then |
190 |
einfo |
191 |
elog "You might need to set:" |
192 |
elog " seta s_useopenal \"1\"" |
193 |
elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work." |
194 |
einfo |
195 |
fi |
196 |
} |
197 |
|
198 |
pkg_postrm() { |
199 |
use dedicated || gnome2_icon_cache_update |
200 |
} |