Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/0ad/
Date: Wed, 31 Oct 2018 08:29:21
Message-Id: 1540973583.44d0bfd3972a9aa9114d162e3bc8a27cb4ca4303.polynomial-c@gentoo
1 commit: 44d0bfd3972a9aa9114d162e3bc8a27cb4ca4303
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 31 08:13:03 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 31 08:13:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d0bfd3
7
8 games-strategy/0ad: Removed old.
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 games-strategy/0ad/0ad-0.0.22_alpha.ebuild | 146 -----------------------------
14 games-strategy/0ad/Manifest | 1 -
15 2 files changed, 147 deletions(-)
16
17 diff --git a/games-strategy/0ad/0ad-0.0.22_alpha.ebuild b/games-strategy/0ad/0ad-0.0.22_alpha.ebuild
18 deleted file mode 100644
19 index 1cb088436b4..00000000000
20 --- a/games-strategy/0ad/0ad-0.0.22_alpha.ebuild
21 +++ /dev/null
22 @@ -1,146 +0,0 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
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
34 -
35 -MY_P=0ad-${PV/_/-}
36 -DESCRIPTION="A free, real-time strategy game"
37 -HOMEPAGE="https://play0ad.com/"
38 -SRC_URI="http://releases.wildfiregames.com/${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 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 - media-libs/libvorbis
55 - media-libs/openal
56 - net-libs/enet:1.3
57 - net-libs/miniupnpc:=
58 - net-misc/curl
59 - sys-libs/zlib
60 - virtual/jpeg:0
61 - virtual/opengl
62 - x11-libs/libX11
63 - x11-libs/libXcursor
64 - editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
65 - lobby? ( >=net-libs/gloox-1.0.20 )
66 - nvtt? ( media-gfx/nvidia-texture-tools )"
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 - python-any-r1_pkg_setup
76 - use editor && setup-wxwidgets
77 -}
78 -
79 -PATCHES=(
80 - "${FILESDIR}"/${PN}-0.0.21_alpha-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 editor "--atlas" "")
92 - $(usex lobby "" "--without-lobby")
93 - --collada
94 - --bindir="/usr/bin"
95 - --libdir="/usr/$(get_libdir)"/${PN}
96 - --datadir="/usr/share/${PN}"
97 - )
98 -
99 - # stock premake4 does not work, use the shipped one
100 - emake -C "${S}"/build/premake/premake4/build/gmake.unix
101 -
102 - # regenerate scripts.c so our patch applies
103 - cd "${S}"/build/premake/premake4 || die
104 - "${S}"/build/premake/premake4/bin/release/premake4 embed || die
105 -
106 - # rebuild premake again... this is the most stupid build system
107 - emake -C "${S}"/build/premake/premake4/build/gmake.unix clean
108 - emake -C "${S}"/build/premake/premake4/build/gmake.unix
109 -
110 - # run premake to create build scripts
111 - cd "${S}"/build/premake || die
112 - "${S}"/build/premake/premake4/bin/release/premake4 \
113 - --file="premake4.lua" \
114 - --outpath="../workspaces/gcc/" \
115 - --platform=$(usex amd64 "x64" "x32") \
116 - --os=linux \
117 - "${myconf[@]}" \
118 - gmake || die "Premake failed"
119 -}
120 -
121 -src_compile() {
122 - tc-export AR
123 -
124 - # build bundled and patched spidermonkey
125 - cd libraries/source/spidermonkey || die
126 - JOBS="${MAKEOPTS}" ./build.sh || die
127 - cd "${S}" || die
128 -
129 - # build 3rd party fcollada
130 - emake -C libraries/source/fcollada/src
131 -
132 - # build 0ad
133 - emake -C build/workspaces/gcc verbose=1
134 -}
135 -
136 -src_test() {
137 - cd binaries/system || die
138 - ./test -libdir "${S}/binaries/system" || die "test phase failed"
139 -}
140 -
141 -src_install() {
142 - newbin binaries/system/pyrogenesis 0ad
143 - use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor
144 -
145 - insinto /usr/share/${PN}
146 - doins -r binaries/data/l10n
147 -
148 - exeinto /usr/$(get_libdir)/${PN}
149 - doexe binaries/system/libCollada.so
150 - doexe libraries/source/spidermonkey/lib/*.so
151 - use editor && doexe binaries/system/libAtlasUI.so
152 -
153 - dodoc binaries/system/readme.txt
154 - doicon -s 128 build/resources/${PN}.png
155 - make_desktop_entry ${PN}
156 -}
157 -
158 -pkg_preinst() {
159 - gnome2_icon_savelist
160 -}
161 -
162 -pkg_postinst() {
163 - gnome2_icon_cache_update
164 -}
165 -
166 -pkg_postrm() {
167 - gnome2_icon_cache_update
168 -}
169
170 diff --git a/games-strategy/0ad/Manifest b/games-strategy/0ad/Manifest
171 index a8e495c7706..30284e61a66 100644
172 --- a/games-strategy/0ad/Manifest
173 +++ b/games-strategy/0ad/Manifest
174 @@ -1,2 +1 @@
175 -DIST 0ad-0.0.22-alpha-unix-build.tar.xz 29199308 BLAKE2B a9204949e4dd669228b2a0e2c2dc5d2ccd4f18767e32c4f772714c61314ca0fb283d41201cb9f0547588a6dbdc20fd9d7d14ff153bc3087003c27f4ec2f6fef9 SHA512 3f917e77c6cc1d3fb585c98950db6eab3f5895ba3db41a8737f8172c769b5582689b436cab31eeafecce0e9639ee456afc7b78ebb03435b06512eb9fe7393771
176 DIST 0ad-0.0.23-alpha-unix-build.tar.xz 31907988 BLAKE2B 567b9e1b5cd653206194e042f4f0859cd4f9afe75d52d3f480a328b76fdcdd746254502fbf284f790b4932c912ff31453bbc8c986c879ad76baa3d2a5db802c9 SHA512 4a1c86b19e0d8ec7d9b8bf75428df0255f95e7f991f419734f9b6ddc288a537405a34c5d7081f1a97475155c49013af85dee5c0265c35c7dbc003b46637a03d7