Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/vitables/, profiles/
Date: Fri, 25 Sep 2020 12:35:28
Message-Id: 1601037315.f7c8062f1e60c8aa10726f45ff1c89dc08cd3ad6.heroxbd@gentoo
1 commit: f7c8062f1e60c8aa10726f45ff1c89dc08cd3ad6
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 12:33:37 2020 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 12:35:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c8062f
7
8 sci-misc/vitables: tested on Python 3.7 and 3.8.
9
10 Drop amd64-linux and x86-linux because the dependency QtPy is not
11 keyworded.
12
13 Unmask the package.
14
15 Closes: https://bugs.gentoo.org/737414
16 Package-Manager: Portage-3.0.5, Repoman-3.0.1
17 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
18
19 profiles/package.mask | 1 -
20 sci-misc/vitables/vitables-3.0.0-r2.ebuild | 38 ++++++++++++++++++++++++++++++
21 2 files changed, 38 insertions(+), 1 deletion(-)
22
23 diff --git a/profiles/package.mask b/profiles/package.mask
24 index 125274f201b..77958659898 100644
25 --- a/profiles/package.mask
26 +++ b/profiles/package.mask
27 @@ -416,7 +416,6 @@ dev-python/redlock-py
28 dev-python/root_numpy
29 dev-python/rootpy
30 dev-util/setconf
31 -sci-misc/vitables
32
33 # Michał Górny <mgorny@g.o> (2020-09-09)
34 # These packages (or package versions) still require Python 2.7.
35
36 diff --git a/sci-misc/vitables/vitables-3.0.0-r2.ebuild b/sci-misc/vitables/vitables-3.0.0-r2.ebuild
37 new file mode 100644
38 index 00000000000..3d7da16887d
39 --- /dev/null
40 +++ b/sci-misc/vitables/vitables-3.0.0-r2.ebuild
41 @@ -0,0 +1,38 @@
42 +# Copyright 1999-2020 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=6
46 +
47 +DISTUTILS_SINGLE_IMPL=1
48 +PYTHON_COMPAT=( python3_{6,7,8} )
49 +
50 +inherit distutils-r1
51 +
52 +MY_P=ViTables-${PV}
53 +
54 +DESCRIPTION="A graphical tool for browsing / editing files in both PyTables and HDF5 formats"
55 +HOMEPAGE="https://vitables.org/"
56 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
57 +
58 +LICENSE="GPL-3"
59 +SLOT="0"
60 +KEYWORDS="~amd64 ~x86"
61 +
62 +RDEPEND="
63 + $(python_gen_cond_dep '
64 + dev-python/setuptools[${PYTHON_MULTI_USEDEP}]
65 + dev-python/pytables[${PYTHON_MULTI_USEDEP}]
66 + dev-python/QtPy[gui,${PYTHON_MULTI_USEDEP}]
67 + ')"
68 +DEPEND="${RDEPEND}"
69 +
70 +S=${WORKDIR}/${MY_P}
71 +
72 +python_prepare_all() {
73 + # remove the PyQt5 dependency
74 + # because PyQt5 in Gentoo does not provide egg-info
75 + # see also: https://github.com/pyqt/python-qt5/issues/18
76 + sed "s:'PyQt5 [^ ]*::" -i setup.py || die
77 +
78 + distutils-r1_python_prepare_all
79 +}