1 |
commit: e818cd3773f3d5332609cb3675f396dae7fd41b9 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 5 21:07:02 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 5 21:11:40 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e818cd37 |
7 |
|
8 |
dev-python/pygal: set dependencies as optional |
9 |
|
10 |
Closes: https://bugs.gentoo.org/638028 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-python/pygal/pygal-3.0.0-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pygal/pygal-3.0.0-r1.ebuild b/dev-python/pygal/pygal-3.0.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..fa1e92660d0c |
19 |
--- /dev/null |
20 |
+++ b/dev-python/pygal/pygal-3.0.0-r1.ebuild |
21 |
@@ -0,0 +1,43 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+PYTHON_REQ_USE="xml(+)" |
29 |
+ |
30 |
+inherit distutils-r1 optfeature |
31 |
+ |
32 |
+DESCRIPTION="A python SVG charts generator" |
33 |
+HOMEPAGE="https://github.com/Kozea/pygal/" |
34 |
+SRC_URI="https://github.com/Kozea/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="LGPL-3+" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+ |
40 |
+BDEPEND=" |
41 |
+ test? ( |
42 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
43 |
+ dev-python/pyquery[${PYTHON_USEDEP}] |
44 |
+ media-gfx/cairosvg[${PYTHON_USEDEP}] |
45 |
+ ) |
46 |
+" |
47 |
+ |
48 |
+# CHANGELOG is a symlink to docs/changelog.rst |
49 |
+DOCS=( docs/changelog.rst README.md ) |
50 |
+ |
51 |
+distutils_enable_sphinx docs |
52 |
+distutils_enable_tests pytest |
53 |
+ |
54 |
+python_prepare_all() { |
55 |
+ # Not actually required unless we want to do setup.py test |
56 |
+ # https://github.com/Kozea/pygal/issues/430 |
57 |
+ sed -i -e "/setup_requires/d" setup.py || die |
58 |
+ distutils-r1_python_prepare_all |
59 |
+} |
60 |
+ |
61 |
+pkg_postinst() { |
62 |
+ optfeature "improving rendering speed" "dev-python/lxml" |
63 |
+ optfeature "png rendering" "dev-python/cairosvg" |
64 |
+} |