Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/uniconvertor/, media-gfx/uniconvertor/files/, profiles/
Date: Thu, 20 Aug 2020 11:40:00
Message-Id: 1597923584.5a97c4b6915076cb4e214460db9cbab0d9656c92.mgorny@gentoo
1 commit: 5a97c4b6915076cb4e214460db9cbab0d9656c92
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 20 11:34:09 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 11:39:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a97c4b6
7
8 media-gfx/uniconvertor: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/715682
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 media-gfx/uniconvertor/Manifest | 1 -
14 .../uniconvertor-2.0_pre379-ImageMagick7.patch | 72 ---------------------
15 .../files/uniconvertor-2.0_pre379-abs.patch | 10 ---
16 .../files/uniconvertor-2.0_pre379-import.patch | 30 ---------
17 .../files/uniconvertor-2.0_pre379-libimg.patch | 30 ---------
18 .../files/uniconvertor-2.0_pre379-test.patch | 37 -----------
19 media-gfx/uniconvertor/metadata.xml | 5 --
20 .../uniconvertor/uniconvertor-2.0_pre379-r2.ebuild | 73 ----------------------
21 profiles/package.mask | 6 --
22 9 files changed, 264 deletions(-)
23
24 diff --git a/media-gfx/uniconvertor/Manifest b/media-gfx/uniconvertor/Manifest
25 deleted file mode 100644
26 index 07266bb69cf..00000000000
27 --- a/media-gfx/uniconvertor/Manifest
28 +++ /dev/null
29 @@ -1 +0,0 @@
30 -DIST uniconvertor-2.0_pre379.tar.xz 1844780 BLAKE2B 51698d88941be700dd31e5527a8ffc8b2548d9f1323242e8f31a3ad00f2e4a2c5617be87443b130d664aeceea8b96ff17b72dfe32964854cc8f121351a918ec3 SHA512 3a0dd8e52addb391225ae148a673e3464a04e0d36e5955e496ef78e91597408706e5cbc06113b3e959446c6dd89aefa821f32ef81a5d1837a2a3d405a5a63dea
31
32 diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch
33 deleted file mode 100644
34 index c79b7923158..00000000000
35 --- a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch
36 +++ /dev/null
37 @@ -1,72 +0,0 @@
38 ---- a/src/uc2/libimg/_libimg.c 2013-02-25 11:20:00.000000000 +0100
39 -+++ b/src/uc2/libimg/_libimg.c 2016-07-11 09:41:03.721305655 +0200
40 -@@ -16,8 +16,8 @@
41 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
42 - */
43 -
44 -+#include <MagickWand/MagickWand.h>
45 - #include <Python.h>
46 --#include <wand/MagickWand.h>
47 -
48 - static PyObject *
49 - im_InitMagick(PyObject *self, PyObject *args) {
50 -@@ -184,33 +184,18 @@
51 - else if (img_type == GrayscaleType){
52 - return Py_BuildValue("s", "GrayscaleType");
53 - }
54 -- else if (img_type == GrayscaleMatteType){
55 -- return Py_BuildValue("s", "GrayscaleMatteType");
56 -- }
57 - else if (img_type == PaletteType){
58 - return Py_BuildValue("s", "PaletteType");
59 - }
60 -- else if (img_type == PaletteMatteType){
61 -- return Py_BuildValue("s", "PaletteMatteType");
62 -- }
63 - else if (img_type == TrueColorType){
64 - return Py_BuildValue("s", "TrueColorType");
65 - }
66 -- else if (img_type == TrueColorMatteType){
67 -- return Py_BuildValue("s", "TrueColorMatteType");
68 -- }
69 - else if (img_type == ColorSeparationType){
70 - return Py_BuildValue("s", "ColorSeparationType");
71 - }
72 -- else if (img_type == ColorSeparationMatteType){
73 -- return Py_BuildValue("s", "ColorSeparationMatteType");
74 -- }
75 - else if (img_type == OptimizeType){
76 - return Py_BuildValue("s", "OptimizeType");
77 - }
78 -- else if (img_type == PaletteBilevelMatteType){
79 -- return Py_BuildValue("s", "PaletteBilevelMatteType");
80 -- }
81 - else {
82 - return Py_BuildValue("s", "UndefinedType");
83 - }
84 -@@ -235,9 +220,7 @@
85 - //HSBColorspace,
86 - //HSLColorspace,
87 - //HWBColorspace,
88 --//Rec601LumaColorspace,
89 - //Rec601YCbCrColorspace,
90 --//Rec709LumaColorspace,
91 - //Rec709YCbCrColorspace,
92 - //LogColorspace,
93 - //CMYColorspace
94 -@@ -305,15 +288,9 @@
95 - else if (cs == HWBColorspace){
96 - return Py_BuildValue("s", "HWBColorspace");
97 - }
98 -- else if (cs == Rec601LumaColorspace){
99 -- return Py_BuildValue("s", "Rec601LumaColorspace");
100 -- }
101 - else if (cs == Rec601YCbCrColorspace){
102 - return Py_BuildValue("s", "Rec601YCbCrColorspace");
103 - }
104 -- else if (cs == Rec709LumaColorspace){
105 -- return Py_BuildValue("s", "Rec709LumaColorspace");
106 -- }
107 - else if (cs == Rec709YCbCrColorspace){
108 - return Py_BuildValue("s", "Rec709YCbCrColorspace");
109 - }
110
111 diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-abs.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-abs.patch
112 deleted file mode 100644
113 index c344f8b1c54..00000000000
114 --- a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-abs.patch
115 +++ /dev/null
116 @@ -1,10 +0,0 @@
117 ---- a/src/uc2/formats/sk1/sk1objs/curvelow.c
118 -+++ b/src/uc2/formats/sk1/sk1objs/curvelow.c
119 -@@ -24,6 +24,7 @@
120 -
121 -
122 - #include "math.h"
123 -+#include <stdlib.h> /* abs() */
124 - // #include "X11/Xlib.h"
125 - #include "curvelow.h"
126 -
127
128 diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch
129 deleted file mode 100644
130 index fae5535c649..00000000000
131 --- a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch
132 +++ /dev/null
133 @@ -1,30 +0,0 @@
134 - src/uc2/formats/sk1/model.py | 2 +-
135 - src/unittests/image_tests/__init__.py | 2 +-
136 - 2 files changed, 2 insertions(+), 2 deletions(-)
137 -
138 -diff --git a/src/uc2/formats/sk1/model.py b/src/uc2/formats/sk1/model.py
139 -index 33e2b55..59aecf2 100644
140 ---- a/src/uc2/formats/sk1/model.py
141 -+++ b/src/uc2/formats/sk1/model.py
142 -@@ -16,7 +16,7 @@
143 - # along with this program. If not, see <http://www.gnu.org/licenses/>.
144 -
145 - from copy import deepcopy
146 --import Image
147 -+from PIL import Image
148 -
149 - from uc2 import _, uc2const
150 - from uc2.formats.pdxf import const
151 -diff --git a/src/unittests/image_tests/__init__.py b/src/unittests/image_tests/__init__.py
152 -index 031cd9f..6165129 100644
153 ---- a/src/unittests/image_tests/__init__.py
154 -+++ b/src/unittests/image_tests/__init__.py
155 -@@ -16,7 +16,7 @@
156 - # along with this program. If not, see <http://www.gnu.org/licenses/>.
157 -
158 - import unittest, os, shutil
159 --import Image
160 -+from PIL import Image
161 -
162 -
163 - _pkgdir = __path__[0]
164
165 diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch
166 deleted file mode 100644
167 index f84b332ec63..00000000000
168 --- a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch
169 +++ /dev/null
170 @@ -1,30 +0,0 @@
171 - setup.py | 16 ++++++++--------
172 - 1 file changed, 8 insertions(+), 8 deletions(-)
173 -
174 -diff --git a/setup.py b/setup.py
175 -index 46cda83..5cfd22a 100644
176 ---- a/setup.py
177 -+++ b/setup.py
178 -@@ -184,14 +184,14 @@ modules.append(cairo_module)
179 - # libraries=['potrace'])
180 - #modules.append(trace_module)
181 -
182 --#libimg_src = os.path.join(src_path, 'uc2', 'libimg')
183 --#files = make_source_list(libimg_src, ['_libimg.c', ])
184 --#include_dirs = make_source_list(include_path, ['ImageMagick', ])
185 --#libimg_module = Extension('uc2.libimg._libimg',
186 --# define_macros=[('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0')],
187 --# sources=files, include_dirs=include_dirs,
188 --# libraries=['MagickWand'])
189 --#modules.append(libimg_module)
190 -+libimg_src = os.path.join(src_path, 'uc2', 'libimg')
191 -+files = make_source_list(libimg_src, ['_libimg.c', ])
192 -+include_dirs = make_source_list(include_path, ['ImageMagick-6', ])
193 -+libimg_module = Extension('uc2.libimg._libimg',
194 -+ define_macros=[('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0')],
195 -+ sources=files, include_dirs=include_dirs,
196 -+ libraries=['MagickWand'])
197 -+modules.append(libimg_module)
198 -
199 - if os.path.isfile(os.path.join(include_path, 'lcms2.h')):
200 - pycms_src = os.path.join(src_path, 'uc2', 'cms')
201
202 diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch
203 deleted file mode 100644
204 index 2a3e3a00601..00000000000
205 --- a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch
206 +++ /dev/null
207 @@ -1,37 +0,0 @@
208 - src/unittests/_libimg_tests/__init__.py | 2 +-
209 - src/unittests/image_tests/__init__.py | 4 +++-
210 - 2 files changed, 4 insertions(+), 2 deletions(-)
211 -
212 -diff --git a/src/unittests/_libimg_tests/__init__.py b/src/unittests/_libimg_tests/__init__.py
213 -index 3891290..cdc7dd6 100644
214 ---- a/src/unittests/_libimg_tests/__init__.py
215 -+++ b/src/unittests/_libimg_tests/__init__.py
216 -@@ -84,7 +84,7 @@ class TestCoreLibImgFunctions(unittest.TestCase):
217 - def test07_image_type(self):
218 - names = []
219 - names.append(['type_bilevel.png', 'BilevelType'])
220 -- names.append(['type_grayscale.png', 'GrayscaleType'])
221 -+ names.append(['type_grayscale.png', 'BilevelType'])
222 - names.append(['type_palette.png', 'PaletteType'])
223 - names.append(['type_palettematte.png', 'PaletteMatteType'])
224 - names.append(['type_truecolor.png', 'TrueColorType'])
225 -diff --git a/src/unittests/image_tests/__init__.py b/src/unittests/image_tests/__init__.py
226 -index 031cd9f..265743a 100644
227 ---- a/src/unittests/image_tests/__init__.py
228 -+++ b/src/unittests/image_tests/__init__.py
229 -@@ -42,6 +42,7 @@ class TestImageFunctions(unittest.TestCase):
230 - def tearDown(self):pass
231 - # shutil.rmtree(self.save_dir)
232 -
233 -+ @unittest.skip("Broken")
234 - def test01_create_new_image(self):
235 - for mode in MODES:
236 - image = Image.new(mode, (100, 100))
237 -@@ -77,6 +78,7 @@ class TestImageFunctions(unittest.TestCase):
238 - result = False
239 - self.assertNotEquals(False, result)
240 -
241 -+ @unittest.skip("Broken")
242 - def test04_load_unsupported_images(self):
243 - for name in FILES2:
244 - filename = os.path.join(self.load_dir, name)
245
246 diff --git a/media-gfx/uniconvertor/metadata.xml b/media-gfx/uniconvertor/metadata.xml
247 deleted file mode 100644
248 index 1b2becffa26..00000000000
249 --- a/media-gfx/uniconvertor/metadata.xml
250 +++ /dev/null
251 @@ -1,5 +0,0 @@
252 -<?xml version="1.0" encoding="UTF-8"?>
253 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
254 -<pkgmetadata>
255 - <!-- maintainer-needed -->
256 -</pkgmetadata>
257
258 diff --git a/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild b/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild
259 deleted file mode 100644
260 index d3c2dfdf93f..00000000000
261 --- a/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild
262 +++ /dev/null
263 @@ -1,73 +0,0 @@
264 -# Copyright 1999-2020 Gentoo Authors
265 -# Distributed under the terms of the GNU General Public License v2
266 -
267 -EAPI=6
268 -
269 -PYTHON_COMPAT=( python2_7 )
270 -
271 -inherit distutils-r1 xdg-utils
272 -
273 -DESCRIPTION="Convert vector graphic file formats like .cdr, .svg, wmf and more."
274 -HOMEPAGE="https://sk1project.net/modules.php?name=Products&product=uniconvertor"
275 -SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
276 -
277 -KEYWORDS="amd64 ~arm ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~x86-solaris"
278 -SLOT="0"
279 -LICENSE="GPL-2 LGPL-2"
280 -IUSE=""
281 -
282 -RDEPEND="
283 - dev-python/pycairo[${PYTHON_USEDEP}]
284 - media-gfx/imagemagick:=
285 - media-libs/lcms:2
286 - dev-python/pillow[${PYTHON_USEDEP}]"
287 -DEPEND="${RDEPEND}
288 - virtual/pkgconfig
289 - app-text/ghostscript-gpl"
290 -
291 -PATCHES=(
292 - "${FILESDIR}"/${P}-import.patch
293 - "${FILESDIR}"/${P}-libimg.patch
294 - "${FILESDIR}"/${P}-test.patch
295 - "${FILESDIR}"/${P}-abs.patch
296 - )
297 -
298 -python_prepare_all() {
299 - local wand
300 - wand=$(pkg-config --libs MagickWand | sed -e "s:^ *::g" -e "s: *$::g" -e "s:-l:\':g" -e "s: :',:g" -e "s:$:':g" -e "s:,'$::g")
301 -
302 - distutils-r1_python_prepare_all
303 -
304 - sed \
305 - -e "s@/usr/include@${EPREFIX}/usr/include@" \
306 - -e "s@/usr/share@${EPREFIX}/usr/share@" \
307 - -e "/libraries/s:'MagickWand':${wand}:g" \
308 - -i setup.py || die
309 -
310 - # https://bugs.gentoo.org/581816
311 - if has_version ">=media-gfx/imagemagick-7.0" ; then
312 - sed -e "s:ImageMagick-6:ImageMagick-7:" -i setup.py || die
313 - eapply "${FILESDIR}"/${P}-ImageMagick7.patch
314 - fi
315 -
316 - ln -sf \
317 - "${EPREFIX}"/usr/share/imagemagick/sRGB.icm \
318 - src/unittests/cms_tests/cms_data/sRGB.icm || die
319 -}
320 -
321 -python_test() {
322 - einfo ${PYTHONPATH}
323 - #distutils_install_for_testing
324 - cd src/unittests || die
325 - ${EPYTHON} all_tests.py || die
326 -}
327 -
328 -pkg_postinst() {
329 - xdg_mimeinfo_database_update
330 - xdg_desktop_database_update
331 -}
332 -
333 -pkg_postrm() {
334 - xdg_mimeinfo_database_update
335 - xdg_desktop_database_update
336 -}
337
338 diff --git a/profiles/package.mask b/profiles/package.mask
339 index f9e25a7f4eb..3fef9eb212e 100644
340 --- a/profiles/package.mask
341 +++ b/profiles/package.mask
342 @@ -853,12 +853,6 @@ dev-python/algopy
343 # Bug #730640
344 net-misc/termpkg
345
346 -# Michał Górny <mgorny@g.o> (2020-07-04)
347 -# Unmaintained. Python 2 only. Effectively depends on vulnerable
348 -# version of dev-python/pillow. No revdeps. Multiple bugs open.
349 -# Removal in 30 days. Bug #715682.
350 -media-gfx/uniconvertor
351 -
352 # Stephan Hartmann <stha09@××××××××××.com> (2020-06-29)
353 # Dev channel releases are only for people who
354 # are developers or want more experimental features