Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: dev-games/netradiant/
Date: Mon, 10 Feb 2020 18:11:37
Message-Id: 1581358273.6c9be387d23070ad14e4aad6feac79cfa58f9ee7.winterheart@gentoo
1 commit: 6c9be387d23070ad14e4aad6feac79cfa58f9ee7
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 10 18:03:04 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Mon Feb 10 18:11:13 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=6c9be387
7
8 dev-games/netradiant: remove live version
9
10 Cannot build, deprecated eclass
11
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14
15 dev-games/netradiant/metadata.xml | 2 -
16 dev-games/netradiant/netradiant-9999.ebuild | 254 ----------------------------
17 2 files changed, 256 deletions(-)
18
19 diff --git a/dev-games/netradiant/metadata.xml b/dev-games/netradiant/metadata.xml
20 index b9a2cb3..2354e25 100644
21 --- a/dev-games/netradiant/metadata.xml
22 +++ b/dev-games/netradiant/metadata.xml
23 @@ -18,9 +18,7 @@
24 <flag name='quake1'>Install Quake non GPL pack</flag>
25 <flag name='quake2'>Install Quake2 non GPL pack</flag>
26 <flag name='quake2world'>Install Quake2World pack</flag>
27 - <flag name='quake3'>Install Quake3 non GPL pack</flag>
28 <flag name='tremulous'>Install Tremulous non GPL pack</flag>
29 - <flag name='ufoai'>Install UFO: Alien Invasion non GPL pack</flag>
30 <flag name='warsow'>Install Warsow pack</flag>
31 <flag name='xonotic'>Install Xonotic pack</flag>
32 </use>
33
34 diff --git a/dev-games/netradiant/netradiant-9999.ebuild b/dev-games/netradiant/netradiant-9999.ebuild
35 deleted file mode 100644
36 index ee621d1..0000000
37 --- a/dev-games/netradiant/netradiant-9999.ebuild
38 +++ /dev/null
39 @@ -1,254 +0,0 @@
40 -# Copyright 1999-2018 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=4
44 -
45 -EGIT_NOUNPACK="true"
46 -ESVN_DISABLE_DEPENDENCIES="true"
47 -ESVN_OPTIONS="--trust-server-cert --non-interactive"
48 -
49 -inherit eutils multilib toolchain-funcs subversion git-2
50 -
51 -RADIANT_MAJOR_VERSION="5"
52 -RADIANT_MINOR_VERSION="0"
53 -DESCRIPTION="NetRadiant is a fork of map editor for Q3 based games, GtkRadiant 1.5"
54 -HOMEPAGE="http://dev.alientrap.org/projects/netradiant"
55 -EGIT_REPO_URI="git://git.xonotic.org/xonotic/netradiant.git"
56 -BASE_ZIP_URI="http://ingar.satgnu.net/files/gtkradiant/gamepacks/"
57 -SRC_URI="
58 - osirion? ( ${BASE_ZIP_URI}/OsirionPack.zip )
59 - quake1? ( ${BASE_ZIP_URI}/Quake1Pack.zip )
60 - warsow? ( ${BASE_ZIP_URI}/WarsowPack.zip )
61 - !bindist? (
62 - openarena? ( ${BASE_ZIP_URI}/OpenArenaPack.zip )
63 - quake2? ( ${BASE_ZIP_URI}/Quake2Pack.zip )
64 - tremulous? ( ${BASE_ZIP_URI}/TremulousPack.zip )
65 - )
66 -"
67 -
68 -LICENSE="GPL-2"
69 -SLOT="0"
70 -KEYWORDS=""
71 -RADIANT_GPL_PACKS="darkplaces nexuiz osirion quake1 quake2world warsow +xonotic"
72 -RADIANT_NONGPL_PACKS="openarena quake2 quake3 tremulous ufoai"
73 -RADIANT_TOOLS="h2data q2map q3data q3map2 qdata3"
74 -RADIANT_PACKS="${RADIANT_GPL_PACKS} ${RADIANT_NONGPL_PACKS}"
75 -RADIANT_BINS=" ${RADIANT_TOOLS} gtk"
76 -IUSE="${RADIANT_PACKS} ${RADIANT_BINS// / +} bindist"
77 -
78 -RDEPEND="
79 - dev-libs/glib:2
80 - dev-libs/libxml2
81 - >=media-libs/libpng-1.2
82 - >=sys-libs/zlib-1.2
83 - gtk? (
84 - >=x11-libs/gtk+-2.4:2
85 - >=x11-libs/gtkglext-1
86 - x11-libs/pango
87 - )
88 - !dev-games/gtkradiant
89 -"
90 -DEPEND="${RDEPEND}
91 - dev-vcs/subversion
92 - virtual/pkgconfig
93 - osirion? ( app-arch/unzip )
94 - quake1? ( app-arch/unzip )
95 - warsow? ( app-arch/unzip )
96 - xonotic? ( net-misc/wget )
97 - !bindist? (
98 - openarena? ( app-arch/unzip )
99 - quake2? ( app-arch/unzip )
100 - tremulous? ( app-arch/unzip )
101 - )
102 -"
103 -WGET="/usr/bin/wget -t 3 -T 60"
104 -
105 -radiant_svn_unpack() {
106 - if use ${1}; then
107 - cd "${WORKDIR}/packs/" || die
108 - ESVN_REPO_URI="${2}" \
109 - ESVN_PROJECT="${PN}-${1}" \
110 - S="${WORKDIR}/packs/${1}" \
111 - subversion_fetch
112 - fi
113 -}
114 -
115 -radiant_zip_unpack() {
116 - if use ${1,,}; then
117 - cd "${WORKDIR}/packs/" || die
118 - unpack "${1}Pack.zip"
119 - mv ${1}Pack ${1,,} || die
120 - fi
121 -}
122 -
123 -pkg_setup() {
124 - targets=""
125 - for i in ${RADIANT_BINS};do
126 - if use $i; then
127 - targets+=" ${i/gtk/radiant}"
128 - fi
129 - done
130 - if [ "x$targets" = "x" ]; then
131 - targets=" q3map2"
132 - ewarn "You disabled all binaries: defaulting to USE=\"q3map2\""
133 - fi
134 -}
135 -
136 -src_unpack() {
137 - git-2_src_unpack
138 -
139 - if use gtk; then
140 - mkdir "${WORKDIR}/packs/" || die
141 -
142 - radiant_svn_unpack darkplaces \
143 - "svn://svn.icculus.org/gtkradiant-gamepacks/DarkPlacesPack/branches/1.5/"
144 - radiant_svn_unpack quake2world \
145 - "svn://jdolan.dyndns.org/quake2world/trunk/gtkradiant"
146 - radiant_zip_unpack Osirion
147 - radiant_zip_unpack Quake1
148 - radiant_zip_unpack Warsow
149 -
150 - if use nexuiz; then
151 - cd "${WORKDIR}/packs/" || die
152 - ewarn "Using \"git archive\" directly for downloading from http://git.xonotic.org/"
153 - ewarn "This might be potential security risk, make sure that you know what you are doing"
154 - git archive \
155 - --remote="git://git.icculus.org/divverent/nexuiz.git" \
156 - --prefix="nexuiz/" \
157 - master:misc/netradiant-NexuizPack \
158 - | tar xvf - 2>/dev/null || die
159 - fi
160 -
161 - if use xonotic; then
162 - unset EGIT_MASTER EGIT_BRANCH EGIT_COMMIT EGIT_PROJECT
163 - EGIT_REPO_URI="git://git.xonotic.org/xonotic/netradiant-xonoticpack.git" \
164 - EGIT_PROJECT="${PN}-xonotic" \
165 - EGIT_SOURCEDIR="${WORKDIR}/packs/xonotic" \
166 - git-2_src_unpack
167 -
168 - cd "${WORKDIR}/packs/xonotic" || die
169 - ewarn "Using \"wget\" directly for downloading from http://git.xonotic.org/"
170 - ewarn "This might be potential security risk, make sure that you know what you are doing"
171 - while IFS=" " read -r FILE URL; do
172 - $WGET -O "$FILE" "$URL" || die
173 - done < "extra-urls.txt"
174 - fi
175 -
176 - if use !bindist; then
177 - MY_RADIANT_PACKS="${RADIANT_GPL_PACKS//+/} ${RADIANT_NONGPL_PACKS}"
178 - radiant_svn_unpack ufoai \
179 - "svn://svn.icculus.org/gtkradiant-gamepacks/UFOAIPack/branches/1.5/"
180 -
181 - radiant_zip_unpack OpenArena
182 - radiant_zip_unpack Quake2
183 - radiant_zip_unpack Tremulous
184 -
185 - if use quake3; then
186 - ESVN_REPO_URI="svn://svn.icculus.org/gtkradiant-gamepacks/Q3Pack/trunk/" \
187 - ESVN_PROJECT="${PN}-quake3" \
188 - ESVN_REVISION="29" \
189 - S="${WORKDIR}/packs/quake3-tmp" \
190 - subversion_fetch
191 - cd "${WORKDIR}/packs/" || die
192 - mv quake3-tmp/tools quake3 || die
193 - rm -rf quake3-tmp || die
194 - fi
195 - else
196 - MY_RADIANT_PACKS="${RADIANT_GPL_PACKS//+/}"
197 - for i in ${RADIANT_NONGPL_PACKS}; do
198 - if use ${i}; then
199 - ewarn "USE bindist disables ${i} non GPL pack"
200 - fi
201 - done
202 - fi
203 - fi
204 -}
205 -
206 -src_prepare() {
207 - sed -e '/$(INSTALLDIR)/s,heretic2/h2data,/h2data,' \
208 - -i Makefile || die
209 -}
210 -
211 -src_configure() {
212 - tc-export CC CXX AR RANLIB
213 -
214 - export TEE_STDERR=""
215 -
216 - # dependencies-check wants gtk
217 - if use gtk; then
218 - emake dependencies-check
219 - fi
220 -}
221 -
222 -src_compile() {
223 - emake ${targets// / binaries-}
224 -}
225 -
226 -src_install() {
227 - insinto /usr/$(get_libdir)/${PN}
228 - doins \
229 - setup/data/tools/q3data.qdt
230 -
231 - dodoc ChangeLog ChangeLog.idsoftware CONTRIBUTORS tools/quake3/q3map2/changelog.q3map{1,2.txt}
232 -
233 - pushd install || die
234 - exeinto /usr/$(get_libdir)/${PN}
235 - for i in ${targets}; do
236 - doexe ${i}.x86
237 - dosym /usr/$(get_libdir)/${PN}/${i}.x86 /usr/bin/${i}
238 - done
239 -
240 - # radiant
241 - if use gtk; then
242 - dosym /usr/$(get_libdir)/${PN}/radiant.x86 /usr/bin/${PN}
243 -
244 - newicon "${S}"/icons/radiant-src.png ${PN}.png
245 - make_desktop_entry ${PN} NetRadiant ${PN} "Development;GTK;"
246 -
247 - # modules
248 - insinto /usr/$(get_libdir)/${PN}/modules
249 - doins modules/*.so
250 -
251 - # plugins
252 - insinto /usr/$(get_libdir)/${PN}/plugins
253 - doins plugins/*.so
254 -
255 - # data
256 - popd || die
257 - echo "$RADIANT_MINOR_VERSION" > RADIANT_MINOR || die
258 - echo "$RADIANT_MAJOR_VERSION" > RADIANT_MAJOR || die
259 - insinto /usr/$(get_libdir)/${PN}
260 - doins -r \
261 - RADIANT_MAJOR \
262 - RADIANT_MINOR \
263 - setup/data/tools/bitmaps \
264 - setup/data/tools/gl \
265 - setup/data/tools/global.xlink \
266 - setup/data/tools/plugins \
267 - docs
268 -
269 - # packs
270 - for x in ${MY_RADIANT_PACKS//+/}; do
271 - if use $x; then
272 - cd "${WORKDIR}"/packs/${x} || die
273 - # USE and dir names differ
274 - n="$(echo $x | sed \
275 - -e 's/^quake/q/' \
276 - -e 's/2world$/2w/' \
277 - -e 's/^openarena/oa/' \
278 - -e 's/^tremulous/trem/' \
279 - )"
280 - insinto /usr/$(get_libdir)/${PN}
281 - doins -r ${n}.game
282 -
283 - insinto /usr/$(get_libdir)/${PN}/games
284 - doins games/${n}.game
285 - fi
286 - done
287 - fi
288 -}
289 -
290 -pkg_preinst() {
291 - # subversion_pkg_preinst seems broken
292 - true
293 -}