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