1 |
commit: dcf13f76bb21a31516de3f65a7181b95e261478e |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 30 23:46:29 2019 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 30 23:46:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf13f76 |
7 |
|
8 |
dev-python/docutils: remove old |
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/docutils/Manifest | 1 - |
14 |
dev-python/docutils/docutils-0.11.ebuild | 68 ---------------------- |
15 |
.../files/docutils-0.11-python3.3-odt-writer.patch | 30 ---------- |
16 |
3 files changed, 99 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/docutils/Manifest b/dev-python/docutils/Manifest |
19 |
index 340341f8816..5babac211ec 100644 |
20 |
--- a/dev-python/docutils/Manifest |
21 |
+++ b/dev-python/docutils/Manifest |
22 |
@@ -1,4 +1,3 @@ |
23 |
-DIST docutils-0.11.tar.gz 1611755 BLAKE2B 78e377bccb949d5ba324b90e0a316b38d8874dee8b82da254b1e442516c8b5788cdafc92feb42a50bfbd5e47ea62c64a90c821d2b7921318a120f9d5600ec6c3 SHA512 8e87581b27ce4fb5e97dcef56047f4bf3a076b98e9e42f5dc66f4c370e5893d1571e46f00fee6f1c8b9f8c8a79e128e4599b9ee213ad1dee2bf16a0246e187df |
24 |
DIST docutils-0.12.tar.gz 1618353 BLAKE2B c431e4f2d5ca21235bba860ae7aa4698af0f41b5bc1184bf39452f2c90fdae35d77fb52cab3b9fb5c4202541a01508d268c92c98845bbfd1d38e215e4228234d SHA512 0087433f8b76e1d0302d2fab77fdbda941132d16ac1fcecb26ca66119687eefd9e2f6901e05d705f857fa31e2526136c9827dfd57c44cd295bd10dcce3faebf9 |
25 |
DIST docutils-0.13.1.tar.gz 1735216 BLAKE2B 6229e7de842c6871bcc44a536333f005c5f4691423a4284d72f617bacbdbeb67c0e49e1ee74ce6ebf96e9329d0df2a5acdef306da975551108e74bd557aff4f9 SHA512 6a68b27dac3705ff532cb79d6b6808071206544a1c653e6a24d46971a5e10edffc7d275834eec4e80d948eb066bb099cae0195c0ab674e68747820e54f0ea64e |
26 |
DIST docutils-0.14.tar.gz 1727105 BLAKE2B d8880918e04ae19ec17ec8aeeaeb44d198a15d7f4c300e08d50b730aa5f753e564391e796b71947c66179ad58fb99e17d11172867d804e0734a17be7dcef3b4b SHA512 1ed72c2ef7d2ca38d1c6f3154b7986ea46f599d9bd826405a5257fdd7740c8626957d6298aa95fb0edea8a24515de22f1ad9b2ecbd59341a1ab7a2bab30f500c |
27 |
|
28 |
diff --git a/dev-python/docutils/docutils-0.11.ebuild b/dev-python/docutils/docutils-0.11.ebuild |
29 |
deleted file mode 100644 |
30 |
index 80f1a11de17..00000000000 |
31 |
--- a/dev-python/docutils/docutils-0.11.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,68 +0,0 @@ |
34 |
-# Copyright 1999-2018 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI="5" |
38 |
-PYTHON_COMPAT=( python{2_7,3_4} pypy ) |
39 |
- |
40 |
-inherit distutils-r1 |
41 |
- |
42 |
-DESCRIPTION="Python Documentation Utilities" |
43 |
-HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.org/project/docutils/" |
44 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
45 |
- |
46 |
-LICENSE="BSD-2 GPL-3 public-domain" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
-IUSE="" |
50 |
- |
51 |
-DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" |
52 |
-RDEPEND="${DEPEND}" |
53 |
- |
54 |
-PATCHES=( "${FILESDIR}"/docutils-0.11-python3.3-odt-writer.patch ) |
55 |
- |
56 |
-python_compile_all() { |
57 |
- # Generate html docs from reStructured text sources. |
58 |
- |
59 |
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct. |
60 |
- cp docutils/writers/html4css1/html4css1.css . || die |
61 |
- |
62 |
- cd tools || die |
63 |
- "${PYTHON}" buildhtml.py --input-encoding=utf-8 \ |
64 |
- --stylesheet-path=../html4css1.css, --traceback ../docs || die |
65 |
-} |
66 |
- |
67 |
-python_test() { |
68 |
- if python_is_python3; then |
69 |
- pushd test3 > /dev/null || die |
70 |
- else |
71 |
- pushd test > /dev/null || die |
72 |
- fi |
73 |
- "${PYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" |
74 |
- popd > /dev/null || die |
75 |
-} |
76 |
- |
77 |
-python_install() { |
78 |
- distutils-r1_python_install |
79 |
- |
80 |
- # Install tools. |
81 |
- python_doscript tools/{buildhtml,quicktest}.py |
82 |
-} |
83 |
- |
84 |
-install_txt_doc() { |
85 |
- local doc="${1}" |
86 |
- local dir="txt/$(dirname ${doc})" |
87 |
- docinto "${dir}" |
88 |
- dodoc "${doc}" |
89 |
-} |
90 |
- |
91 |
-python_install_all() { |
92 |
- local DOCS=( *.txt ) |
93 |
- local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) |
94 |
- |
95 |
- distutils-r1_python_install_all |
96 |
- |
97 |
- local doc |
98 |
- while IFS= read -r -d '' doc; do |
99 |
- install_txt_doc "${doc}" |
100 |
- done < <(find docs tools -name '*.txt' -print0) |
101 |
-} |
102 |
|
103 |
diff --git a/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch b/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch |
104 |
deleted file mode 100644 |
105 |
index e84256f3dc4..00000000000 |
106 |
--- a/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch |
107 |
+++ /dev/null |
108 |
@@ -1,30 +0,0 @@ |
109 |
---- a/docutils/writers/odf_odt/__init__.py |
110 |
-+++ b/docutils/writers/odf_odt/__init__.py |
111 |
-@@ -88,16 +88,20 @@ |
112 |
- # that support for the ability to get the parent of an element. |
113 |
- # |
114 |
- if WhichElementTree == 'elementtree': |
115 |
-- class _ElementInterfaceWrapper(etree._ElementInterface): |
116 |
-+ import weakref |
117 |
-+ _parents = weakref.WeakKeyDictionary() |
118 |
-+ if isinstance(etree.Element, type): |
119 |
-+ _ElementInterface = etree.Element |
120 |
-+ else: |
121 |
-+ _ElementInterface = etree._ElementInterface |
122 |
-+ class _ElementInterfaceWrapper(_ElementInterface): |
123 |
- def __init__(self, tag, attrib=None): |
124 |
-- etree._ElementInterface.__init__(self, tag, attrib) |
125 |
-- if attrib is None: |
126 |
-- attrib = {} |
127 |
-- self.parent = None |
128 |
-+ _ElementInterface.__init__(self, tag, attrib) |
129 |
-+ _parents[self] = None |
130 |
- def setparent(self, parent): |
131 |
-- self.parent = parent |
132 |
-+ _parents[self] = parent |
133 |
- def getparent(self): |
134 |
-- return self.parent |
135 |
-+ return _parents[self] |
136 |
- |
137 |
- |
138 |
- # |