1 |
commit: b761f8e6c681b9c652ebc48cfc370a614ec147c2 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 17 14:36:59 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 17 14:37:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=b761f8e6 |
7 |
|
8 |
dev-util/itstool: remove, 2.0.6 available in ::gentoo |
9 |
|
10 |
Closes: https://bugs.gentoo.org/653154 |
11 |
Package-Manager: Portage-2.3.69, Repoman-2.3.12 |
12 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
13 |
|
14 |
dev-util/itstool/files/itstool-segfault.patch | 58 --------------------------- |
15 |
dev-util/itstool/itstool-2.0.4-r1.ebuild | 37 ----------------- |
16 |
dev-util/itstool/itstool-2.0.5.ebuild | 40 ------------------ |
17 |
dev-util/itstool/itstool-9999.ebuild | 53 ------------------------ |
18 |
dev-util/itstool/metadata.xml | 13 ------ |
19 |
5 files changed, 201 deletions(-) |
20 |
|
21 |
diff --git a/dev-util/itstool/files/itstool-segfault.patch b/dev-util/itstool/files/itstool-segfault.patch |
22 |
deleted file mode 100644 |
23 |
index 840daccd..00000000 |
24 |
--- a/dev-util/itstool/files/itstool-segfault.patch |
25 |
+++ /dev/null |
26 |
@@ -1,58 +0,0 @@ |
27 |
-From 9b84c007a73e8275ca45762f1bfa3ab7c3a852e2 Mon Sep 17 00:00:00 2001 |
28 |
-From: Shaun McCance <shaunm@××××××.com> |
29 |
-Date: Wed, 25 Oct 2017 12:10:03 -0400 |
30 |
-Subject: [PATCH] Be more careful about libxml2 memory management |
31 |
- |
32 |
-I think this fixes https://github.com/itstool/itstool/issues/17 |
33 |
---- |
34 |
- itstool.in | 13 +++++++++++-- |
35 |
- 1 file changed, 11 insertions(+), 2 deletions(-) |
36 |
- |
37 |
-diff --git a/itstool.in b/itstool.in |
38 |
-index c1d0585..a16eba9 100755 |
39 |
---- a/itstool.in |
40 |
-+++ b/itstool.in |
41 |
-@@ -477,6 +477,7 @@ class Document (object): |
42 |
- if load_dtd: |
43 |
- ctxt.loadSubset(1) |
44 |
- if keep_entities: |
45 |
-+ ctxt.loadSubset(1) |
46 |
- ctxt.ctxtUseOptions(libxml2.XML_PARSE_DTDLOAD) |
47 |
- ctxt.replaceEntities(0) |
48 |
- else: |
49 |
-@@ -1043,6 +1044,7 @@ class Document (object): |
50 |
- if self._load_dtd: |
51 |
- ctxt.loadSubset(1) |
52 |
- if self._keep_entities: |
53 |
-+ ctxt.loadSubset(1) |
54 |
- ctxt.ctxtUseOptions(libxml2.XML_PARSE_DTDLOAD) |
55 |
- ctxt.replaceEntities(0) |
56 |
- else: |
57 |
-@@ -1069,7 +1071,9 @@ class Document (object): |
58 |
- ph_node = msg.get_placeholder(child.name).node |
59 |
- if self.has_child_elements(ph_node): |
60 |
- self.merge_translations(translations, None, ph_node, strict=strict) |
61 |
-- child.replaceNode(ph_node) |
62 |
-+ newnode = ph_node.copyNode(1) |
63 |
-+ newnode.setTreeDoc(self._doc) |
64 |
-+ child.replaceNode(newnode) |
65 |
- else: |
66 |
- repl = self.get_translated(ph_node, translations, strict=strict, lang=lang) |
67 |
- child.replaceNode(repl) |
68 |
-@@ -1084,10 +1088,15 @@ class Document (object): |
69 |
- (lang + ' ') if lang is not None else '', |
70 |
- msgstr.encode('utf-8'))) |
71 |
- self._xml_err = '' |
72 |
-+ ctxt.doc().freeDoc() |
73 |
- return node |
74 |
- retnode = node.copyNode(2) |
75 |
-+ retnode.setTreeDoc(self._doc) |
76 |
- for child in xml_child_iter(trnode): |
77 |
-- retnode.addChild(child.copyNode(1)) |
78 |
-+ newnode = child.copyNode(1) |
79 |
-+ newnode.setTreeDoc(self._doc) |
80 |
-+ retnode.addChild(newnode) |
81 |
-+ |
82 |
- ctxt.doc().freeDoc() |
83 |
- return retnode |
84 |
- |
85 |
|
86 |
diff --git a/dev-util/itstool/itstool-2.0.4-r1.ebuild b/dev-util/itstool/itstool-2.0.4-r1.ebuild |
87 |
deleted file mode 100644 |
88 |
index a04c0574..00000000 |
89 |
--- a/dev-util/itstool/itstool-2.0.4-r1.ebuild |
90 |
+++ /dev/null |
91 |
@@ -1,37 +0,0 @@ |
92 |
-# Copyright 1999-2019 Gentoo Authors |
93 |
-# Distributed under the terms of the GNU General Public License v2 |
94 |
- |
95 |
-EAPI="6" |
96 |
- |
97 |
-PYTHON_COMPAT=( python2_7 ) |
98 |
-PYTHON_REQ_USE="xml" |
99 |
- |
100 |
-inherit autotools python-single-r1 |
101 |
- |
102 |
-DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules" |
103 |
-HOMEPAGE="http://itstool.org/" |
104 |
-SRC_URI="https://github.com/itstool/itstool/archive/${PV}.tar.gz" |
105 |
- |
106 |
-LICENSE="GPL-3+" |
107 |
-SLOT="0" |
108 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-linux" |
109 |
-IUSE="" |
110 |
- |
111 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
112 |
- |
113 |
-RDEPEND="${PYTHON_DEPS} |
114 |
- dev-libs/libxml2[${PYTHON_USEDEP}]" |
115 |
-DEPEND="${RDEPEND}" |
116 |
- |
117 |
-src_prepare() { |
118 |
- eapply "${FILESDIR}/${PN}-segfault.patch" |
119 |
- python_fix_shebang . |
120 |
- eapply_user |
121 |
- eautoreconf |
122 |
-} |
123 |
- |
124 |
-src_test() { |
125 |
- suite="${S}"/tests/run_tests.py |
126 |
- PYTHONPATH="." "${PYTHON}" ${suite} || die "test suite '${suite}' failed" |
127 |
- unset suite |
128 |
-} |
129 |
|
130 |
diff --git a/dev-util/itstool/itstool-2.0.5.ebuild b/dev-util/itstool/itstool-2.0.5.ebuild |
131 |
deleted file mode 100644 |
132 |
index 95f43f8d..00000000 |
133 |
--- a/dev-util/itstool/itstool-2.0.5.ebuild |
134 |
+++ /dev/null |
135 |
@@ -1,40 +0,0 @@ |
136 |
-# Copyright 1999-2019 Gentoo Authors |
137 |
-# Distributed under the terms of the GNU General Public License v2 |
138 |
- |
139 |
-EAPI="7" |
140 |
- |
141 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6}) |
142 |
-PYTHON_REQ_USE="xml" |
143 |
- |
144 |
-inherit autotools python-single-r1 |
145 |
- |
146 |
-DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules" |
147 |
-HOMEPAGE="http://itstool.org/" |
148 |
-SRC_URI="https://github.com/itstool/itstool/archive/${PV}.tar.gz" |
149 |
- |
150 |
-LICENSE="GPL-3+" |
151 |
-SLOT="0" |
152 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-linux" |
153 |
-IUSE="" |
154 |
- |
155 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
156 |
- |
157 |
-RDEPEND="${PYTHON_DEPS} |
158 |
- dev-libs/libxml2[${PYTHON_USEDEP}]" |
159 |
-DEPEND="${RDEPEND}" |
160 |
- |
161 |
-PATCHES=( |
162 |
- "${FILESDIR}/${PN}-segfault.patch" |
163 |
-) |
164 |
- |
165 |
-src_prepare() { |
166 |
- python_fix_shebang . |
167 |
- eapply_user |
168 |
- eautoreconf |
169 |
-} |
170 |
- |
171 |
-src_test() { |
172 |
- suite="${S}"/tests/run_tests.py |
173 |
- PYTHONPATH="." "${PYTHON}" ${suite} || die "test suite '${suite}' failed" |
174 |
- unset suite |
175 |
-} |
176 |
|
177 |
diff --git a/dev-util/itstool/itstool-9999.ebuild b/dev-util/itstool/itstool-9999.ebuild |
178 |
deleted file mode 100644 |
179 |
index bd66841d..00000000 |
180 |
--- a/dev-util/itstool/itstool-9999.ebuild |
181 |
+++ /dev/null |
182 |
@@ -1,53 +0,0 @@ |
183 |
-# Copyright 1999-2019 Gentoo Authors |
184 |
-# Distributed under the terms of the GNU General Public License v2 |
185 |
- |
186 |
-EAPI=7 |
187 |
- |
188 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
189 |
-PYTHON_REQ_USE="xml" |
190 |
- |
191 |
-inherit autotools python-single-r1 |
192 |
- |
193 |
-if [[ ${PV} = 9999 ]]; then |
194 |
- inherit git-r3 |
195 |
-fi |
196 |
- |
197 |
-DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules" |
198 |
-HOMEPAGE="http://itstool.org/" |
199 |
-if [[ ${PV} = 9999 ]]; then |
200 |
- EGIT_REPO_URI="https://github.com/itstool/itstool.git" |
201 |
-else |
202 |
- SRC_URI="https://github.com/itstool/itstool/archive/${PV}.tar.gz" |
203 |
-fi |
204 |
- |
205 |
-LICENSE="GPL-3+" |
206 |
-SLOT="0" |
207 |
- |
208 |
-if [[ ${PV} = 9999 ]]; then |
209 |
- KEYWORDS="" |
210 |
-else |
211 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-linux" |
212 |
-fi |
213 |
- |
214 |
-IUSE="" |
215 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
216 |
- |
217 |
-RDEPEND="${PYTHON_DEPS} |
218 |
- dev-libs/libxml2[python,${PYTHON_USEDEP}]" |
219 |
-DEPEND="${RDEPEND}" |
220 |
- |
221 |
-PATCHES=( |
222 |
- "${FILESDIR}/${PN}-segfault.patch" |
223 |
-) |
224 |
- |
225 |
-src_prepare() { |
226 |
- python_fix_shebang . |
227 |
- eapply_user |
228 |
- eautoreconf |
229 |
-} |
230 |
- |
231 |
-src_test() { |
232 |
- suite="${S}"/tests/run_tests.py |
233 |
- PYTHONPATH="." "${PYTHON}" ${suite} || die "test suite '${suite}' failed" |
234 |
- unset suite |
235 |
-} |
236 |
|
237 |
diff --git a/dev-util/itstool/metadata.xml b/dev-util/itstool/metadata.xml |
238 |
deleted file mode 100644 |
239 |
index 90e918d8..00000000 |
240 |
--- a/dev-util/itstool/metadata.xml |
241 |
+++ /dev/null |
242 |
@@ -1,13 +0,0 @@ |
243 |
-<?xml version="1.0" encoding="UTF-8"?> |
244 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
245 |
-<pkgmetadata> |
246 |
- <maintainer type="project"> |
247 |
- <email>gnome@g.o</email> |
248 |
- <name>Gentoo GNOME Desktop</name> |
249 |
- </maintainer> |
250 |
- <longdescription lang="en">ITS Tool allows you to translate your XML documents |
251 |
- with gettext PO files, using rules from the W3C Internationalization Tag Set |
252 |
- (ITS) to determine what to translate and how to separate it into PO file |
253 |
- messages. |
254 |
-</longdescription> |
255 |
-</pkgmetadata> |