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/
Date: Wed, 30 May 2018 13:50:25
Message-Id: 1527687319.2244e83e734765faec77fd1e1080267e39816dfe.mgorny@gentoo
1 commit: 2244e83e734765faec77fd1e1080267e39816dfe
2 Author: Andreas Zuber <a.zuber <AT> gmx <DOT> ch>
3 AuthorDate: Wed May 30 12:27:49 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 30 13:35:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2244e83e
7
8 games-util/pyfa: version bump to 1.37.0
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 games-util/pyfa/Manifest | 1 +
13 games-util/pyfa/pyfa-1.37.0.ebuild | 97 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/games-util/pyfa/Manifest b/games-util/pyfa/Manifest
17 index ecd5ac1c46c..f6708d6328a 100644
18 --- a/games-util/pyfa/Manifest
19 +++ b/games-util/pyfa/Manifest
20 @@ -1,3 +1,4 @@
21 DIST pyfa-1.34.0.tar.gz 8629709 BLAKE2B 5b16296b675383a446bb21133c9e83726a92beb221babbf8fbe4b19f0f7e95bb19fd6050a5c2e3d5e602df4bbb83debfeefd6ec7efdbff35a47934ef9b29979f SHA512 4642efd4de5be4add3c3f994d7be9dbeeb231fe86229f7944d52f265527c7a79698d3da5ccac3018e02c6000b0da888ad0e64382e12f74b7dd7b3398e7bb2d48
22 DIST pyfa-1.35.0.tar.gz 8743938 BLAKE2B 623a70ea8d28c41f94b5c54c3b8b57ddc6b6604f0eccaa1d9716f8b47295bfca12e2db068d3283448b2a6719a3ef73c74d42a98550a1b062e93e6d1091a45797 SHA512 28b3294e8c1d611402d4123d184d6ddf57886a51264fc25529ca3e0cd8af6d41dbe28b15c4714e591f940427651249761db8d2353006b169d358974bc691f121
23 DIST pyfa-1.35.1.tar.gz 8746324 BLAKE2B f224f78c97f15d37e2276512541985bfd2ae80c031233261837cd142eddc16a853688a4f1f1f8684736f757d60fd57c41fb14987f336274b2284bd1de26239b3 SHA512 6da5e2d3351157f35c32c7b210d8bfb86a9dc2ea3a3df02449950c498ffabecff3a48fe38086dce75ec5a2cc2549dd28b474015edc0ea01c56a2ff58d1ba3f69
24 +DIST pyfa-1.37.0.tar.gz 8795428 BLAKE2B 33aa0159b41fe2f228be13788f4e91933205a1883af229ffa97af0816dbce307fa8ce9ebc53b335a99decb84f9a28e83b977daf3c600df1cdd0336ba2c413ba3 SHA512 21094a1c374a60447e38261762ee13cd212f6af5f8d757c8b626774fb5a10d10e99267da1311d3164664b62169edd2772519a7b4ebd7414db2493f5121df5c8c
25
26 diff --git a/games-util/pyfa/pyfa-1.37.0.ebuild b/games-util/pyfa/pyfa-1.37.0.ebuild
27 new file mode 100644
28 index 00000000000..32200ccbee1
29 --- /dev/null
30 +++ b/games-util/pyfa/pyfa-1.37.0.ebuild
31 @@ -0,0 +1,97 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +PYTHON_COMPAT=( python2_7 )
37 +PYTHON_REQ_USE="sqlite,threads"
38 +
39 +inherit desktop eutils gnome2-utils python-r1
40 +
41 +DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
42 +HOMEPAGE="https://github.com/pyfa-org/Pyfa"
43 +
44 +RESTRICT="mirror bindist"
45 +LICENSE="GPL-3+ all-rights-reserved"
46 +SLOT="0"
47 +if [[ ${PV} = 9999 ]]; then
48 + EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git"
49 + inherit git-r3
50 + KEYWORDS=""
51 +else
52 + SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
53 + KEYWORDS="~amd64 ~x86"
54 +fi
55 +IUSE="+graph"
56 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
57 +
58 +RDEPEND="
59 + >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}]
60 + dev-python/python-dateutil[${PYTHON_USEDEP}]
61 + dev-python/requests[${PYTHON_USEDEP}]
62 + >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
63 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
64 + graph? (
65 + dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
66 + dev-python/numpy[${PYTHON_USEDEP}] )
67 + ${PYTHON_DEPS}"
68 +DEPEND="app-arch/zip"
69 +
70 +[[ ${PV} = 9999 ]] || S=${WORKDIR}/Pyfa-${PV}
71 +
72 +src_prepare() {
73 + # get rid of CRLF line endings introduced in 1.1.10 so patches work
74 + edos2unix config.py pyfa.py gui/bitmapLoader.py service/settings.py
75 +
76 + # load gameDB and images from separate staticdata directory
77 + eapply "${FILESDIR}/${PN}-1.33.1-staticdata.patch"
78 +
79 + # fix import path in the main script for systemwide installation
80 + eapply "${FILESDIR}/${PN}-1.33.1-import-pyfa.patch"
81 +
82 + eapply_user
83 +
84 + # make python recognize pyfa as a package
85 + touch __init__.py || die
86 +
87 + pyfa_make_configforced() {
88 + mkdir -p "${BUILD_DIR}" || die
89 + sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
90 + -e "s:%%EPREFIX%%:${EPREFIX}:" \
91 + "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py" || die
92 + sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
93 + pyfa.py > "${BUILD_DIR}/pyfa" || die
94 + }
95 + python_foreach_impl pyfa_make_configforced
96 +}
97 +
98 +src_install() {
99 + pyfa_py_install() {
100 + python_moduleinto ${PN}
101 + python_domodule eos gui service utils config*.py __init__.py
102 + python_domodule "${BUILD_DIR}/configforced.py"
103 + python_doscript "${BUILD_DIR}/pyfa"
104 + }
105 + python_foreach_impl pyfa_py_install
106 +
107 + insinto /usr/share/${PN}
108 + doins eve.db
109 +
110 + einfo "Compressing images ..."
111 + pushd imgs > /dev/null || die
112 + zip -r imgs.zip * || die "zip failed"
113 + doins imgs.zip
114 + popd > /dev/null || die
115 +
116 + dodoc README.md
117 + doicon -s 32 imgs/gui/pyfa.png
118 + newicon -s 64 imgs/gui/pyfa64.png pyfa.png
119 + domenu "${FILESDIR}/${PN}.desktop"
120 +}
121 +
122 +pkg_postinst() {
123 + gnome2_icon_cache_update
124 +}
125 +
126 +pkg_postrm() {
127 + gnome2_icon_cache_update
128 +}