1 |
commit: 92595d086962ff071c90b94ab7364e52eddfe8ef |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 23:06:46 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 23:56:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92595d08 |
7 |
|
8 |
sci-visualization/veusz: Use qmake-utils |
9 |
|
10 |
Closes: https://bugs.gentoo.org/763921 |
11 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
sci-visualization/veusz/veusz-3.2.ebuild | 27 +++++++++++++++++---------- |
15 |
1 file changed, 17 insertions(+), 10 deletions(-) |
16 |
|
17 |
diff --git a/sci-visualization/veusz/veusz-3.2.ebuild b/sci-visualization/veusz/veusz-3.2.ebuild |
18 |
index 54682cc5cd7..a3d3cdd68a2 100644 |
19 |
--- a/sci-visualization/veusz/veusz-3.2.ebuild |
20 |
+++ b/sci-visualization/veusz/veusz-3.2.ebuild |
21 |
@@ -1,37 +1,44 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
PYTHON_COMPAT=( python3_{6,7,8,9} ) |
29 |
- |
30 |
-inherit desktop distutils-r1 virtualx xdg |
31 |
+inherit desktop distutils-r1 qmake-utils virtualx xdg |
32 |
|
33 |
DESCRIPTION="Qt scientific plotting package with good Postscript output" |
34 |
HOMEPAGE="https://veusz.github.io/" |
35 |
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" |
36 |
|
37 |
-SLOT="0" |
38 |
LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
41 |
IUSE="dbus doc hdf5" |
42 |
RESTRICT="!test? ( test )" |
43 |
|
44 |
-CDEPEND="dev-python/PyQt5[widgets,svg,printsupport,${PYTHON_USEDEP}] |
45 |
- dev-python/numpy[${PYTHON_USEDEP}]" |
46 |
-RDEPEND="${CDEPEND} |
47 |
+COMMON_DEPEND=" |
48 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
49 |
+ dev-python/PyQt5[widgets,svg,printsupport,${PYTHON_USEDEP}] |
50 |
+" |
51 |
+RDEPEND="${COMMON_DEPEND} |
52 |
dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) |
53 |
- hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )" |
54 |
-DEPEND="${CDEPEND} |
55 |
+ hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] ) |
56 |
+" |
57 |
+DEPEND="${COMMON_DEPEND} |
58 |
dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
dev-python/sip[${PYTHON_USEDEP}] |
60 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
61 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
62 |
+" |
63 |
|
64 |
src_prepare() { |
65 |
distutils-r1_src_prepare |
66 |
xdg_environment_reset |
67 |
} |
68 |
|
69 |
+python_compile() { |
70 |
+ distutils-r1_python_compile build_ext --qmake-exe=$(qt5_get_bindir)/qmake |
71 |
+} |
72 |
+ |
73 |
python_test() { |
74 |
distutils_install_for_testing |
75 |
VIRTUALX_COMMAND="${EPYTHON}" \ |