1 |
commit: 04413c11bc470ce40a12b9914acf3e6547312bf2 |
2 |
Author: Andreas Zuber <a.zuber <AT> gmx <DOT> ch> |
3 |
AuthorDate: Wed Jul 21 06:51:47 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 22 07:38:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04413c11 |
7 |
|
8 |
games-util/pyfa: version bump to 2.37.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Andreas Zuber <a.zuber <AT> gmx.ch> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
games-util/pyfa/Manifest | 1 + |
15 |
games-util/pyfa/pyfa-2.37.0.ebuild | 93 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 94 insertions(+) |
17 |
|
18 |
diff --git a/games-util/pyfa/Manifest b/games-util/pyfa/Manifest |
19 |
index 2525a451acd..9b854386adb 100644 |
20 |
--- a/games-util/pyfa/Manifest |
21 |
+++ b/games-util/pyfa/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST pyfa-2.32.0.tar.gz 28170873 BLAKE2B 92839a83067f3699dfcf85a6e479c16a80e18f375f402654dd2b1207497bfba639e717d3ff205cc682a8cbf3cefd37990c7d6dccf46e9dbf23bfd416c58eba81 SHA512 998a1055a5d68cdf61603ecac503db24a8ea344cd388acc7f1f04aafe54b22db059461619c1a1d93b807dc64c779a158b6b2d5066412d6ffc3df0a858de83b0e |
24 |
DIST pyfa-2.33.0.tar.gz 28872031 BLAKE2B fe7fad57e43a8efc78f828d0ff81788147fa64ef02a20a71d6fef8ab0130d39b5ebffc18d58a774a61d805b8d0e570cbedb0b8fa536c8c71e61102fb6d093998 SHA512 bfa4e41b387e9f23aeae41a4884a0492316cc6e51841243ef56dc733edab10e6c9609ca7918d4de9fcd052b4da8f8048ce7578d164ad98237b53cb05f7c168d8 |
25 |
+DIST pyfa-2.37.0.tar.gz 29991827 BLAKE2B d2dd51becc037176ef0e4394799d6d35ea5025b4b9aba7a1e2a12d908b1d8d9a436d2e2b2e9d06b3592ea2276b3dfe24c639d02cd77fe25a6ea673d9f048a238 SHA512 e3ccee3ee3b74644f208afdf719bf1e3dc29335041e3cdd19b5742f51e1fbb0fcab2376c26fc789e7992d1f35215c128bf6480860a0eea75eeb69c9b466ba1cf |
26 |
|
27 |
diff --git a/games-util/pyfa/pyfa-2.37.0.ebuild b/games-util/pyfa/pyfa-2.37.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7f760faeb79 |
30 |
--- /dev/null |
31 |
+++ b/games-util/pyfa/pyfa-2.37.0.ebuild |
32 |
@@ -0,0 +1,93 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..9} ) |
39 |
+PYTHON_REQ_USE="sqlite" |
40 |
+ |
41 |
+inherit desktop edos2unix python-single-r1 xdg |
42 |
+ |
43 |
+DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online" |
44 |
+HOMEPAGE="https://github.com/pyfa-org/Pyfa" |
45 |
+ |
46 |
+LICENSE="GPL-3+ all-rights-reserved" |
47 |
+SLOT="0" |
48 |
+if [[ ${PV} = 9999 ]]; then |
49 |
+ EGIT_REPO_URI="https://github.com/pyfa-org/Pyfa.git" |
50 |
+ inherit git-r3 |
51 |
+else |
52 |
+ SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~x86" |
54 |
+ S="${WORKDIR}/Pyfa-${PV}" |
55 |
+fi |
56 |
+ |
57 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
58 |
+RESTRICT="mirror bindist" |
59 |
+ |
60 |
+DEPEND=" |
61 |
+ $(python_gen_cond_dep ' |
62 |
+ >=dev-python/cryptography-2.3[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/logbook-1.0.0[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/wxpython-4.0.6[webkit,${PYTHON_USEDEP}] |
67 |
+ ') |
68 |
+ ${PYTHON_DEPS}" |
69 |
+RDEPEND="${DEPEND} |
70 |
+ $(python_gen_cond_dep ' |
71 |
+ >=dev-python/beautifulsoup-4.6.0[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/markdown2-2.3.5[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/numpy-1.19.2[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/packaging-16.8[${PYTHON_USEDEP}] |
75 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/roman-2.0.0[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/matplotlib-3.2.2[wxwidgets,${PYTHON_USEDEP}] |
79 |
+ ')" |
80 |
+BDEPEND="app-arch/zip" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ # fix import path in the main script for systemwide installation |
84 |
+ "${FILESDIR}/${PN}-2.9.3-import-pyfa.patch" |
85 |
+) |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ # get rid of CRLF line endings introduced in 1.1.10 so patches work |
89 |
+ edos2unix config.py pyfa.py gui/bitmap_loader.py service/settings.py |
90 |
+ |
91 |
+ default |
92 |
+ |
93 |
+ # make python recognize pyfa as a package |
94 |
+ touch __init__.py || die |
95 |
+ |
96 |
+ sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ |
97 |
+ -e "s:%%EPREFIX%%:${EPREFIX}:" \ |
98 |
+ "${FILESDIR}/configforced-1.15.1.py" > configforced.py || die |
99 |
+ sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ |
100 |
+ pyfa.py > pyfa || die |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ python_moduleinto ${PN} |
105 |
+ python_domodule eos gui service utils graphs |
106 |
+ python_domodule config*.py __init__.py version.yml configforced.py db_update.py |
107 |
+ python_doscript pyfa |
108 |
+ |
109 |
+ insinto /usr/share/${PN} |
110 |
+ |
111 |
+ einfo "Creating database ..." |
112 |
+ ${EPYTHON} ./db_update.py || die |
113 |
+ doins eve.db |
114 |
+ |
115 |
+ einfo "Compressing images ..." |
116 |
+ pushd imgs > /dev/null || die |
117 |
+ zip -r imgs.zip * || die "zip failed" |
118 |
+ doins imgs.zip |
119 |
+ popd > /dev/null || die |
120 |
+ |
121 |
+ dodoc README.md |
122 |
+ doicon -s 32 imgs/gui/pyfa.png |
123 |
+ newicon -s 64 imgs/gui/pyfa64.png pyfa.png |
124 |
+ domenu "${FILESDIR}/${PN}.desktop" |
125 |
+} |