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/svg2rlg/files/, profiles/, media-gfx/svg2rlg/
Date: Sat, 23 May 2020 09:46:06
Message-Id: 1590227004.870019d3f18f1b0157e506c65c478f8b808be0dc.mgorny@gentoo
1 commit: 870019d3f18f1b0157e506c65c478f8b808be0dc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 23 09:43:24 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 09:43:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=870019d3
7
8 media-gfx/svg2rlg: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/718572
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 media-gfx/svg2rlg/Manifest | 1 -
14 media-gfx/svg2rlg/files/svg2rlg-issue-3.patch | 19 -----------
15 media-gfx/svg2rlg/files/svg2rlg-issue-6.patch | 47 ---------------------------
16 media-gfx/svg2rlg/files/svg2rlg-issue-7.patch | 16 ---------
17 media-gfx/svg2rlg/metadata.xml | 11 -------
18 media-gfx/svg2rlg/svg2rlg-0.3.ebuild | 37 ---------------------
19 profiles/package.mask | 1 -
20 7 files changed, 132 deletions(-)
21
22 diff --git a/media-gfx/svg2rlg/Manifest b/media-gfx/svg2rlg/Manifest
23 deleted file mode 100644
24 index 6bdc5c97fd5..00000000000
25 --- a/media-gfx/svg2rlg/Manifest
26 +++ /dev/null
27 @@ -1 +0,0 @@
28 -DIST svg2rlg-0.3.tar.gz 490908 BLAKE2B a3383326d1d503965f93ff3b7b9f144835d5c7ba1613b0bf215ce31cc968eee76c826a170f62a5c4f173c8326dbe4a9f47a9f6f1a1345d2ed9ffd5350077e2e9 SHA512 44efebe7d978a46ab26b4bc332ad08db9236a86b160d73fc1fdc2b54c44bb2604147ae458eea1fe81c579c7f94e39869459567a6b6b3a551d6db6132816c4723
29
30 diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch
31 deleted file mode 100644
32 index df70bf345aa..00000000000
33 --- a/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch
34 +++ /dev/null
35 @@ -1,19 +0,0 @@
36 -commit e5aa6784a10717641bc5b6d9d77a5029f815654a
37 -Author: yac <yac@×××××××.net>
38 -Date: Wed May 8 04:59:17 2013 +0200
39 -
40 - fix #3
41 -
42 - remove windows only function which is useless anyway
43 -
44 -diff --git a/svg2rlg.py b/svg2rlg.py
45 -index 1c5f80c..2b35c62 100644
46 ---- a/svg2rlg.py
47 -+++ b/svg2rlg.py
48 -@@ -1574,5 +1574,3 @@ if __name__ == "__main__":
49 -
50 - drawing = svg2rlg(source)
51 - drawing.save(formats=['pdf'],outDir='.',fnRoot=name)
52 --
53 -- os.startfile(name + '.pdf')
54 -\ No newline at end of file
55
56 diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch
57 deleted file mode 100644
58 index 6ca750e7919..00000000000
59 --- a/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch
60 +++ /dev/null
61 @@ -1,47 +0,0 @@
62 -commit e42661b9cd6d7b71ce5e7674ac8eff25c74db07a
63 -Author: yac <yac@×××××××.net>
64 -Date: Wed May 8 05:00:32 2013 +0200
65 -
66 - use entry_point fixes #6
67 -
68 -diff --git a/setup.py b/setup.py
69 -index 9e00fba..512fa79 100644
70 ---- a/setup.py
71 -+++ b/setup.py
72 -@@ -1,6 +1,6 @@
73 - #!/usr/bin/python
74 - # -*- coding: utf-8 -*-
75 --from distutils.core import setup
76 -+from setuptools import setup
77 -
78 - setup(
79 - name = 'svg2rlg',
80 -@@ -12,6 +12,8 @@ setup(
81 - url = 'http://code.google.com/p/svg2rlg/',
82 - download_url = 'http://pypi.python.org/pypi/svg2rlg/',
83 - requires = ['reportlab'],
84 -+ entry_points = {
85 -+ 'console_scripts': ['svg2rlg = svg2rlg:main']},
86 -
87 - classifiers=[
88 - 'Environment :: Console',
89 -@@ -30,4 +32,4 @@ The authors motivation was to have a more robust handling of
90 - SVG files in the **rst2pdf** tool. Specific to be able to handle
91 - the quirks needed to include SVG export from matplotlib.
92 - '''
93 --)
94 -\ No newline at end of file
95 -+)
96 -diff --git a/svg2rlg.py b/svg2rlg.py
97 -index 2b35c62..cc812b2 100644
98 ---- a/svg2rlg.py
99 -+++ b/svg2rlg.py
100 -@@ -1562,7 +1562,7 @@ def svg2rlg(filename):
101 -
102 - return renderer.render(xml)
103 -
104 --if __name__ == "__main__":
105 -+def main():
106 - import sys
107 - import os
108 -
109
110 diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch
111 deleted file mode 100644
112 index 8145f416f80..00000000000
113 --- a/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch
114 +++ /dev/null
115 @@ -1,16 +0,0 @@
116 -commit c30b4f90cac69934761e44bf59a8ba8a3827d647
117 -Author: yac <yac@×××××××.net>
118 -Date: Wed May 8 05:44:00 2013 +0200
119 -
120 - fix #7
121 -
122 -diff --git a/svg2rlg.py b/svg2rlg.py
123 -index cc812b2..80d72de 100644
124 ---- a/svg2rlg.py
125 -+++ b/svg2rlg.py
126 -@@ -1573,4 +1573,4 @@ def main():
127 - name, ext = os.path.splitext(filename)
128 -
129 - drawing = svg2rlg(source)
130 -- drawing.save(formats=['pdf'],outDir='.',fnRoot=name)
131 -+ drawing.save(formats=['pdf'],outDir=os.getcwd(),fnRoot=name)
132
133 diff --git a/media-gfx/svg2rlg/metadata.xml b/media-gfx/svg2rlg/metadata.xml
134 deleted file mode 100644
135 index bba039ed4ae..00000000000
136 --- a/media-gfx/svg2rlg/metadata.xml
137 +++ /dev/null
138 @@ -1,11 +0,0 @@
139 -<?xml version="1.0" encoding="UTF-8"?>
140 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
141 -<pkgmetadata>
142 - <!-- maintainer-needed -->
143 - <longdescription lang="en">
144 - The tool can be used as a console application to convert SVG to PDF files.
145 - </longdescription>
146 - <upstream>
147 - <remote-id type="pypi">svg2rlg</remote-id>
148 - </upstream>
149 -</pkgmetadata>
150
151 diff --git a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
152 deleted file mode 100644
153 index 45e19a44391..00000000000
154 --- a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
155 +++ /dev/null
156 @@ -1,37 +0,0 @@
157 -# Copyright 1999-2020 Gentoo Authors
158 -# Distributed under the terms of the GNU General Public License v2
159 -
160 -EAPI=5
161 -
162 -PYTHON_COMPAT=( python2_7 )
163 -
164 -inherit distutils-r1
165 -
166 -DESCRIPTION="python tool to convert SVG files to reportlab graphics"
167 -HOMEPAGE="https://code.google.com/p/svg2rlg/"
168 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
169 -
170 -LICENSE="BSD"
171 -SLOT="0"
172 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 sparc x86"
173 -IUSE=""
174 -
175 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
176 -RDEPEND="${DEPEND}
177 - dev-python/reportlab[${PYTHON_USEDEP}]"
178 -
179 -PATCHES=(
180 - "${FILESDIR}/${PN}-issue-3.patch"
181 - "${FILESDIR}/${PN}-issue-6.patch"
182 - "${FILESDIR}/${PN}-issue-7.patch"
183 -)
184 -
185 -python_test() {
186 - ${EPYTHON} test_svg2rlg.py
187 -}
188 -
189 -python_prepare_all() {
190 - find -name '*.py' -exec sed -i 's:\r::' {} + || die
191 -
192 - distutils-r1_python_prepare_all
193 -}
194
195 diff --git a/profiles/package.mask b/profiles/package.mask
196 index 8c77d691d24..f1accbeae63 100644
197 --- a/profiles/package.mask
198 +++ b/profiles/package.mask
199 @@ -509,7 +509,6 @@ media-video/griffith
200 # that is dead and broken with py3.7+. svg2rlg is only used by pdfrw.
201 # Removal in 30 days. Bug #718572.
202 dev-python/rst2pdf
203 -media-gfx/svg2rlg
204
205 # Michael Orlitzky <mjo@g.o> (2020-04-19)
206 # Stuck on Python 3.6, support for which already required