1 |
commit: 075c5bd0abce118a067069c62fc7d57e7a932f2d |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 8 14:04:24 2019 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 8 14:04:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=075c5bd0 |
7 |
|
8 |
dev-python/xlwt: bump to 1.3.0 |
9 |
|
10 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
dev-python/xlwt/Manifest | 1 + |
14 |
.../xlwt/files/xlwt-1.3.0-no-intersphinx.patch | 13 ++++++ |
15 |
dev-python/xlwt/xlwt-1.3.0.ebuild | 52 ++++++++++++++++++++++ |
16 |
3 files changed, 66 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/xlwt/Manifest b/dev-python/xlwt/Manifest |
19 |
index f8d17a828dd..c7577fc774e 100644 |
20 |
--- a/dev-python/xlwt/Manifest |
21 |
+++ b/dev-python/xlwt/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST xlwt-1.0.0.tar.gz 129588 BLAKE2B e900aec8efc254539936a7e5998c17116c3d95c66fe169aff8caaf11a9509cfbebe29f9cc5ea4a5f6b5b1cdf28f9e08cdd33ce7ae4bf474b4d51df491605f372 SHA512 45788a506635f1ef6380d46aa0af724e511e401e8347dcf48dbf4e2d90e7f4c7f66838cd9616cf58807ffb939daba1f47b0d2cf449f8cb528db41fba84cc8866 |
24 |
DIST xlwt-1.2.0.tar.gz 153909 BLAKE2B 553315b6f6ba822122c18cfabaf5a30f25a6ccdc1c507bf7fbf293df42e380520ef647d3501b51443a90f77c59497b87c70f6a71d3b3ce53658d3a6cf2356f6a SHA512 e0be61f6a54ac39c91cf03a1a7535c464045539f6a040f000921815e3280bd341770d72f4353891a10dde7c1b51eab4ccb1ae1c10bbf779108346fba8484eef8 |
25 |
+DIST xlwt-1.3.0.tar.gz 153929 BLAKE2B f0edb823201e477aca23af1edaa2a7bcf95aeb5b9b191f4d9a8be9e052d68699887cd829c2304b26334fb3e92d4a1fc1d0dbfabb477889a1295255170408715c SHA512 e09c515bda7edadb9624b842796a537316c1e2e06f3e74aca5440a5797dbc259036539fd64ea61648a30894f4091d3be829411d36e6170894980728c798c5963 |
26 |
|
27 |
diff --git a/dev-python/xlwt/files/xlwt-1.3.0-no-intersphinx.patch b/dev-python/xlwt/files/xlwt-1.3.0-no-intersphinx.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..2ef29a1d6cf |
30 |
--- /dev/null |
31 |
+++ b/dev-python/xlwt/files/xlwt-1.3.0-no-intersphinx.patch |
32 |
@@ -0,0 +1,13 @@ |
33 |
+diff --git a/docs/conf.py b/docs/conf.py |
34 |
+index c55fa2f..25db355 100644 |
35 |
+--- a/docs/conf.py |
36 |
++++ b/docs/conf.py |
37 |
+@@ -4,7 +4,7 @@ import os, pkginfo |
38 |
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
39 |
+ pkg_info = pkginfo.Develop(os.path.join(os.path.dirname(__file__), os.pardir)) |
40 |
+ |
41 |
+-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] |
42 |
++extensions = ['sphinx.ext.autodoc'] |
43 |
+ source_suffix = '.rst' |
44 |
+ master_doc = 'index' |
45 |
+ project = u'xlwt' |
46 |
|
47 |
diff --git a/dev-python/xlwt/xlwt-1.3.0.ebuild b/dev-python/xlwt/xlwt-1.3.0.ebuild |
48 |
new file mode 100644 |
49 |
index 00000000000..64bd2dff33b |
50 |
--- /dev/null |
51 |
+++ b/dev-python/xlwt/xlwt-1.3.0.ebuild |
52 |
@@ -0,0 +1,52 @@ |
53 |
+# Copyright 1999-2019 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=7 |
57 |
+ |
58 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy ) |
59 |
+ |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="Python library to create spreadsheet files compatible with Excel" |
63 |
+HOMEPAGE="https://pypi.org/project/xlwt/" |
64 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="BSD" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
69 |
+IUSE="doc examples test" |
70 |
+ |
71 |
+DEPEND=" |
72 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
73 |
+ doc? ( |
74 |
+ >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] |
75 |
+ dev-python/pkginfo[${PYTHON_USEDEP}] |
76 |
+ ) |
77 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
78 |
+ |
79 |
+# Prevent d'loading in the doc build |
80 |
+PATCHES=( "${FILESDIR}/${PN}-1.3.0-no-intersphinx.patch" ) |
81 |
+ |
82 |
+python_prepare_all() { |
83 |
+ # Don't install documentation and examples in site-packages directories. |
84 |
+ sed -e "/package_data/d" -i setup.py || die |
85 |
+ |
86 |
+ distutils-r1_python_prepare_all |
87 |
+} |
88 |
+ |
89 |
+python_compile_all() { |
90 |
+ use doc && emake -C docs html |
91 |
+} |
92 |
+ |
93 |
+python_test() { |
94 |
+ nosetests tests || die "tests failed under ${EPYTHON}}" |
95 |
+} |
96 |
+ |
97 |
+python_install_all() { |
98 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
99 |
+ if use examples; then |
100 |
+ dodoc -r examples |
101 |
+ docompress -x /usr/share/doc/${PF} |
102 |
+ fi |
103 |
+ distutils-r1_python_install_all |
104 |
+} |