Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/tremulous: ChangeLog tremulous-1.1.0-r3.ebuild
Date: Wed, 25 Feb 2009 20:03:38
Message-Id: E1LcPyh-00026m-55@stork.gentoo.org
1 scarabeus 09/02/25 20:03:35
2
3 Modified: ChangeLog
4 Added: tremulous-1.1.0-r3.ebuild
5 Log:
6 Add gcc-4.3.3 Werror fix. Move to EAPI=2. Per bug #260165.
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.12 games-fps/tremulous/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/tremulous/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/tremulous/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/tremulous/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-fps/tremulous/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 17 Sep 2008 20:19:32 -0000 1.11
23 +++ ChangeLog 25 Feb 2009 20:03:35 -0000 1.12
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-fps/tremulous
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/ChangeLog,v 1.11 2008/09/17 20:19:32 maekke Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/ChangeLog,v 1.12 2009/02/25 20:03:35 scarabeus Exp $
30 +
31 +*tremulous-1.1.0-r3 (25 Feb 2009)
32 +
33 + 25 Feb 2009; Tomas Chvatal <scarabeus@g.o>
34 + +tremulous-1.1.0-r3.ebuild:
35 + Add gcc-4.3.3 Werror fix. Move to EAPI=2. Per bug #260165.
36
37 17 Sep 2008; Markus Meier <maekke@g.o> tremulous-1.1.0-r2.ebuild:
38 x86 stable, bug #222119
39
40
41
42 1.1 games-fps/tremulous/tremulous-1.1.0-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/tremulous/tremulous-1.1.0-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/tremulous/tremulous-1.1.0-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tremulous-1.1.0-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/tremulous-1.1.0-r3.ebuild,v 1.1 2009/02/25 20:03:35 scarabeus Exp $
52
53 EAPI=2
54
55 inherit eutils toolchain-funcs games
56
57 DESCRIPTION="Team-based aliens vs humans FPS with buildable structures"
58 HOMEPAGE="http://tremulous.net/ http://trem-servers.com"
59 SRC_URI="http://dl.trem-servers.com/${PN}-gentoopatches-${PV}-r5.zip
60 http://dl.trem-servers.com/vms-1.1.t971.pk3
61 http://0day.icculus.org/mirrors/${PN}/${P}.zip
62 ftp://ftp.wireplay.co.uk/pub/quake3arena/mods/${PN}/${P}.zip
63 mirror://sourceforge/${PN}/${P}.zip"
64
65 LICENSE="GPL-2 CCPL-Attribution-ShareAlike-2.5"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86"
68 IUSE="dedicated openal +opengl +vorbis"
69
70 UIDEPEND="
71 media-libs/libsdl[opengl?]
72 vorbis? ( media-libs/libogg media-libs/libvorbis )
73 openal? ( media-libs/openal )
74 x11-libs/libXau
75 x11-libs/libXdmcp"
76 RDEPEND="opengl? ( ${UIDEPEND} )
77 !opengl? ( !dedicated? ( ${UIDEPEND} ) )"
78 DEPEND="${RDEPEND}
79 app-arch/unzip"
80
81 S=${WORKDIR}/${PN}/${P}-src
82
83 src_unpack() {
84 unpack ${PN}-gentoopatches-${PV}-r5.zip
85 unpack ${P}.zip
86
87 cd ${PN}
88 unpack ./${P}-src.tar.gz
89 cp -f "${DISTDIR}"/vms-1.1.t971.pk3 "${WORKDIR}"/${PN}/base/ || die
90 }
91
92 src_prepare() {
93 # security patches
94 epatch "${WORKDIR}"/${PN}-svn755-upto-971.patch
95 epatch "${WORKDIR}"/${PN}-t971-client.patch
96 # fix the gcc-4.3.3 Werror issue
97 # This is probably issue for all icculus q3 based games
98 sed -i -e '16s/-Werror //' src/tools/asm/Makefile || die
99 }
100
101 src_compile() {
102 buildit() { use $1 && echo 1 || echo 0 ; }
103
104 local client=1
105 if ! use opengl; then
106 client=0
107 if ! use dedicated; then
108 # user is not sure what he wants
109 client=1
110 fi
111 fi
112
113 emake \
114 $(use amd64 && echo ARCH=x86_64) \
115 BUILD_CLIENT=${client} \
116 BUILD_CLIENT_SMP=${client} \
117 BUILD_SERVER=$(buildit dedicated) \
118 BUILD_GAME_SO=0 \
119 BUILD_GAME_QVM=0 \
120 CC="$(tc-getCC)" \
121 DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \
122 USE_CODEC_VORBIS=$(buildit vorbis) \
123 USE_OPENAL=$(buildit openal) \
124 USE_LOCAL_HEADERS=0 \
125 OPTIMIZE= \
126 || die "emake failed"
127 }
128
129 src_install() {
130 insinto "${GAMES_DATADIR}"/${PN}
131 doins -r ../base || die "doins -r failed"
132 dodoc ChangeLog ../manual.pdf
133 if use opengl || ! use dedicated ; then
134 newgamesbin build/release-linux-*/${PN}-smp.* ${PN} \
135 || die "newgamesbin ${PN}"
136 newicon "${WORKDIR}"/tyrant.xpm ${PN}.xpm
137 make_desktop_entry ${PN} Tremulous
138 fi
139 if use dedicated ; then
140 newgamesbin build/release-linux-*/tremded.* ${PN}-ded \
141 || die "newgamesbin ${PN}-ded failed"
142 fi
143 prepgamesdirs
144 }
145
146 pkg_postinst() {
147 games_pkg_postinst
148
149 elog "If you want to add extra maps, download"
150 elog "http://tremulous.bricosoft.com/base/all-maps.tgz"
151 elog "and unpack it into ~/.tremulous/base for your user"
152 elog "or into ${GAMES_DATADIR}/${PN}/base for all users."
153 }