Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/warsow: warsow-1.5.1.ebuild ChangeLog
Date: Fri, 20 Jun 2014 20:20:44
Message-Id: 20140620202040.283642004F@flycatcher.gentoo.org
1 hasufell 14/06/20 20:20:40
2
3 Modified: ChangeLog
4 Added: warsow-1.5.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.58 games-fps/warsow/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.58&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.58&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/ChangeLog?r1=1.57&r2=1.58
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v
20 retrieving revision 1.57
21 retrieving revision 1.58
22 diff -u -r1.57 -r1.58
23 --- ChangeLog 11 May 2014 00:32:18 -0000 1.57
24 +++ ChangeLog 20 Jun 2014 20:20:40 -0000 1.58
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-fps/warsow
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.57 2014/05/11 00:32:18 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.58 2014/06/20 20:20:40 hasufell Exp $
30 +
31 +*warsow-1.5.1 (20 Jun 2014)
32 +
33 + 20 Jun 2014; Julian Ospald <hasufell@g.o>
34 + +files/warsow-1.5.1-build.patch, +warsow-1.5.1.ebuild:
35 + version bump
36
37 *warsow-1.5 (11 May 2014)
38
39
40
41
42 1.1 games-fps/warsow/warsow-1.5.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/warsow-1.5.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/warsow/warsow-1.5.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: warsow-1.5.1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-1.5.1.ebuild,v 1.1 2014/06/20 20:20:40 hasufell Exp $
52
53 EAPI=5
54 inherit eutils check-reqs gnome2-utils flag-o-matic games
55
56 # BASE_DATA_PV=1.0
57 # BASE_DATA_P=${PN}_${BASE_DATA_PV}_unified
58 DATA_PV=1.51
59 UPDATE_P=${PN}_${DATA_PV}_update
60 ENGINE_PV=1.51
61 ENGINE_P=${PN}_${ENGINE_PV}_sdk
62
63 DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
64 HOMEPAGE="http://www.warsow.net/"
65 SRC_URI="http://www.warsow.net:1337/~warsow/${PV}/${ENGINE_P}.tar.gz
66 http://www.warsow.eu/warsow_${DATA_PV}_unified.tar.gz
67 mirror://gentoo/warsow.png"
68
69 # ZLIB: bundled angelscript
70 LICENSE="GPL-2 ZLIB warsow"
71 SLOT="0"
72 KEYWORDS="~amd64 ~x86"
73 IUSE="debug dedicated irc openal server"
74
75 RDEPEND=">=dev-libs/libRocket-1.2.1_p20130110
76 media-libs/freetype
77 net-misc/curl
78 sys-libs/zlib
79 !dedicated? (
80 media-libs/libpng:0
81 media-libs/libsdl
82 media-libs/libtheora
83 media-libs/libvorbis
84 x11-libs/libX11
85 x11-libs/libXinerama
86 x11-libs/libXrandr
87 x11-libs/libXxf86dga
88 x11-libs/libXxf86vm
89 virtual/jpeg
90 virtual/opengl
91 openal? ( media-libs/openal )
92 )"
93 DEPEND="${RDEPEND}
94 app-arch/unzip
95 x11-misc/makedepend
96 !dedicated? (
97 x11-proto/xineramaproto
98 x11-proto/xf86dgaproto
99 x11-proto/xf86vidmodeproto
100 )
101 openal? ( virtual/pkgconfig )"
102
103 S=${WORKDIR}/source/source
104
105 CHECKREQS_DISK_BUILD="1G"
106 CHECKREQS_DISK_USR="500M"
107
108 src_prepare() {
109 if [[ $(tc-getCC) =~ clang ]]; then
110 einfo "disabling -ffast-math due to clang bug"
111 einfo "http://llvm.org/bugs/show_bug.cgi?id=13745"
112 append-cflags -fno-fast-math
113 append-cxxflags -fno-fast-math
114 fi
115
116 sed -i \
117 -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \
118 qcommon/files.c \
119 || die "sed files.c failed"
120
121 # edos2unix breaks whitespace files
122 einfo "removing dos line breaks"
123 find . -type f -exec sed -i 's/\r$//' '{}' + || die
124
125 cd "${S}"/.. || die
126 epatch "${FILESDIR}"/${PN}-1.5.1-build.patch \
127 "${FILESDIR}"/${PN}-1.03-pic.patch
128 epatch_user
129 }
130
131 src_compile() {
132 yesno() { use ${1} && echo YES || echo NO ; }
133
134 emake -C ../libsrcs/angelscript/sdk/angelscript/projects/gnuc
135
136 local arch
137 if use amd64 ; then
138 arch=x86_64
139 elif use x86 ; then
140 arch=i386
141 fi
142
143 local myconf
144 if use dedicated ; then
145 myconf=(
146 BUILD_CLIENT=NO
147 BUILD_IRC=NO
148 BUILD_SND_OPENAL=NO
149 BUILD_SND_QF=NO
150 BUILD_CIN=NO
151 BUILD_SERVER=YES
152 BUILD_TV_SERVER=YES
153 )
154 else
155 myconf=(
156 BUILD_CLIENT=YES
157 BUILD_IRC=$(yesno irc)
158 BUILD_SND_OPENAL=$(yesno openal)
159 BUILD_SND_QF=YES
160 BUILD_CIN=YES
161 BUILD_SERVER=$(yesno server)
162 BUILD_TV_SERVER=$(yesno server)
163 )
164 fi
165
166 emake \
167 V=YES \
168 SYSTEM_LIBS=YES \
169 BASE_ARCH=${arch} \
170 BINDIR=lib \
171 BUILD_ANGELWRAP=YES \
172 DEBUG_BUILD=$(yesno debug) \
173 ${myconf[@]}
174 }
175
176 src_install() {
177 cd lib
178
179 if ! use dedicated ; then
180 newgamesbin ${PN}.* ${PN}
181 doicon -s 48 "${DISTDIR}"/${PN}.png
182 make_desktop_entry ${PN} Warsow
183 fi
184
185 if use dedicated || use server ; then
186 newgamesbin wsw_server.* ${PN}-ded
187 newgamesbin wswtv_server.* ${PN}-tv
188 fi
189
190 exeinto "$(games_get_libdir)"/${PN}
191 doexe */*.so
192
193 insinto "${GAMES_DATADIR}"/${PN}
194 doins -r "${WORKDIR}"/${PN}_15/basewsw
195
196 local so
197 for so in basewsw/*.so ; do
198 dosym "$(games_get_libdir)"/${PN}/${so##*/} \
199 "${GAMES_DATADIR}"/${PN}/${so}
200 done
201
202 if [[ -e libs ]] ; then
203 dodir "${GAMES_DATADIR}"/${PN}/libs
204 for so in libs/*.so ; do
205 dosym "$(games_get_libdir)"/${PN}/${so##*/} \
206 "${GAMES_DATADIR}"/${PN}/${so}
207 done
208 fi
209
210 dodoc "${WORKDIR}"/${PN}_15/docs/*
211 prepgamesdirs
212 }
213
214 pkg_preinst() {
215 games_pkg_preinst
216 gnome2_icon_savelist
217 }
218
219 pkg_postinst() {
220 games_pkg_postinst
221 gnome2_icon_cache_update
222 }
223
224 pkg_postrm() {
225 gnome2_icon_cache_update
226 }