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: 1527687337.7ad57335d01b572de6c6b180f1b5e8d8f86203b3.mgorny@gentoo
1 commit: 7ad57335d01b572de6c6b180f1b5e8d8f86203b3
2 Author: Andreas Zuber <a.zuber <AT> gmx <DOT> ch>
3 AuthorDate: Wed May 30 12:29:30 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 30 13:35:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad57335
7
8 games-util/pyfa: update live ebuild
9
10 Closes: https://github.com/gentoo/gentoo/pull/7367
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 games-util/pyfa/pyfa-9999.ebuild | 36 ++++++++++++++++--------------------
14 1 file changed, 16 insertions(+), 20 deletions(-)
15
16 diff --git a/games-util/pyfa/pyfa-9999.ebuild b/games-util/pyfa/pyfa-9999.ebuild
17 index dbd5180ef37..32200ccbee1 100644
18 --- a/games-util/pyfa/pyfa-9999.ebuild
19 +++ b/games-util/pyfa/pyfa-9999.ebuild
20 @@ -1,33 +1,35 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 +# Copyright 1999-2018 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI="6"
26 PYTHON_COMPAT=( python2_7 )
27 PYTHON_REQ_USE="sqlite,threads"
28
29 -inherit eutils gnome2-utils python-r1
30 +inherit desktop eutils gnome2-utils python-r1
31
32 DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
33 HOMEPAGE="https://github.com/pyfa-org/Pyfa"
34
35 -LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm"
36 +RESTRICT="mirror bindist"
37 +LICENSE="GPL-3+ all-rights-reserved"
38 SLOT="0"
39 if [[ ${PV} = 9999 ]]; then
40 EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git"
41 inherit git-r3
42 KEYWORDS=""
43 else
44 - SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz"
45 + SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 KEYWORDS="~amd64 ~x86"
47 fi
48 IUSE="+graph"
49 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
50
51 -RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]
52 - >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
53 - dev-python/wxpython:3.0[${PYTHON_USEDEP}]
54 +RDEPEND="
55 >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}]
56 + dev-python/python-dateutil[${PYTHON_USEDEP}]
57 dev-python/requests[${PYTHON_USEDEP}]
58 + >=dev-python/sqlalchemy-1.0.5[${PYTHON_USEDEP}]
59 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
60 graph? (
61 dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
62 dev-python/numpy[${PYTHON_USEDEP}] )
63 @@ -48,28 +50,26 @@ src_prepare() {
64
65 eapply_user
66
67 - touch __init__.py
68 + # make python recognize pyfa as a package
69 + touch __init__.py || die
70
71 pyfa_make_configforced() {
72 mkdir -p "${BUILD_DIR}" || die
73 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
74 -e "s:%%EPREFIX%%:${EPREFIX}:" \
75 - "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py"
76 + "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py" || die
77 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
78 - pyfa.py > "${BUILD_DIR}/pyfa"
79 + pyfa.py > "${BUILD_DIR}/pyfa" || die
80 }
81 python_foreach_impl pyfa_make_configforced
82 }
83
84 src_install() {
85 pyfa_py_install() {
86 - local packagedir=$(python_get_sitedir)/${PN}
87 - insinto "${packagedir}"
88 - doins -r eos gui service utils config*.py __init__.py
89 - [[ -e info.py ]] && doins info.py # only in zip releases
90 - doins "${BUILD_DIR}/configforced.py"
91 + python_moduleinto ${PN}
92 + python_domodule eos gui service utils config*.py __init__.py
93 + python_domodule "${BUILD_DIR}/configforced.py"
94 python_doscript "${BUILD_DIR}/pyfa"
95 - python_optimize
96 }
97 python_foreach_impl pyfa_py_install
98
99 @@ -88,10 +88,6 @@ src_install() {
100 domenu "${FILESDIR}/${PN}.desktop"
101 }
102
103 -pkg_preinst() {
104 - gnome2_icon_savelist
105 -}
106 -
107 pkg_postinst() {
108 gnome2_icon_cache_update
109 }