Gentoo Archives: gentoo-commits

From: "Tristan Heaven (nyhm)" <nyhm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/warsow: ChangeLog warsow-0.3.2-r1.ebuild
Date: Tue, 02 Oct 2007 13:07:26
Message-Id: E1IchKS-0008Ck-Pk@stork.gentoo.org
1 nyhm 07/10/02 12:58:24
2
3 Modified: ChangeLog
4 Added: warsow-0.3.2-r1.ebuild
5 Log:
6 Patch from Torben Hohn to fix map downloading, bug #193963
7 (Portage version: 2.1.3.11)
8
9 Revision Changes Path
10 1.10 games-fps/warsow/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 6 Sep 2007 12:53:44 -0000 1.9
23 +++ ChangeLog 2 Oct 2007 12:58:24 -0000 1.10
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-fps/warsow
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.9 2007/09/06 12:53:44 nyhm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.10 2007/10/02 12:58:24 nyhm Exp $
29 +
30 +*warsow-0.3.2-r1 (02 Oct 2007)
31 +
32 + 02 Oct 2007; Tristan Heaven <nyhm@g.o>
33 + +files/warsow-0.3.2-mapdl.patch, +warsow-0.3.2-r1.ebuild:
34 + Patch from Torben Hohn to fix map downloading, bug #193963
35
36 06 Sep 2007; Tristan Heaven <nyhm@g.o>
37 +files/warsow-0.3.2-build.patch:
38
39
40
41 1.1 games-fps/warsow/warsow-0.3.2-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/warsow-0.3.2-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/warsow/warsow-0.3.2-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: warsow-0.3.2-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.3.2-r1.ebuild,v 1.1 2007/10/02 12:58:24 nyhm Exp $
51
52 inherit eutils toolchain-funcs versionator games
53
54 MY_P=${PN}_$(delete_version_separator 2)
55 DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
56 HOMEPAGE="http://www.warsow.net/"
57 SRC_URI="http://www.megami.de/warsow/releases/${MY_P}_linux.tar.gz
58 http://www.megami.de/warsow/releases/${MY_P}_sdk.zip
59 mirror://gentoo/${PN}.png"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="debug dedicated irc openal opengl"
65
66 UIRDEPEND="media-libs/jpeg
67 media-libs/libvorbis
68 media-libs/libsdl
69 net-misc/curl
70 virtual/opengl
71 x11-libs/libXinerama
72 x11-libs/libXxf86dga
73 x11-libs/libXxf86vm
74 openal? ( media-libs/openal )"
75 RDEPEND="opengl? ( ${UIRDEPEND} )
76 !opengl? ( !dedicated? ( ${UIRDEPEND} ) )"
77 DEPEND="${RDEPEND}
78 app-arch/unzip
79 x11-misc/makedepend"
80
81 S=${WORKDIR}/${MY_P}/source
82
83 src_unpack() {
84 unpack ${A}
85 cd "${S}"
86 rm -f "${WORKDIR}"/${PN}/docs/gnu.txt
87
88 sed -i \
89 -e '/fs_usehomedir =/ s:0:1:' \
90 -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \
91 qcommon/files.c \
92 || die "sed files.c failed"
93
94 epatch \
95 "${FILESDIR}"/${P}-build.patch \
96 "${FILESDIR}"/${P}-mapdl.patch
97 }
98
99 src_compile() {
100 yesno() { use ${1} && echo YES || echo NO ; }
101
102 if use opengl || ! use dedicated ; then
103 local client="YES"
104 else
105 local client="NO"
106 fi
107
108 emake \
109 BUILD_CLIENT=${client} \
110 BUILD_SERVER=$(yesno dedicated) \
111 BUILD_IRC=$(yesno irc) \
112 BUILD_SND_OPENAL=$(yesno openal) \
113 DEBUG_BUILD=$(yesno debug) \
114 CC="$(tc-getCC)" \
115 LD="$(tc-getCC)" \
116 || die "emake failed"
117 }
118
119 src_install() {
120 cd release
121
122 if use opengl || ! use dedicated ; then
123 newgamesbin ${PN}.* ${PN} || die "newgamesbin ${PN} failed"
124 doicon "${DISTDIR}"/${PN}.png
125 make_desktop_entry ${PN} Warsow
126 fi
127
128 if use dedicated ; then
129 newgamesbin wsw_server.* ${PN}-ded || die "newgamesbin ${PN}-ded failed"
130 fi
131
132 exeinto "$(games_get_libdir)"/${PN}
133 doexe */*.so || die "doexe failed"
134
135 insinto "${GAMES_DATADIR}"/${PN}
136 doins -r "${WORKDIR}"/${PN}/basewsw || die "doins failed"
137
138 local so
139 for so in basewsw/*.so ; do
140 dosym "$(games_get_libdir)"/${PN}/${so##*/} \
141 "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
142 done
143
144 dodir "${GAMES_DATADIR}"/${PN}/libs
145 for so in libs/*.so ; do
146 dosym "$(games_get_libdir)"/${PN}/${so##*/} \
147 "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
148 done
149
150 dodoc "${WORKDIR}"{/${PN},}/docs/*
151 prepgamesdirs
152 }
153
154
155
156 --
157 gentoo-commits@g.o mailing list