1 |
commit: 644a4c60652a4da408daa1ba1df32ae5aee0c750 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 27 13:36:50 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 27 13:38:35 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=644a4c60 |
7 |
|
8 |
games-strategy/0ad: Bump to version 0.0.22_alpha |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
games-strategy/0ad/0ad-0.0.22_alpha.ebuild | 146 +++++++++++++++++++++++++++++ |
13 |
games-strategy/0ad/Manifest | 1 + |
14 |
2 files changed, 147 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/0ad/0ad-0.0.22_alpha.ebuild b/games-strategy/0ad/0ad-0.0.22_alpha.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0eac8acb767 |
19 |
--- /dev/null |
20 |
+++ b/games-strategy/0ad/0ad-0.0.22_alpha.ebuild |
21 |
@@ -0,0 +1,146 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+WX_GTK_VER="3.0" |
28 |
+ |
29 |
+PYTHON_COMPAT=( python2_7 ) |
30 |
+PYTHON_REQ_USE="threads,ssl" |
31 |
+ |
32 |
+inherit eutils wxwidgets toolchain-funcs gnome2-utils python-any-r1 |
33 |
+ |
34 |
+MY_P=0ad-${PV/_/-} |
35 |
+DESCRIPTION="A free, real-time strategy game" |
36 |
+HOMEPAGE="https://play0ad.com/" |
37 |
+SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz" |
38 |
+ |
39 |
+LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="editor +lobby nvtt pch sound test" |
43 |
+RESTRICT="test" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ dev-libs/boost:= |
47 |
+ dev-libs/icu:= |
48 |
+ dev-libs/libxml2 |
49 |
+ dev-libs/nspr |
50 |
+ ~games-strategy/0ad-data-${PV} |
51 |
+ media-libs/libpng:0 |
52 |
+ media-libs/libsdl2[X,opengl,video] |
53 |
+ net-libs/enet:1.3 |
54 |
+ net-libs/miniupnpc:= |
55 |
+ net-misc/curl |
56 |
+ sys-libs/zlib |
57 |
+ virtual/jpeg:0 |
58 |
+ virtual/opengl |
59 |
+ x11-libs/libX11 |
60 |
+ x11-libs/libXcursor |
61 |
+ editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) |
62 |
+ lobby? ( net-libs/gloox ) |
63 |
+ nvtt? ( media-gfx/nvidia-texture-tools ) |
64 |
+ sound? ( media-libs/libvorbis |
65 |
+ media-libs/openal )" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ ${PYTHON_DEPS} |
68 |
+ virtual/pkgconfig |
69 |
+ test? ( dev-lang/perl )" |
70 |
+ |
71 |
+S="${WORKDIR}/${MY_P}" |
72 |
+ |
73 |
+pkg_setup() { |
74 |
+ python-any-r1_pkg_setup |
75 |
+} |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}"/${PN}-0.0.21_alpha-gentoo.patch |
79 |
+) |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local myconf=( |
83 |
+ --with-system-nvtt |
84 |
+ --with-system-miniupnpc |
85 |
+ --minimal-flags |
86 |
+ $(usex nvtt "" "--without-nvtt") |
87 |
+ $(usex pch "" "--without-pch") |
88 |
+ $(usex test "" "--without-tests") |
89 |
+ $(usex sound "" "--without-audio") |
90 |
+ $(usex editor "--atlas" "") |
91 |
+ $(usex lobby "" "--without-lobby") |
92 |
+ --collada |
93 |
+ --bindir="/usr/bin" |
94 |
+ --libdir="/usr/$(get_libdir)"/${PN} |
95 |
+ --datadir="/usr/share/${PN}" |
96 |
+ ) |
97 |
+ |
98 |
+ # stock premake4 does not work, use the shipped one |
99 |
+ emake -C "${S}"/build/premake/premake4/build/gmake.unix |
100 |
+ |
101 |
+ # regenerate scripts.c so our patch applies |
102 |
+ cd "${S}"/build/premake/premake4 || die |
103 |
+ "${S}"/build/premake/premake4/bin/release/premake4 embed || die |
104 |
+ |
105 |
+ # rebuild premake again... this is the most stupid build system |
106 |
+ emake -C "${S}"/build/premake/premake4/build/gmake.unix clean |
107 |
+ emake -C "${S}"/build/premake/premake4/build/gmake.unix |
108 |
+ |
109 |
+ # run premake to create build scripts |
110 |
+ cd "${S}"/build/premake || die |
111 |
+ "${S}"/build/premake/premake4/bin/release/premake4 \ |
112 |
+ --file="premake4.lua" \ |
113 |
+ --outpath="../workspaces/gcc/" \ |
114 |
+ --platform=$(usex amd64 "x64" "x32") \ |
115 |
+ --os=linux \ |
116 |
+ "${myconf[@]}" \ |
117 |
+ gmake || die "Premake failed" |
118 |
+} |
119 |
+ |
120 |
+src_compile() { |
121 |
+ tc-export AR |
122 |
+ |
123 |
+ # build bundled and patched spidermonkey |
124 |
+ cd libraries/source/spidermonkey || die |
125 |
+ JOBS="${MAKEOPTS}" ./build.sh || die |
126 |
+ cd "${S}" || die |
127 |
+ |
128 |
+ # build 3rd party fcollada |
129 |
+ emake -C libraries/source/fcollada/src |
130 |
+ |
131 |
+ # build 0ad |
132 |
+ emake -C build/workspaces/gcc verbose=1 |
133 |
+} |
134 |
+ |
135 |
+src_test() { |
136 |
+ cd binaries/system || die |
137 |
+ ./test -libdir "${S}/binaries/system" || die "test phase failed" |
138 |
+} |
139 |
+ |
140 |
+src_install() { |
141 |
+ newbin binaries/system/pyrogenesis 0ad |
142 |
+ use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor |
143 |
+ |
144 |
+ insinto /usr/share/${PN} |
145 |
+ doins -r binaries/data/l10n |
146 |
+ |
147 |
+ exeinto /usr/$(get_libdir)/${PN} |
148 |
+ doexe binaries/system/libCollada.so |
149 |
+ doexe libraries/source/spidermonkey/lib/*.so |
150 |
+ use editor && doexe binaries/system/libAtlasUI.so |
151 |
+ |
152 |
+ dodoc binaries/system/readme.txt |
153 |
+ doicon -s 128 build/resources/${PN}.png |
154 |
+ make_desktop_entry ${PN} |
155 |
+} |
156 |
+ |
157 |
+pkg_preinst() { |
158 |
+ gnome2_icon_savelist |
159 |
+} |
160 |
+ |
161 |
+pkg_postinst() { |
162 |
+ gnome2_icon_cache_update |
163 |
+} |
164 |
+ |
165 |
+pkg_postrm() { |
166 |
+ gnome2_icon_cache_update |
167 |
+} |
168 |
|
169 |
diff --git a/games-strategy/0ad/Manifest b/games-strategy/0ad/Manifest |
170 |
index d7fbed78d56..616caf97e65 100644 |
171 |
--- a/games-strategy/0ad/Manifest |
172 |
+++ b/games-strategy/0ad/Manifest |
173 |
@@ -1,2 +1,3 @@ |
174 |
DIST 0ad-0.0.20-alpha-unix-build.tar.xz 25610932 SHA256 a396d5cb37057ddd3cd523434f70c56be21588a2228443e7508d2b2d610fc68e SHA512 786f92b74c2e0c64c07ef2f5578dcb5c753fb4fed7238d385bca23549805fcfaeecb9bfbfae809a2ac09a7dfc804455237346588099db347c28a3ff0ae284c43 WHIRLPOOL 2d4b4e96dcb80e265cbbbddfe3b52e72110a419713f6644a68d2a9d499ffc57f03d5b68e612d00ccd889ec9a19609b968af450b228ef586d9567bd16cbc76fcb |
175 |
DIST 0ad-0.0.21-alpha-unix-build.tar.xz 29196476 SHA256 96be23e4284a3931ef9536f988f2517040bde1f8700ee048bff18c932d8683cf SHA512 68f3586375f7dcbf3dfb6476040b8b43da8e2ea1e74947223ff5c9936b54a93caef919d8982d78c6f4ad01ee8f707b38a2c37cdab88ea5c5408544364cff4c37 WHIRLPOOL 8e72c2c3311169eabab5a8a028ffc90b8d6838f72d23ebbac3e5331a7f9434bbe7cae8cf0f5a97bf30b913f7f7f737d264aaf86298f8f65c81a270b0c4e5f871 |
176 |
+DIST 0ad-0.0.22-alpha-unix-build.tar.xz 29199308 SHA256 fddd36df4fd32b5b31fd8871bc5ed3ec71a921de79517fb6199ba7571ec9f5b1 SHA512 3f917e77c6cc1d3fb585c98950db6eab3f5895ba3db41a8737f8172c769b5582689b436cab31eeafecce0e9639ee456afc7b78ebb03435b06512eb9fe7393771 WHIRLPOOL ae33f4f77cb981a0e8f00969c6b1ee05a2f06bacb70f79bfac74fda383bffedd4c6027370d5003e3d7815d5c68e13308b3553d8810bc69eebee143231968e95c |