Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/pyfa/files/, games-util/pyfa/
Date: Tue, 28 Jan 2020 20:40:42
Message-Id: 1580244022.7571a51110b17a1b72731b69a9462005543c2e78.mgorny@gentoo
1 commit: 7571a51110b17a1b72731b69a9462005543c2e78
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 28 20:20:18 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 28 20:40:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7571a511
7
8 games-util/pyfa: Remove old (drop to ~arch)
9
10 Bug: https://bugs.gentoo.org/705524
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 games-util/pyfa/Manifest | 4 -
14 .../pyfa/files/pyfa-1.33.1-import-pyfa.patch | 28 ------
15 games-util/pyfa/files/pyfa-1.33.1-staticdata.patch | 59 ------------
16 games-util/pyfa/pyfa-1.34.0.ebuild | 102 ---------------------
17 games-util/pyfa/pyfa-1.35.0.ebuild | 102 ---------------------
18 games-util/pyfa/pyfa-1.35.1.ebuild | 102 ---------------------
19 games-util/pyfa/pyfa-1.37.0.ebuild | 97 --------------------
20 7 files changed, 494 deletions(-)
21
22 diff --git a/games-util/pyfa/Manifest b/games-util/pyfa/Manifest
23 index c7565866dbb..ad67c82a82c 100644
24 --- a/games-util/pyfa/Manifest
25 +++ b/games-util/pyfa/Manifest
26 @@ -1,6 +1,2 @@
27 -DIST pyfa-1.34.0.tar.gz 8629709 BLAKE2B 5b16296b675383a446bb21133c9e83726a92beb221babbf8fbe4b19f0f7e95bb19fd6050a5c2e3d5e602df4bbb83debfeefd6ec7efdbff35a47934ef9b29979f SHA512 4642efd4de5be4add3c3f994d7be9dbeeb231fe86229f7944d52f265527c7a79698d3da5ccac3018e02c6000b0da888ad0e64382e12f74b7dd7b3398e7bb2d48
28 -DIST pyfa-1.35.0.tar.gz 8743938 BLAKE2B 623a70ea8d28c41f94b5c54c3b8b57ddc6b6604f0eccaa1d9716f8b47295bfca12e2db068d3283448b2a6719a3ef73c74d42a98550a1b062e93e6d1091a45797 SHA512 28b3294e8c1d611402d4123d184d6ddf57886a51264fc25529ca3e0cd8af6d41dbe28b15c4714e591f940427651249761db8d2353006b169d358974bc691f121
29 -DIST pyfa-1.35.1.tar.gz 8746324 BLAKE2B f224f78c97f15d37e2276512541985bfd2ae80c031233261837cd142eddc16a853688a4f1f1f8684736f757d60fd57c41fb14987f336274b2284bd1de26239b3 SHA512 6da5e2d3351157f35c32c7b210d8bfb86a9dc2ea3a3df02449950c498ffabecff3a48fe38086dce75ec5a2cc2549dd28b474015edc0ea01c56a2ff58d1ba3f69
30 -DIST pyfa-1.37.0.tar.gz 8795428 BLAKE2B 33aa0159b41fe2f228be13788f4e91933205a1883af229ffa97af0816dbce307fa8ce9ebc53b335a99decb84f9a28e83b977daf3c600df1cdd0336ba2c413ba3 SHA512 21094a1c374a60447e38261762ee13cd212f6af5f8d757c8b626774fb5a10d10e99267da1311d3164664b62169edd2772519a7b4ebd7414db2493f5121df5c8c
31 DIST pyfa-2.14.1.tar.gz 14452477 BLAKE2B e4c688cff14eecaa71f86fb9e22f6a585a3136a4bd7df65c8dd65ed82c2aa9e530210134daaba25251df92dc55a7e538474b39c1d54e4bcb1817eac17791d517 SHA512 d3d3219fa37f44c81d85165c7e780261e149b47db147417ea26edaff448484ce565607aded714a4f44ca23b8c1586c8597ace856020c4c319cea6d39f353b140
32 DIST pyfa-2.15.1.tar.gz 14516568 BLAKE2B ba3b1170f35681ab33bece447b4bdf563c8f964037dc6b35cbd23360f7e36c61dd9074e34b5648c7a04b59ad192f5babd75ce2a935940a52e62de8cc174f7e5b SHA512 2d8fcb8608e31c135b8dac7239afe0a5acb0d32fba1291ce6ebafe093ef232c08f0aa42d172ebac5beefb7dba47aad9eb3833c679e3d02edc9cc056739c7538b
33
34 diff --git a/games-util/pyfa/files/pyfa-1.33.1-import-pyfa.patch b/games-util/pyfa/files/pyfa-1.33.1-import-pyfa.patch
35 deleted file mode 100644
36 index 0c71ce69f72..00000000000
37 --- a/games-util/pyfa/files/pyfa-1.33.1-import-pyfa.patch
38 +++ /dev/null
39 @@ -1,28 +0,0 @@
40 -From c35467378232b1b21cca304f5dba37c687e51bca Mon Sep 17 00:00:00 2001
41 -From: Andreas Zuber <zuber@××××××.ch>
42 -Date: Mon, 30 Oct 2017 09:52:32 +0100
43 -Subject: [PATCH 2/3] import pyfa
44 -
45 -Append $(python_get_sitedir)/pyfa to import path
46 -
47 -Ensures that pyfa's import statements continue to work for systemwide
48 -installation.
49 ----
50 - pyfa.py | 1 +
51 - 1 file changed, 1 insertion(+)
52 -
53 -diff --git a/pyfa.py b/pyfa.py
54 -index 4faa1edd..9cfa5e23 100755
55 ---- a/pyfa.py
56 -+++ b/pyfa.py
57 -@@ -23,6 +23,7 @@ import os
58 - import platform
59 - import re
60 - import sys
61 -+sys.path.append(os.path.join("%%SITEDIR%%", "pyfa"))
62 - import traceback
63 - from optparse import AmbiguousOptionError, BadOptionError, OptionParser
64 -
65 ---
66 -2.14.3
67 -
68
69 diff --git a/games-util/pyfa/files/pyfa-1.33.1-staticdata.patch b/games-util/pyfa/files/pyfa-1.33.1-staticdata.patch
70 deleted file mode 100644
71 index 76a705e2c83..00000000000
72 --- a/games-util/pyfa/files/pyfa-1.33.1-staticdata.patch
73 +++ /dev/null
74 @@ -1,59 +0,0 @@
75 -From 54f0cd42c6f022e010c63ba7b1f123f78001b490 Mon Sep 17 00:00:00 2001
76 -From: Andreas Zuber <zuber@××××××.ch>
77 -Date: Mon, 30 Oct 2017 09:53:31 +0100
78 -Subject: [PATCH 3/3] staticdata
79 -
80 -make gameDB and imgs.zip paths settable from configforced
81 ----
82 - config.py | 7 +++++++
83 - gui/bitmapLoader.py | 2 +-
84 - 2 files changed, 8 insertions(+), 1 deletion(-)
85 -
86 -diff --git a/config.py b/config.py
87 -index b15c30a3..a5a07acb 100644
88 ---- a/config.py
89 -+++ b/config.py
90 -@@ -30,6 +30,7 @@ savePath = None
91 - saveDB = None
92 - gameDB = None
93 - logPath = None
94 -+imgsZIP = None
95 -
96 -
97 - def isFrozen():
98 -@@ -61,6 +62,7 @@ def defPaths(customSavePath):
99 - global savePath
100 - global saveDB
101 - global gameDB
102 -+ global imgsZIP
103 - global saveInRoot
104 -
105 - pyfalog.debug("Configuring Pyfa")
106 -@@ -100,6 +102,11 @@ def defPaths(customSavePath):
107 - if not gameDB:
108 - gameDB = os.path.join(pyfaPath, "eve.db")
109 -
110 -+ imgsZIP = getattr(configforced, "imgsZIP", imgsZIP)
111 -+ if not imgsZIP:
112 -+ imgsZIP = os.path.join(pyfaPath, "imgs.zip")
113 -+
114 -+
115 - # DON'T MODIFY ANYTHING BELOW
116 - import eos.config
117 -
118 -diff --git a/gui/bitmapLoader.py b/gui/bitmapLoader.py
119 -index eb53b1f1..86036001 100644
120 ---- a/gui/bitmapLoader.py
121 -+++ b/gui/bitmapLoader.py
122 -@@ -37,7 +37,7 @@ except ImportError:
123 -
124 - class BitmapLoader(object):
125 - try:
126 -- archive = zipfile.ZipFile(os.path.join(config.pyfaPath, 'imgs.zip'), 'r')
127 -+ archive = zipfile.ZipFile(config.imgsZIP, 'r')
128 - logging.info("Using zipped image files.")
129 - except IOError:
130 - logging.info("Using local image files.")
131 ---
132 -2.14.3
133 -
134
135 diff --git a/games-util/pyfa/pyfa-1.34.0.ebuild b/games-util/pyfa/pyfa-1.34.0.ebuild
136 deleted file mode 100644
137 index d95e2cc0493..00000000000
138 --- a/games-util/pyfa/pyfa-1.34.0.ebuild
139 +++ /dev/null
140 @@ -1,102 +0,0 @@
141 -# Copyright 1999-2019 Gentoo Authors
142 -# Distributed under the terms of the GNU General Public License v2
143 -
144 -EAPI="6"
145 -PYTHON_COMPAT=( python2_7 )
146 -PYTHON_REQ_USE="sqlite,threads"
147 -
148 -inherit eutils gnome2-utils python-r1
149 -
150 -DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
151 -HOMEPAGE="https://github.com/pyfa-org/Pyfa"
152 -
153 -LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 all-rights-reserved"
154 -SLOT="0"
155 -if [[ ${PV} = 9999 ]]; then
156 - EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git"
157 - inherit git-r3
158 - KEYWORDS="amd64 x86"
159 -else
160 - SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz"
161 - KEYWORDS="amd64 x86"
162 -fi
163 -IUSE="+graph"
164 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
165 -RESTRICT="mirror bindist"
166 -
167 -RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]
168 - >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
169 - dev-python/wxpython:3.0[${PYTHON_USEDEP}]
170 - >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}]
171 - dev-python/requests[${PYTHON_USEDEP}]
172 - graph? (
173 - dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
174 - dev-python/numpy[${PYTHON_USEDEP}] )
175 - ${PYTHON_DEPS}"
176 -DEPEND="app-arch/zip"
177 -
178 -[[ ${PV} = 9999 ]] || S=${WORKDIR}/Pyfa-${PV}
179 -
180 -src_prepare() {
181 - # get rid of CRLF line endings introduced in 1.1.10 so patches work
182 - edos2unix config.py pyfa.py gui/bitmapLoader.py service/settings.py
183 -
184 - # load gameDB and images from separate staticdata directory
185 - eapply "${FILESDIR}/${PN}-1.33.1-staticdata.patch"
186 -
187 - # fix import path in the main script for systemwide installation
188 - eapply "${FILESDIR}/${PN}-1.33.1-import-pyfa.patch"
189 -
190 - eapply_user
191 -
192 - touch __init__.py
193 -
194 - pyfa_make_configforced() {
195 - mkdir -p "${BUILD_DIR}" || die
196 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
197 - -e "s:%%EPREFIX%%:${EPREFIX}:" \
198 - "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py"
199 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
200 - pyfa.py > "${BUILD_DIR}/pyfa"
201 - }
202 - python_foreach_impl pyfa_make_configforced
203 -}
204 -
205 -src_install() {
206 - pyfa_py_install() {
207 - local packagedir=$(python_get_sitedir)/${PN}
208 - insinto "${packagedir}"
209 - doins -r eos gui service utils config*.py __init__.py
210 - [[ -e info.py ]] && doins info.py # only in zip releases
211 - doins "${BUILD_DIR}/configforced.py"
212 - python_doscript "${BUILD_DIR}/pyfa"
213 - python_optimize
214 - }
215 - python_foreach_impl pyfa_py_install
216 -
217 - insinto /usr/share/${PN}
218 - doins eve.db
219 -
220 - einfo "Compressing images ..."
221 - pushd imgs > /dev/null || die
222 - zip -r imgs.zip * || die "zip failed"
223 - doins imgs.zip
224 - popd > /dev/null || die
225 -
226 - dodoc README.md
227 - doicon -s 32 imgs/gui/pyfa.png
228 - newicon -s 64 imgs/gui/pyfa64.png pyfa.png
229 - domenu "${FILESDIR}/${PN}.desktop"
230 -}
231 -
232 -pkg_preinst() {
233 - gnome2_icon_savelist
234 -}
235 -
236 -pkg_postinst() {
237 - gnome2_icon_cache_update
238 -}
239 -
240 -pkg_postrm() {
241 - gnome2_icon_cache_update
242 -}
243
244 diff --git a/games-util/pyfa/pyfa-1.35.0.ebuild b/games-util/pyfa/pyfa-1.35.0.ebuild
245 deleted file mode 100644
246 index c0429060cc7..00000000000
247 --- a/games-util/pyfa/pyfa-1.35.0.ebuild
248 +++ /dev/null
249 @@ -1,102 +0,0 @@
250 -# Copyright 1999-2019 Gentoo Authors
251 -# Distributed under the terms of the GNU General Public License v2
252 -
253 -EAPI="6"
254 -PYTHON_COMPAT=( python2_7 )
255 -PYTHON_REQ_USE="sqlite,threads"
256 -
257 -inherit eutils gnome2-utils python-r1
258 -
259 -DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
260 -HOMEPAGE="https://github.com/pyfa-org/Pyfa"
261 -
262 -LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 all-rights-reserved"
263 -SLOT="0"
264 -if [[ ${PV} = 9999 ]]; then
265 - EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git"
266 - inherit git-r3
267 - KEYWORDS="x86"
268 -else
269 - SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz"
270 - KEYWORDS="~amd64 ~x86"
271 -fi
272 -IUSE="+graph"
273 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
274 -RESTRICT="mirror bindist"
275 -
276 -RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]
277 - >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
278 - dev-python/wxpython:3.0[${PYTHON_USEDEP}]
279 - >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}]
280 - dev-python/requests[${PYTHON_USEDEP}]
281 - graph? (
282 - dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
283 - dev-python/numpy[${PYTHON_USEDEP}] )
284 - ${PYTHON_DEPS}"
285 -DEPEND="app-arch/zip"
286 -
287 -[[ ${PV} = 9999 ]] || S=${WORKDIR}/Pyfa-${PV}
288 -
289 -src_prepare() {
290 - # get rid of CRLF line endings introduced in 1.1.10 so patches work
291 - edos2unix config.py pyfa.py gui/bitmapLoader.py service/settings.py
292 -
293 - # load gameDB and images from separate staticdata directory
294 - eapply "${FILESDIR}/${PN}-1.33.1-staticdata.patch"
295 -
296 - # fix import path in the main script for systemwide installation
297 - eapply "${FILESDIR}/${PN}-1.33.1-import-pyfa.patch"
298 -
299 - eapply_user
300 -
301 - touch __init__.py
302 -
303 - pyfa_make_configforced() {
304 - mkdir -p "${BUILD_DIR}" || die
305 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
306 - -e "s:%%EPREFIX%%:${EPREFIX}:" \
307 - "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py"
308 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
309 - pyfa.py > "${BUILD_DIR}/pyfa"
310 - }
311 - python_foreach_impl pyfa_make_configforced
312 -}
313 -
314 -src_install() {
315 - pyfa_py_install() {
316 - local packagedir=$(python_get_sitedir)/${PN}
317 - insinto "${packagedir}"
318 - doins -r eos gui service utils config*.py __init__.py
319 - [[ -e info.py ]] && doins info.py # only in zip releases
320 - doins "${BUILD_DIR}/configforced.py"
321 - python_doscript "${BUILD_DIR}/pyfa"
322 - python_optimize
323 - }
324 - python_foreach_impl pyfa_py_install
325 -
326 - insinto /usr/share/${PN}
327 - doins eve.db
328 -
329 - einfo "Compressing images ..."
330 - pushd imgs > /dev/null || die
331 - zip -r imgs.zip * || die "zip failed"
332 - doins imgs.zip
333 - popd > /dev/null || die
334 -
335 - dodoc README.md
336 - doicon -s 32 imgs/gui/pyfa.png
337 - newicon -s 64 imgs/gui/pyfa64.png pyfa.png
338 - domenu "${FILESDIR}/${PN}.desktop"
339 -}
340 -
341 -pkg_preinst() {
342 - gnome2_icon_savelist
343 -}
344 -
345 -pkg_postinst() {
346 - gnome2_icon_cache_update
347 -}
348 -
349 -pkg_postrm() {
350 - gnome2_icon_cache_update
351 -}
352
353 diff --git a/games-util/pyfa/pyfa-1.35.1.ebuild b/games-util/pyfa/pyfa-1.35.1.ebuild
354 deleted file mode 100644
355 index c0429060cc7..00000000000
356 --- a/games-util/pyfa/pyfa-1.35.1.ebuild
357 +++ /dev/null
358 @@ -1,102 +0,0 @@
359 -# Copyright 1999-2019 Gentoo Authors
360 -# Distributed under the terms of the GNU General Public License v2
361 -
362 -EAPI="6"
363 -PYTHON_COMPAT=( python2_7 )
364 -PYTHON_REQ_USE="sqlite,threads"
365 -
366 -inherit eutils gnome2-utils python-r1
367 -
368 -DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
369 -HOMEPAGE="https://github.com/pyfa-org/Pyfa"
370 -
371 -LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 all-rights-reserved"
372 -SLOT="0"
373 -if [[ ${PV} = 9999 ]]; then
374 - EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git"
375 - inherit git-r3
376 - KEYWORDS="x86"
377 -else
378 - SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz"
379 - KEYWORDS="~amd64 ~x86"
380 -fi
381 -IUSE="+graph"
382 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
383 -RESTRICT="mirror bindist"
384 -
385 -RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]
386 - >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
387 - dev-python/wxpython:3.0[${PYTHON_USEDEP}]
388 - >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}]
389 - dev-python/requests[${PYTHON_USEDEP}]
390 - graph? (
391 - dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
392 - dev-python/numpy[${PYTHON_USEDEP}] )
393 - ${PYTHON_DEPS}"
394 -DEPEND="app-arch/zip"
395 -
396 -[[ ${PV} = 9999 ]] || S=${WORKDIR}/Pyfa-${PV}
397 -
398 -src_prepare() {
399 - # get rid of CRLF line endings introduced in 1.1.10 so patches work
400 - edos2unix config.py pyfa.py gui/bitmapLoader.py service/settings.py
401 -
402 - # load gameDB and images from separate staticdata directory
403 - eapply "${FILESDIR}/${PN}-1.33.1-staticdata.patch"
404 -
405 - # fix import path in the main script for systemwide installation
406 - eapply "${FILESDIR}/${PN}-1.33.1-import-pyfa.patch"
407 -
408 - eapply_user
409 -
410 - touch __init__.py
411 -
412 - pyfa_make_configforced() {
413 - mkdir -p "${BUILD_DIR}" || die
414 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
415 - -e "s:%%EPREFIX%%:${EPREFIX}:" \
416 - "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py"
417 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
418 - pyfa.py > "${BUILD_DIR}/pyfa"
419 - }
420 - python_foreach_impl pyfa_make_configforced
421 -}
422 -
423 -src_install() {
424 - pyfa_py_install() {
425 - local packagedir=$(python_get_sitedir)/${PN}
426 - insinto "${packagedir}"
427 - doins -r eos gui service utils config*.py __init__.py
428 - [[ -e info.py ]] && doins info.py # only in zip releases
429 - doins "${BUILD_DIR}/configforced.py"
430 - python_doscript "${BUILD_DIR}/pyfa"
431 - python_optimize
432 - }
433 - python_foreach_impl pyfa_py_install
434 -
435 - insinto /usr/share/${PN}
436 - doins eve.db
437 -
438 - einfo "Compressing images ..."
439 - pushd imgs > /dev/null || die
440 - zip -r imgs.zip * || die "zip failed"
441 - doins imgs.zip
442 - popd > /dev/null || die
443 -
444 - dodoc README.md
445 - doicon -s 32 imgs/gui/pyfa.png
446 - newicon -s 64 imgs/gui/pyfa64.png pyfa.png
447 - domenu "${FILESDIR}/${PN}.desktop"
448 -}
449 -
450 -pkg_preinst() {
451 - gnome2_icon_savelist
452 -}
453 -
454 -pkg_postinst() {
455 - gnome2_icon_cache_update
456 -}
457 -
458 -pkg_postrm() {
459 - gnome2_icon_cache_update
460 -}
461
462 diff --git a/games-util/pyfa/pyfa-1.37.0.ebuild b/games-util/pyfa/pyfa-1.37.0.ebuild
463 deleted file mode 100644
464 index a366235de53..00000000000
465 --- a/games-util/pyfa/pyfa-1.37.0.ebuild
466 +++ /dev/null
467 @@ -1,97 +0,0 @@
468 -# Copyright 1999-2019 Gentoo Authors
469 -# Distributed under the terms of the GNU General Public License v2
470 -
471 -EAPI="6"
472 -PYTHON_COMPAT=( python2_7 )
473 -PYTHON_REQ_USE="sqlite,threads"
474 -
475 -inherit desktop eutils gnome2-utils python-r1
476 -
477 -DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
478 -HOMEPAGE="https://github.com/pyfa-org/Pyfa"
479 -
480 -LICENSE="GPL-3+ all-rights-reserved"
481 -SLOT="0"
482 -if [[ ${PV} = 9999 ]]; then
483 - EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git"
484 - inherit git-r3
485 - KEYWORDS=""
486 -else
487 - SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
488 - KEYWORDS="~amd64 ~x86"
489 -fi
490 -IUSE="+graph"
491 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
492 -RESTRICT="mirror bindist"
493 -
494 -RDEPEND="
495 - >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}]
496 - dev-python/python-dateutil[${PYTHON_USEDEP}]
497 - dev-python/requests[${PYTHON_USEDEP}]
498 - >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
499 - dev-python/wxpython:3.0[${PYTHON_USEDEP}]
500 - graph? (
501 - dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
502 - dev-python/numpy[${PYTHON_USEDEP}] )
503 - ${PYTHON_DEPS}"
504 -DEPEND="app-arch/zip"
505 -
506 -[[ ${PV} = 9999 ]] || S=${WORKDIR}/Pyfa-${PV}
507 -
508 -src_prepare() {
509 - # get rid of CRLF line endings introduced in 1.1.10 so patches work
510 - edos2unix config.py pyfa.py gui/bitmapLoader.py service/settings.py
511 -
512 - # load gameDB and images from separate staticdata directory
513 - eapply "${FILESDIR}/${PN}-1.33.1-staticdata.patch"
514 -
515 - # fix import path in the main script for systemwide installation
516 - eapply "${FILESDIR}/${PN}-1.33.1-import-pyfa.patch"
517 -
518 - eapply_user
519 -
520 - # make python recognize pyfa as a package
521 - touch __init__.py || die
522 -
523 - pyfa_make_configforced() {
524 - mkdir -p "${BUILD_DIR}" || die
525 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
526 - -e "s:%%EPREFIX%%:${EPREFIX}:" \
527 - "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py" || die
528 - sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
529 - pyfa.py > "${BUILD_DIR}/pyfa" || die
530 - }
531 - python_foreach_impl pyfa_make_configforced
532 -}
533 -
534 -src_install() {
535 - pyfa_py_install() {
536 - python_moduleinto ${PN}
537 - python_domodule eos gui service utils config*.py __init__.py
538 - python_domodule "${BUILD_DIR}/configforced.py"
539 - python_doscript "${BUILD_DIR}/pyfa"
540 - }
541 - python_foreach_impl pyfa_py_install
542 -
543 - insinto /usr/share/${PN}
544 - doins eve.db
545 -
546 - einfo "Compressing images ..."
547 - pushd imgs > /dev/null || die
548 - zip -r imgs.zip * || die "zip failed"
549 - doins imgs.zip
550 - popd > /dev/null || die
551 -
552 - dodoc README.md
553 - doicon -s 32 imgs/gui/pyfa.png
554 - newicon -s 64 imgs/gui/pyfa64.png pyfa.png
555 - domenu "${FILESDIR}/${PN}.desktop"
556 -}
557 -
558 -pkg_postinst() {
559 - gnome2_icon_cache_update
560 -}
561 -
562 -pkg_postrm() {
563 - gnome2_icon_cache_update
564 -}