1 |
commit: eaa8b1311c912e3edb72bd3166241b129af34c35 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 27 13:37:33 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 27 13:38:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaa8b131 |
7 |
|
8 |
games-strategy/0ad: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
games-strategy/0ad/0ad-0.0.20_alpha.ebuild | 151 --------------------- |
13 |
games-strategy/0ad/Manifest | 1 - |
14 |
.../0ad/files/0ad-0.0.20_alpha-gentoo.patch | 105 -------------- |
15 |
3 files changed, 257 deletions(-) |
16 |
|
17 |
diff --git a/games-strategy/0ad/0ad-0.0.20_alpha.ebuild b/games-strategy/0ad/0ad-0.0.20_alpha.ebuild |
18 |
deleted file mode 100644 |
19 |
index 5ccfab2942c..00000000000 |
20 |
--- a/games-strategy/0ad/0ad-0.0.20_alpha.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,151 +0,0 @@ |
23 |
-# Copyright 1999-2017 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=5 |
27 |
- |
28 |
-WX_GTK_VER="3.0" |
29 |
- |
30 |
-PYTHON_COMPAT=( python2_7 ) |
31 |
-PYTHON_REQ_USE="threads,ssl" |
32 |
- |
33 |
-inherit eutils wxwidgets toolchain-funcs gnome2-utils python-any-r1 games |
34 |
- |
35 |
-MY_P=0ad-${PV/_/-} |
36 |
-DESCRIPTION="A free, real-time strategy game" |
37 |
-HOMEPAGE="https://play0ad.com/" |
38 |
-SRC_URI="mirror://sourceforge/zero-ad/${MY_P}-unix-build.tar.xz" |
39 |
- |
40 |
-LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB" |
41 |
-SLOT="0" |
42 |
-KEYWORDS="~amd64 ~x86" |
43 |
-IUSE="editor +lobby nvtt pch sound test" |
44 |
-RESTRICT="test" |
45 |
- |
46 |
-RDEPEND=" |
47 |
- dev-libs/boost:= |
48 |
- dev-libs/icu:= |
49 |
- dev-libs/libxml2 |
50 |
- dev-libs/nspr |
51 |
- ~games-strategy/0ad-data-${PV} |
52 |
- media-libs/libpng:0 |
53 |
- media-libs/libsdl2[X,opengl,video] |
54 |
- net-libs/enet:1.3 |
55 |
- net-libs/miniupnpc:= |
56 |
- net-misc/curl |
57 |
- sys-libs/zlib |
58 |
- virtual/jpeg:0 |
59 |
- virtual/opengl |
60 |
- x11-libs/libX11 |
61 |
- x11-libs/libXcursor |
62 |
- editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) |
63 |
- lobby? ( net-libs/gloox ) |
64 |
- nvtt? ( media-gfx/nvidia-texture-tools ) |
65 |
- sound? ( media-libs/libvorbis |
66 |
- media-libs/openal )" |
67 |
-DEPEND="${RDEPEND} |
68 |
- ${PYTHON_DEPS} |
69 |
- virtual/pkgconfig |
70 |
- test? ( dev-lang/perl )" |
71 |
- |
72 |
-S=${WORKDIR}/${MY_P} |
73 |
- |
74 |
-pkg_setup() { |
75 |
- games_pkg_setup |
76 |
- python-any-r1_pkg_setup |
77 |
-} |
78 |
- |
79 |
-src_prepare() { |
80 |
- epatch "${FILESDIR}"/${P}-gentoo.patch |
81 |
-} |
82 |
- |
83 |
-src_configure() { |
84 |
- local myconf=( |
85 |
- --with-system-nvtt |
86 |
- --with-system-miniupnpc |
87 |
- --minimal-flags |
88 |
- $(usex nvtt "" "--without-nvtt") |
89 |
- $(usex pch "" "--without-pch") |
90 |
- $(usex test "" "--without-tests") |
91 |
- $(usex sound "" "--without-audio") |
92 |
- $(usex editor "--atlas" "") |
93 |
- $(usex lobby "" "--without-lobby") |
94 |
- --collada |
95 |
- --bindir="${GAMES_BINDIR}" |
96 |
- --libdir="$(games_get_libdir)"/${PN} |
97 |
- --datadir="${GAMES_DATADIR}"/${PN} |
98 |
- ) |
99 |
- |
100 |
- # stock premake4 does not work, use the shipped one |
101 |
- emake -C "${S}"/build/premake/premake4/build/gmake.unix |
102 |
- |
103 |
- # regenerate scripts.c so our patch applies |
104 |
- cd "${S}"/build/premake/premake4 || die |
105 |
- "${S}"/build/premake/premake4/bin/release/premake4 embed || die |
106 |
- |
107 |
- # rebuild premake again... this is the most stupid build system |
108 |
- emake -C "${S}"/build/premake/premake4/build/gmake.unix clean |
109 |
- emake -C "${S}"/build/premake/premake4/build/gmake.unix |
110 |
- |
111 |
- # run premake to create build scripts |
112 |
- cd "${S}"/build/premake || die |
113 |
- "${S}"/build/premake/premake4/bin/release/premake4 \ |
114 |
- --file="premake4.lua" \ |
115 |
- --outpath="../workspaces/gcc/" \ |
116 |
- --platform=$(usex amd64 "x64" "x32") \ |
117 |
- --os=linux \ |
118 |
- "${myconf[@]}" \ |
119 |
- gmake || die "Premake failed" |
120 |
-} |
121 |
- |
122 |
-src_compile() { |
123 |
- tc-export AR |
124 |
- |
125 |
- # build bundled and patched spidermonkey |
126 |
- cd libraries/source/spidermonkey || die |
127 |
- JOBS="${MAKEOPTS}" ./build.sh || die |
128 |
- cd "${S}" || die |
129 |
- |
130 |
- # build 3rd party fcollada |
131 |
- emake -C libraries/source/fcollada/src |
132 |
- |
133 |
- # build 0ad |
134 |
- emake -C build/workspaces/gcc verbose=1 |
135 |
-} |
136 |
- |
137 |
-src_test() { |
138 |
- cd binaries/system || die |
139 |
- ./test -libdir "${S}/binaries/system" || die "test phase failed" |
140 |
-} |
141 |
- |
142 |
-src_install() { |
143 |
- newgamesbin binaries/system/pyrogenesis 0ad |
144 |
- use editor && newgamesbin binaries/system/ActorEditor 0ad-ActorEditor |
145 |
- |
146 |
- insinto "${GAMES_DATADIR}"/${PN} |
147 |
- doins -r binaries/data/l10n |
148 |
- |
149 |
- exeinto "$(games_get_libdir)"/${PN} |
150 |
- doexe binaries/system/libCollada.so |
151 |
- doexe libraries/source/spidermonkey/lib/*.so |
152 |
- use editor && doexe binaries/system/libAtlasUI.so |
153 |
- |
154 |
- dodoc binaries/system/readme.txt |
155 |
- doicon -s 128 build/resources/${PN}.png |
156 |
- make_desktop_entry ${PN} |
157 |
- |
158 |
- prepgamesdirs |
159 |
-} |
160 |
- |
161 |
-pkg_preinst() { |
162 |
- games_pkg_preinst |
163 |
- gnome2_icon_savelist |
164 |
-} |
165 |
- |
166 |
-pkg_postinst() { |
167 |
- games_pkg_postinst |
168 |
- gnome2_icon_cache_update |
169 |
-} |
170 |
- |
171 |
-pkg_postrm() { |
172 |
- gnome2_icon_cache_update |
173 |
-} |
174 |
|
175 |
diff --git a/games-strategy/0ad/Manifest b/games-strategy/0ad/Manifest |
176 |
index 616caf97e65..f0cbb7ea63c 100644 |
177 |
--- a/games-strategy/0ad/Manifest |
178 |
+++ b/games-strategy/0ad/Manifest |
179 |
@@ -1,3 +1,2 @@ |
180 |
-DIST 0ad-0.0.20-alpha-unix-build.tar.xz 25610932 SHA256 a396d5cb37057ddd3cd523434f70c56be21588a2228443e7508d2b2d610fc68e SHA512 786f92b74c2e0c64c07ef2f5578dcb5c753fb4fed7238d385bca23549805fcfaeecb9bfbfae809a2ac09a7dfc804455237346588099db347c28a3ff0ae284c43 WHIRLPOOL 2d4b4e96dcb80e265cbbbddfe3b52e72110a419713f6644a68d2a9d499ffc57f03d5b68e612d00ccd889ec9a19609b968af450b228ef586d9567bd16cbc76fcb |
181 |
DIST 0ad-0.0.21-alpha-unix-build.tar.xz 29196476 SHA256 96be23e4284a3931ef9536f988f2517040bde1f8700ee048bff18c932d8683cf SHA512 68f3586375f7dcbf3dfb6476040b8b43da8e2ea1e74947223ff5c9936b54a93caef919d8982d78c6f4ad01ee8f707b38a2c37cdab88ea5c5408544364cff4c37 WHIRLPOOL 8e72c2c3311169eabab5a8a028ffc90b8d6838f72d23ebbac3e5331a7f9434bbe7cae8cf0f5a97bf30b913f7f7f737d264aaf86298f8f65c81a270b0c4e5f871 |
182 |
DIST 0ad-0.0.22-alpha-unix-build.tar.xz 29199308 SHA256 fddd36df4fd32b5b31fd8871bc5ed3ec71a921de79517fb6199ba7571ec9f5b1 SHA512 3f917e77c6cc1d3fb585c98950db6eab3f5895ba3db41a8737f8172c769b5582689b436cab31eeafecce0e9639ee456afc7b78ebb03435b06512eb9fe7393771 WHIRLPOOL ae33f4f77cb981a0e8f00969c6b1ee05a2f06bacb70f79bfac74fda383bffedd4c6027370d5003e3d7815d5c68e13308b3553d8810bc69eebee143231968e95c |
183 |
|
184 |
diff --git a/games-strategy/0ad/files/0ad-0.0.20_alpha-gentoo.patch b/games-strategy/0ad/files/0ad-0.0.20_alpha-gentoo.patch |
185 |
deleted file mode 100644 |
186 |
index 37a4ef9131d..00000000000 |
187 |
--- a/games-strategy/0ad/files/0ad-0.0.20_alpha-gentoo.patch |
188 |
+++ /dev/null |
189 |
@@ -1,105 +0,0 @@ |
190 |
-diff -Naur 0ad-0.0.20-alpha.old/build/premake/premake4/build/gmake.unix/Premake4.make 0ad-0.0.20-alpha/build/premake/premake4/build/gmake.unix/Premake4.make |
191 |
---- 0ad-0.0.20-alpha.old/build/premake/premake4/build/gmake.unix/Premake4.make 2016-04-01 20:13:10.176916471 +0200 |
192 |
-+++ 0ad-0.0.20-alpha/build/premake/premake4/build/gmake.unix/Premake4.make 2016-04-01 20:17:20.456909743 +0200 |
193 |
-@@ -26,12 +26,12 @@ |
194 |
- DEFINES += -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN |
195 |
- INCLUDES += -I../../src/host/lua-5.1.4/src |
196 |
- CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) |
197 |
-- CFLAGS += $(CPPFLAGS) -Wall -Os |
198 |
-- CXXFLAGS += $(CPPFLAGS) -Wall -Os |
199 |
-- LDFLAGS += -s -rdynamic |
200 |
-- LIBS += -lm -ldl |
201 |
-- RESFLAGS += $(DEFINES) $(INCLUDES) |
202 |
-- LDDEPS += |
203 |
-+ CFLAGS += $(CPPFLAGS) -Wall |
204 |
-+ CXXFLAGS += $(CPPFLAGS) -Wall |
205 |
-+ LDFLAGS += -rdynamic |
206 |
-+ LIBS += -lm -ldl |
207 |
-+ RESFLAGS += $(DEFINES) $(INCLUDES) |
208 |
-+ LDDEPS += |
209 |
- LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(LDDEPS) $(LIBS) |
210 |
- define PREBUILDCMDS |
211 |
- endef |
212 |
-@@ -48,12 +48,12 @@ |
213 |
- DEFINES += -D_DEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN |
214 |
- INCLUDES += -I../../src/host/lua-5.1.4/src |
215 |
- CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) |
216 |
-- CFLAGS += $(CPPFLAGS) -Wall -g |
217 |
-- CXXFLAGS += $(CPPFLAGS) -Wall -g |
218 |
-+ CFLAGS += $(CFLAGS) $(CPPFLAGS) -Wall |
219 |
-+ CXXFLAGS += $(CXXFLAGS) $(CPPFLAGS) -Wall |
220 |
- LDFLAGS += -rdynamic |
221 |
-- LIBS += -lm -ldl |
222 |
-- RESFLAGS += $(DEFINES) $(INCLUDES) |
223 |
-- LDDEPS += |
224 |
-+ LIBS += -lm -ldl |
225 |
-+ RESFLAGS += $(DEFINES) $(INCLUDES) |
226 |
-+ LDDEPS += |
227 |
- LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(LDDEPS) $(LIBS) |
228 |
- define PREBUILDCMDS |
229 |
- endef |
230 |
-diff -Naur 0ad-0.0.20-alpha.old/build/premake/premake4/src/tools/gcc.lua 0ad-0.0.20-alpha/build/premake/premake4/src/tools/gcc.lua |
231 |
---- 0ad-0.0.20-alpha.old/build/premake/premake4/src/tools/gcc.lua 2016-04-01 20:13:10.170916472 +0200 |
232 |
-+++ 0ad-0.0.20-alpha/build/premake/premake4/src/tools/gcc.lua 2016-04-01 20:15:21.051912953 +0200 |
233 |
-@@ -136,8 +136,6 @@ |
234 |
- if not cfg.flags.Symbols then |
235 |
- if cfg.system == "macosx" then |
236 |
- table.insert(result, "-Wl,-x") |
237 |
-- else |
238 |
-- table.insert(result, "-s") |
239 |
- end |
240 |
- end |
241 |
- |
242 |
-diff -Naur 0ad-0.0.20-alpha.old/libraries/source/fcollada/src/Makefile 0ad-0.0.20-alpha/libraries/source/fcollada/src/Makefile |
243 |
---- 0ad-0.0.20-alpha.old/libraries/source/fcollada/src/Makefile 2016-04-01 20:13:10.197916471 +0200 |
244 |
-+++ 0ad-0.0.20-alpha/libraries/source/fcollada/src/Makefile 2016-04-01 20:14:17.511914661 +0200 |
245 |
-@@ -9,9 +9,9 @@ |
246 |
- |
247 |
- CXX ?= g++ |
248 |
- CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS) |
249 |
--CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL |
250 |
--CXXFLAGS_RELEASE := -O2 -DNDEBUG -DRETAIL |
251 |
--CXXFLAGS_TEST := -O0 -g -D_DEBUG |
252 |
-+CXXFLAGS_DEBUG := -D_DEBUG -DRETAIL |
253 |
-+CXXFLAGS_RELEASE := -DNDEBUG -DRETAIL |
254 |
-+CXXFLAGS_TEST := -D_DEBUG |
255 |
- LIBS += `pkg-config libxml-2.0 --libs` |
256 |
- INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags` |
257 |
- INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES) |
258 |
-diff -Naur 0ad-0.0.20-alpha.old/libraries/source/spidermonkey/build.sh 0ad-0.0.20-alpha/libraries/source/spidermonkey/build.sh |
259 |
---- 0ad-0.0.20-alpha.old/libraries/source/spidermonkey/build.sh 2016-04-01 20:13:10.185916471 +0200 |
260 |
-+++ 0ad-0.0.20-alpha/libraries/source/spidermonkey/build.sh 2016-04-01 20:19:03.800906965 +0200 |
261 |
-@@ -79,20 +79,8 @@ |
262 |
- cd js/src |
263 |
- |
264 |
- # Clean up data generated by previous builds that could cause problems |
265 |
--rm -rf build-debug |
266 |
- rm -rf build-release |
267 |
- |
268 |
--# We want separate debug/release versions of the library, so we have to change |
269 |
--# the LIBRARY_NAME for each build. |
270 |
--# (We use perl instead of sed so that it works with MozillaBuild on Windows, |
271 |
--# which has an ancient sed.) |
272 |
--perl -i.bak -pe 's/(LIBRARY_NAME\s+=).*/$1 '\''mozjs31-ps-debug'\''/' moz.build |
273 |
--mkdir -p build-debug |
274 |
--cd build-debug |
275 |
--CXXFLAGS="${TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-debug --disable-optimize --enable-js-diagnostics --enable-gczeal # --enable-root-analysis |
276 |
--${MAKE} ${MAKE_OPTS} |
277 |
--cd .. |
278 |
-- |
279 |
- perl -i.bak -pe 's/(LIBRARY_NAME\s+=).*/$1 '\''mozjs31-ps-release'\''/' moz.build |
280 |
- mkdir -p build-release |
281 |
- cd build-release |
282 |
-@@ -134,12 +122,9 @@ |
283 |
- mkdir -p ${INCLUDE_DIR_DEBUG} |
284 |
- mkdir -p ${INCLUDE_DIR_RELEASE} |
285 |
- cp -R -L mozjs31/js/src/build-release/dist/include/* ${INCLUDE_DIR_RELEASE}/ |
286 |
--cp -R -L mozjs31/js/src/build-debug/dist/include/* ${INCLUDE_DIR_DEBUG}/ |
287 |
- |
288 |
- mkdir -p lib/ |
289 |
--cp -L mozjs31/js/src/build-debug/dist/lib/${LIB_PREFIX}mozjs31-ps-debug${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs31-ps-debug${LIB_DST_SUFFIX} |
290 |
- cp -L mozjs31/js/src/build-release/dist/lib/${LIB_PREFIX}mozjs31-ps-release${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs31-ps-release${LIB_DST_SUFFIX} |
291 |
--cp -L mozjs31/js/src/build-debug/dist/bin/${LIB_PREFIX}mozjs31-ps-debug${DLL_SRC_SUFFIX} ../../../binaries/system/${LIB_PREFIX}mozjs31-ps-debug${DLL_DST_SUFFIX} |
292 |
- cp -L mozjs31/js/src/build-release/dist/bin/${LIB_PREFIX}mozjs31-ps-release${DLL_SRC_SUFFIX} ../../../binaries/system/${LIB_PREFIX}mozjs31-ps-release${DLL_DST_SUFFIX} |
293 |
- |
294 |
- # Flag that it's already been built successfully so we can skip it next time |