1 |
commit: 67c91ac9090017c0eae67ebacd7e7413465785cc |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 2 11:25:37 2017 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 2 11:25:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c91ac9 |
7 |
|
8 |
app-dicts/opendict: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.2 |
11 |
|
12 |
app-dicts/opendict/Manifest | 1 - |
13 |
.../opendict/files/opendict-0.6.3-pyxml.patch | 144 --------------------- |
14 |
app-dicts/opendict/opendict-0.6.3-r1.ebuild | 91 ------------- |
15 |
3 files changed, 236 deletions(-) |
16 |
|
17 |
diff --git a/app-dicts/opendict/Manifest b/app-dicts/opendict/Manifest |
18 |
index 15a8892d430..040ec9b6123 100644 |
19 |
--- a/app-dicts/opendict/Manifest |
20 |
+++ b/app-dicts/opendict/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST opendict-0.6.3.tar.gz 132515 SHA256 dad7723512768aeae65fead0f06a3c973b161a86658b94a66c4945beb12f45dc SHA512 687afba45f9fd271acee9f72fd3971fbc624588fe0f4194ad4499e2e64259a59c516854a7b0b1c02b3e214bf6e77e52b5b0713430e3cd5e0127c5b3c8fc02f5c WHIRLPOOL 06a48141bb1da7557d616deda3c4c18500171d4c158cb5f5cc83ca9f1f8037584ade85a742c88a4b6ab667bd6586492fed075e6a4e69fa51c8e37ece75880a62 |
23 |
DIST opendict-0.6.7.tar.gz 169580 SHA256 d376c8a81e5747e40775214177df9d0f04d6441acaea7435e0cb7e770b6c460f SHA512 ef97ec84591bda4d8d4746fa4532de109cf03d89dfd5aa20e1775224c687b503759c020b2286e5cedd395ebce5db3b2a10495adc31fcc31dbd4fddfca6fee1f8 WHIRLPOOL 215a3f9ec80bf07c662f5cc35f1e698cfabbb74edd8c641681b562bc6a4a47b4b2fe1e889288abb8e5f213441cd501cf9c6d2ad4581501a5c90bb0048623c3d7 |
24 |
|
25 |
diff --git a/app-dicts/opendict/files/opendict-0.6.3-pyxml.patch b/app-dicts/opendict/files/opendict-0.6.3-pyxml.patch |
26 |
deleted file mode 100644 |
27 |
index 902e4f82215..00000000000 |
28 |
--- a/app-dicts/opendict/files/opendict-0.6.3-pyxml.patch |
29 |
+++ /dev/null |
30 |
@@ -1,144 +0,0 @@ |
31 |
-Use native python instead of external pyxml dependency. Patch from Debian. |
32 |
- |
33 |
-https://bugs.gentoo.org/367733 |
34 |
- |
35 |
- |
36 |
---- a/README.txt |
37 |
-+++ b/README.txt |
38 |
-@@ -15,9 +15,8 @@ universal and easy to use for desktop users and developers. |
39 |
- Requirements |
40 |
- ~~~~~~~~~~~~ |
41 |
- |
42 |
-- - Python >= 2.3 |
43 |
-- - wxPython 2.6 |
44 |
-- - python-xml (PyXML) |
45 |
-+ - Python >= 2.4 |
46 |
-+ - wxPython >= 2.6 |
47 |
- - gettext >= 0.14 |
48 |
- |
49 |
- |
50 |
---- a/lib/xmltools.py |
51 |
-+++ b/lib/xmltools.py |
52 |
-@@ -20,7 +20,6 @@ |
53 |
- # |
54 |
- |
55 |
- import xml.dom.minidom |
56 |
--import xml.dom.ext |
57 |
- |
58 |
- from lib import meta |
59 |
- |
60 |
-@@ -30,7 +29,7 @@ def _textData(element): |
61 |
- |
62 |
- text = '' |
63 |
- for node in element.childNodes: |
64 |
-- text = node.data |
65 |
-+ text = node.data.strip() |
66 |
- |
67 |
- return text |
68 |
- |
69 |
-@@ -99,7 +98,7 @@ class RegisterConfigGenerator: |
70 |
- or '')) |
71 |
- |
72 |
- return doc |
73 |
-- |
74 |
-+ |
75 |
- |
76 |
- def generatePlainDictConfig(**args): |
77 |
- """Generate configuration and return DOM object""" |
78 |
-@@ -113,10 +112,11 @@ def generatePlainDictConfig(**args): |
79 |
- def writePlainDictConfig(doc, path): |
80 |
- """Write XML file""" |
81 |
- |
82 |
-- fd = open(path, 'w') |
83 |
-- xml.dom.ext.PrettyPrint(doc, fd) |
84 |
-+ import codecs |
85 |
-+ fd = codecs.open(path, 'w', 'utf-8') |
86 |
-+ doc.writexml(fd, addindent = " ", newl = "\n", encoding = "UTF-8") |
87 |
- fd.close() |
88 |
-- |
89 |
-+ |
90 |
- |
91 |
- |
92 |
- class RegisterConfigParser: |
93 |
-@@ -144,32 +144,32 @@ class RegisterConfigParser: |
94 |
- |
95 |
- for nameElement in registerElement.getElementsByTagName('name'): |
96 |
- for node in nameElement.childNodes: |
97 |
-- name = node.data |
98 |
-+ name = node.data.strip() |
99 |
- |
100 |
- for formatElement in registerElement.getElementsByTagName('format'): |
101 |
- for node in formatElement.childNodes: |
102 |
-- format = node.data |
103 |
-+ format = node.data.strip() |
104 |
- |
105 |
- for pathElement in registerElement.getElementsByTagName('path'): |
106 |
- for node in pathElement.childNodes: |
107 |
-- path = node.data |
108 |
-+ path = node.data.strip() |
109 |
- |
110 |
- for versionElement in registerElement.getElementsByTagName('version'): |
111 |
- for node in versionElement.childNodes: |
112 |
- version = node.data.strip() |
113 |
- |
114 |
- for authorElement in registerElement.getElementsByTagName('author'): |
115 |
-- authors.append({'name': authorElement.getAttribute('name'), |
116 |
-- 'email': authorElement.getAttribute('email')}) |
117 |
-+ authors.append({'name': authorElement.getAttribute('name').strip(), |
118 |
-+ 'email': authorElement.getAttribute('email').strip()}) |
119 |
- |
120 |
- for md5Element in registerElement.getElementsByTagName('md5'): |
121 |
- for node in md5Element.childNodes: |
122 |
-- md5 = node.data |
123 |
-+ md5 = node.data.strip() |
124 |
- |
125 |
- for encodingElement in \ |
126 |
- registerElement.getElementsByTagName('encoding'): |
127 |
- for node in encodingElement.childNodes: |
128 |
-- encoding = node.data |
129 |
-+ encoding = node.data.strip() |
130 |
- |
131 |
- for licenceElement in \ |
132 |
- registerElement.getElementsByTagName('licence'): |
133 |
-@@ -241,8 +241,9 @@ def generateIndexFile(index): |
134 |
- def writeIndexFile(doc, path): |
135 |
- """Write XML file""" |
136 |
- |
137 |
-- fd = open(path, 'wb') |
138 |
-- xml.dom.ext.PrettyPrint(doc, fd) |
139 |
-+ import codecs |
140 |
-+ fd = codecs.open(path, 'wb', 'utf-8') |
141 |
-+ doc.writexml(fd, addindent = " ", newl = "\n", encoding = "UTF-8") |
142 |
- fd.close() |
143 |
- |
144 |
- |
145 |
-@@ -511,7 +512,8 @@ def generateMainConfig(props): |
146 |
- def writeConfig(doc, path): |
147 |
- """Write XML file""" |
148 |
- |
149 |
-- fd = open(path, 'w') |
150 |
-- xml.dom.ext.PrettyPrint(doc, fd) |
151 |
-+ import codecs |
152 |
-+ fd = codecs.open(path, 'w', 'utf-8') |
153 |
-+ doc.writexml(fd, addindent = " ", newl = "\n", encoding = "UTF-8") |
154 |
- fd.close() |
155 |
- |
156 |
---- a/opendict.py |
157 |
-+++ b/opendict.py |
158 |
-@@ -53,16 +53,6 @@ except ImportError: |
159 |
- print >> sys.stderr, "**" |
160 |
- sys.exit(1) |
161 |
- |
162 |
-- |
163 |
--try: |
164 |
-- import xml.dom.ext |
165 |
--except ImportError: |
166 |
-- print >> sys.stderr, "**" |
167 |
-- print >> sys.stderr, "** Error: Python/XML library not found" |
168 |
-- print >> sys.stderr, "** Please install python-xml (PyXML) to run OpenDict" |
169 |
-- print >> sys.stderr, "**" |
170 |
-- sys.exit(1) |
171 |
-- |
172 |
- # get_main_dir() returns the directory name of the script or the |
173 |
- # directory name of the exe |
174 |
- def get_main_dir(): |
175 |
|
176 |
diff --git a/app-dicts/opendict/opendict-0.6.3-r1.ebuild b/app-dicts/opendict/opendict-0.6.3-r1.ebuild |
177 |
deleted file mode 100644 |
178 |
index abb4dbf2ad1..00000000000 |
179 |
--- a/app-dicts/opendict/opendict-0.6.3-r1.ebuild |
180 |
+++ /dev/null |
181 |
@@ -1,91 +0,0 @@ |
182 |
-# Copyright 1999-2015 Gentoo Foundation |
183 |
-# Distributed under the terms of the GNU General Public License v2 |
184 |
- |
185 |
-EAPI=5 |
186 |
-GCONF_DEBUG="no" # We skip gnome2_src_configure entirely |
187 |
-PYTHON_COMPAT=( python2_7 ) |
188 |
- |
189 |
-inherit eutils gnome2 python-single-r1 readme.gentoo |
190 |
- |
191 |
-DESCRIPTION="OpenDict is a free cross-platform dictionary program" |
192 |
-HOMEPAGE="http://opendict.sourceforge.net/" |
193 |
-SRC_URI="http://opendict.idiles.com/files/${P}.tar.gz" |
194 |
-LICENSE="GPL-2" |
195 |
-SLOT="0" |
196 |
-KEYWORDS="amd64 ppc x86" |
197 |
- |
198 |
-IUSE="" |
199 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
200 |
- |
201 |
-RDEPEND="${PYTHON_DEPS} |
202 |
- dev-python/wxpython:2.8[${PYTHON_USEDEP}] |
203 |
-" |
204 |
-DEPEND="${RDEPEND}" |
205 |
- |
206 |
-DISABLE_AUTOFORMATTING="yes" |
207 |
-DOC_CONTENTS="If you want system-wide plugins, unzip them into |
208 |
-${ROOT}usr/share/${PN}/dictionaries/plugins |
209 |
- |
210 |
-Some are available from http://opendict.sourceforge.net/?cid=3" |
211 |
- |
212 |
-src_prepare() { |
213 |
- epatch "${FILESDIR}"/${P}-pyxml.patch |
214 |
- |
215 |
- sed -e "s:), '..')):), '../../../../..', 'share', 'opendict')):g" \ |
216 |
- -i "${S}/lib/info.py" |
217 |
- |
218 |
- gnome2_src_prepare |
219 |
-} |
220 |
- |
221 |
-src_configure() { |
222 |
- # override gnome2_src_configure |
223 |
- default |
224 |
-} |
225 |
- |
226 |
-src_compile() { |
227 |
- # evil makefile |
228 |
- : |
229 |
-} |
230 |
- |
231 |
-src_install() { |
232 |
- # makefile is broken, do it manually |
233 |
- |
234 |
- dodir /usr/share/${PN}/dictionaries/plugins # global dictionary plugins folder |
235 |
- |
236 |
- # Needed by GUI |
237 |
- insinto /usr/share/${PN} |
238 |
- doins "${S}"/copying.html |
239 |
- |
240 |
- insinto /usr/share/${PN}/pixmaps |
241 |
- doins "${S}"/pixmaps/* |
242 |
- |
243 |
- DHOME="$(python_get_sitedir)/opendict" |
244 |
- insinto "${DHOME}/lib" |
245 |
- doins -r "${S}"/lib/* |
246 |
- exeinto "${DHOME}" |
247 |
- python_fix_shebang opendict.py |
248 |
- doexe opendict.py |
249 |
- |
250 |
- dosym "${DHOME}/opendict.py" /usr/bin/opendict |
251 |
- |
252 |
- domenu misc/${PN}.desktop |
253 |
- |
254 |
- insinto /usr/share/icons/hicolor/24x24/apps/ |
255 |
- newins "${S}/pixmaps/icon-24x24.png" opendict.png |
256 |
- insinto /usr/share/icons/hicolor/32x32/apps/ |
257 |
- newins "${S}/pixmaps/icon-32x32.png" opendict.png |
258 |
- insinto /usr/share/icons/hicolor/48x48/apps/ |
259 |
- newins "${S}/pixmaps/icon-48x48.png" opendict.png |
260 |
- insinto /usr/share/icons/hicolor/scalable/apps/ |
261 |
- newins "${S}/pixmaps/SVG/icon-rune.svg" opendict.svg |
262 |
- |
263 |
- doman opendict.1 |
264 |
- dodoc README.txt TODO.txt doc/Plugin-HOWTO.html |
265 |
- |
266 |
- readme.gentoo_create_doc |
267 |
-} |
268 |
- |
269 |
-pkg_postinst() { |
270 |
- gnome2_pkg_postinst |
271 |
- readme.gentoo_print_elog |
272 |
-} |