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-strategy/0ad: ChangeLog metadata.xml 0ad-0.0.16_alpha-r1.ebuild 0ad-0.0.16_alpha.ebuild
Date: Thu, 22 May 2014 12:06:27
Message-Id: 20140522120623.C4D002004C@flycatcher.gentoo.org
1 hasufell 14/05/22 12:06:23
2
3 Modified: ChangeLog metadata.xml
4 Added: 0ad-0.0.16_alpha-r1.ebuild
5 Removed: 0ad-0.0.16_alpha.ebuild
6 Log:
7 restrict broken tests wrt #511006, add lobby USE flag, rm obsolete fam USE flag, install ActorEditor binary for +editor
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
10
11 Revision Changes Path
12 1.2 games-strategy/0ad/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/ChangeLog?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/ChangeLog?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/ChangeLog?r1=1.1&r2=1.2
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-strategy/0ad/ChangeLog,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- ChangeLog 21 May 2014 18:09:13 -0000 1.1
25 +++ ChangeLog 22 May 2014 12:06:23 -0000 1.2
26 @@ -1,6 +1,13 @@
27 # ChangeLog for games-strategy/0ad
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/0ad/ChangeLog,v 1.1 2014/05/21 18:09:13 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/0ad/ChangeLog,v 1.2 2014/05/22 12:06:23 hasufell Exp $
31 +
32 +*0ad-0.0.16_alpha-r1 (22 May 2014)
33 +
34 + 22 May 2014; Julian Ospald <hasufell@g.o> -0ad-0.0.16_alpha.ebuild,
35 + +0ad-0.0.16_alpha-r1.ebuild, metadata.xml:
36 + restrict broken tests wrt #511006, add lobby USE flag, rm obsolete fam USE
37 + flag, install ActorEditor binary for +editor
38
39 *0ad-0.0.16_alpha (21 May 2014)
40
41
42
43
44 1.2 games-strategy/0ad/metadata.xml
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/metadata.xml?rev=1.2&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/metadata.xml?rev=1.2&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/metadata.xml?r1=1.1&r2=1.2
49
50 Index: metadata.xml
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/games-strategy/0ad/metadata.xml,v
53 retrieving revision 1.1
54 retrieving revision 1.2
55 diff -u -r1.1 -r1.2
56 --- metadata.xml 21 May 2014 18:09:13 -0000 1.1
57 +++ metadata.xml 22 May 2014 12:06:23 -0000 1.2
58 @@ -8,5 +8,7 @@
59 </maintainer>
60 <use>
61 <flag name="editor">Include Atlas scenario editor projects</flag>
62 + <flag name="lobby">Enable the use of <pkg>net-libs/gloox</pkg>
63 + and the multiplayer lobby</flag>
64 </use>
65 </pkgmetadata>
66
67
68
69 1.1 games-strategy/0ad/0ad-0.0.16_alpha-r1.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/0ad-0.0.16_alpha-r1.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/0ad/0ad-0.0.16_alpha-r1.ebuild?rev=1.1&content-type=text/plain
73
74 Index: 0ad-0.0.16_alpha-r1.ebuild
75 ===================================================================
76 # Copyright 1999-2014 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/games-strategy/0ad/0ad-0.0.16_alpha-r1.ebuild,v 1.1 2014/05/22 12:06:23 hasufell Exp $
79
80 EAPI=5
81
82 WX_GTK_VER="2.8"
83
84 inherit eutils wxwidgets toolchain-funcs gnome2-utils games
85
86 MY_P=0ad-${PV/_/-}
87 DESCRIPTION="A free, real-time strategy game"
88 HOMEPAGE="http://wildfiregames.com/0ad/"
89 SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz"
90
91 LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB"
92 SLOT="0"
93 KEYWORDS="~amd64 ~x86"
94 IUSE="editor +lobby pch sound test"
95 RESTRICT="test"
96
97 RDEPEND="
98 dev-lang/spidermonkey:24
99 dev-libs/boost
100 dev-libs/icu
101 dev-libs/libxml2
102 ~games-strategy/0ad-data-${PV}
103 media-gfx/nvidia-texture-tools
104 media-libs/libpng:0
105 media-libs/libsdl[X,opengl,video]
106 net-libs/enet:1.3
107 net-libs/miniupnpc
108 net-misc/curl
109 sys-libs/zlib
110 virtual/jpeg
111 virtual/opengl
112 x11-libs/libX11
113 x11-libs/libXcursor
114 editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
115 lobby? ( net-libs/gloox )
116 sound? ( media-libs/libogg
117 media-libs/libvorbis
118 media-libs/openal )"
119 DEPEND="${RDEPEND}
120 virtual/pkgconfig
121 test? ( dev-lang/perl )"
122
123 S=${WORKDIR}/${MY_P}
124
125 src_prepare() {
126 epatch "${FILESDIR}"/${P}-gentoo.patch
127 }
128
129 src_configure() {
130 local myconf=(
131 --with-system-nvtt
132 --with-system-enet
133 --with-system-miniupnpc
134 --with-system-mozjs24
135 --minimal-flags
136 $(usex pch "" "--without-pch")
137 $(usex test "" "--without-tests")
138 $(usex sound "" "--without-audio")
139 $(usex editor "--atlas" "")
140 $(usex lobby "" "--without-lobby")
141 --collada
142 --bindir="${GAMES_BINDIR}"
143 --libdir="$(games_get_libdir)"/${PN}
144 --datadir="${GAMES_DATADIR}"/${PN}
145 )
146
147 # stock premake4 does not work, use the shipped one
148 emake -C "${S}"/build/premake/premake4/build/gmake.unix
149
150 # regenerate scripts.c so our patch applies
151 cd "${S}"/build/premake/premake4 || die
152 "${S}"/build/premake/premake4/bin/release/premake4 embed || die
153
154 # rebuild premake again... this is the most stupid build system
155 emake -C "${S}"/build/premake/premake4/build/gmake.unix clean
156 emake -C "${S}"/build/premake/premake4/build/gmake.unix
157
158 # run premake to create build scripts
159 cd "${S}"/build/premake || die
160 "${S}"/build/premake/premake4/bin/release/premake4 \
161 --file="premake4.lua" \
162 --outpath="../workspaces/gcc/" \
163 --platform=$(usex amd64 "x64" "x32") \
164 --os=linux \
165 "${myconf[@]}" \
166 gmake || die "Premake failed"
167 }
168
169 src_compile() {
170 # build 3rd party fcollada
171 emake -C libraries/source/fcollada/src
172
173 # build 0ad
174 emake -C build/workspaces/gcc verbose=1
175 }
176
177 src_test() {
178 cd binaries/system || die
179 ./test -libdir "${S}/binaries/system" || die "test phase failed"
180 }
181
182 src_install() {
183 dogamesbin binaries/system/pyrogenesis
184 use editor && dogamesbin binaries/system/ActorEditor
185
186 insinto "${GAMES_DATADIR}"/${PN}
187 doins -r binaries/data/l10n
188
189 exeinto "$(games_get_libdir)"/${PN}
190 doexe binaries/system/libCollada.so
191 use editor && doexe binaries/system/libAtlasUI.so
192
193 dodoc binaries/system/readme.txt
194 doicon -s 128 build/resources/${PN}.png
195 games_make_wrapper ${PN} "${GAMES_BINDIR}/pyrogenesis"
196 use editor &&
197 games_make_wrapper ${PN}-ActorEditor "${GAMES_BINDIR}/ActorEditor"
198 make_desktop_entry ${PN}
199
200 prepgamesdirs
201 }
202
203 pkg_preinst() {
204 games_pkg_preinst
205 gnome2_icon_savelist
206 }
207
208 pkg_postinst() {
209 games_pkg_postinst
210 gnome2_icon_cache_update
211 }
212
213 pkg_postrm() {
214 gnome2_icon_cache_update
215 }