1 |
commit: 11104e9baef936cee2fb877b6c01e98313084a3b |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 03:46:56 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 1 03:46:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11104e9b |
7 |
|
8 |
dev-python/xlwt: add python3_8 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-python/xlwt/xlwt-1.3.0-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/xlwt/xlwt-1.3.0-r1.ebuild b/dev-python/xlwt/xlwt-1.3.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..c3f628912de |
19 |
--- /dev/null |
20 |
+++ b/dev-python/xlwt/xlwt-1.3.0-r1.ebuild |
21 |
@@ -0,0 +1,51 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
27 |
+inherit distutils-r1 |
28 |
+ |
29 |
+DESCRIPTION="Python library to create spreadsheet files compatible with Excel" |
30 |
+HOMEPAGE="https://pypi.org/project/xlwt/" |
31 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="BSD" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
36 |
+IUSE="doc examples test" |
37 |
+RESTRICT="!test? ( test )" |
38 |
+ |
39 |
+DEPEND=" |
40 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
41 |
+ doc? ( |
42 |
+ >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] |
43 |
+ dev-python/pkginfo[${PYTHON_USEDEP}] |
44 |
+ ) |
45 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
46 |
+ |
47 |
+# Prevent d'loading in the doc build |
48 |
+PATCHES=( "${FILESDIR}/${PN}-1.3.0-no-intersphinx.patch" ) |
49 |
+ |
50 |
+python_prepare_all() { |
51 |
+ # Don't install documentation and examples in site-packages directories. |
52 |
+ sed -e "/package_data/d" -i setup.py || die |
53 |
+ |
54 |
+ distutils-r1_python_prepare_all |
55 |
+} |
56 |
+ |
57 |
+python_compile_all() { |
58 |
+ use doc && emake -C docs html |
59 |
+} |
60 |
+ |
61 |
+python_test() { |
62 |
+ nosetests tests || die "tests failed under ${EPYTHON}}" |
63 |
+} |
64 |
+ |
65 |
+python_install_all() { |
66 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
67 |
+ if use examples; then |
68 |
+ dodoc -r examples |
69 |
+ docompress -x /usr/share/doc/${PF} |
70 |
+ fi |
71 |
+ distutils-r1_python_install_all |
72 |
+} |