Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pillow/files/, dev-python/pillow/
Date: Sun, 26 Jan 2020 13:33:46
Message-Id: 1580045587.b3b0fd5793cd2be4107c57db406aa4c86f4e639e.soap@gentoo
1 commit: b3b0fd5793cd2be4107c57db406aa4c86f4e639e
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 13:33:07 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 13:33:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3b0fd57
7
8 dev-python/pillow: Remove old
9
10 Closes: https://github.com/gentoo/gentoo/pull/14447
11 Package-Manager: Portage-2.3.85, Repoman-2.3.20
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 dev-python/pillow/Manifest | 2 -
15 .../pillow/files/pillow-3.4.2-no-scripts.patch | 12 ---
16 .../pillow/files/pillow-5.4.1-pkg-config.patch | 28 ------
17 .../files/pillow-5.4.1-toolchain-paths.patch | 12 ---
18 dev-python/pillow/pillow-3.4.2-r1.ebuild | 102 --------------------
19 dev-python/pillow/pillow-5.4.1.ebuild | 106 ---------------------
20 6 files changed, 262 deletions(-)
21
22 diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest
23 index 6fde61b6d7f..aa5451c56ce 100644
24 --- a/dev-python/pillow/Manifest
25 +++ b/dev-python/pillow/Manifest
26 @@ -1,5 +1,3 @@
27 -DIST Pillow-3.4.2.zip 11042238 BLAKE2B 334af6eeadb3203b51572eca6ad9c196f3eeac14da0f1aedc351db692b33d413fdf5bc5c8564d2f53c324d9485dbdbda664b75a570b779e24f238c21829b4a39 SHA512 5e05206db5bc1b4177384f7e91ee79015c6e1bbdc7c31c997da054391b9b5ec7c1ebdec258a33f598986533894f3324b03d0b4b385b94e72a0517a3437553b39
28 -DIST pillow-5.4.1.tar.gz 15799745 BLAKE2B d9e3851a80a1f94d7292852b9ab806d9a26870795f499bb109a440e64c07112055a4cd382688b977f3c3ae76ed3d6fd38460afff594f964338afa668d288e4de SHA512 20b75ab50df7e9545c76d66ad585922d1f86fbcf8df9d2566882ab8929c3122573b9ec622766523ec46f5e7a98740cc78ff192e3e8f08ab0b77a7f2b033a7f62
29 DIST pillow-6.2.1.tar.gz 37405020 BLAKE2B bf3592bcc159902acc35899463c8949daf7cc31f03283684dc55d5f1517fdfbc07e1feb73b65b0b9cb4052ee1d5281558b38f9bd08240d0fc5727909b98da158 SHA512 ee757ec2b8382d6d56fd0f0cdd4cd36440cc37f05741e27fc661449a16dc7c868966772060adb283de1b1b5ebc49b8eec46e0bdcdad9f5f4d5ebd77feab7ad31
30 DIST pillow-6.2.2.tar.gz 37538464 BLAKE2B dfd9b81490a8adb4e12ecbf6764e4e27573c9a087877ac37275a9fb42b89f0cd8cab8d7ca0b45c9a00bf38ca5b1d83de68f5fc35ff19031bfcc1495ee3a5f5b7 SHA512 0f2c3bfd921247fa11645eadc42e184182a401ccbdb8f10215312e96c8c28f2382f5413b56acd78fab1dffc6fa53cc8588ce960543af65c4769451874c2c918e
31 DIST pillow-7.0.0.tar.gz 37880130 BLAKE2B be940cbdced884c33f2b3979be113b1bc8974814c9532fe80203395184f90eccba1cd9a5017fec1f0c30a21ff06abc46560d5c6d67938dbf640f2e8e08b7e554 SHA512 187173a525d4f3f01b4898633263b53a311f337aa7b159c64f79ba8c7006fd44798a058e7cc5d8f1116bad008e4142ff303456692329fe73b0e115ef5c225d73
32
33 diff --git a/dev-python/pillow/files/pillow-3.4.2-no-scripts.patch b/dev-python/pillow/files/pillow-3.4.2-no-scripts.patch
34 deleted file mode 100644
35 index a8aa0ecc0d0..00000000000
36 --- a/dev-python/pillow/files/pillow-3.4.2-no-scripts.patch
37 +++ /dev/null
38 @@ -1,12 +0,0 @@
39 -diff --git a/setup.py b/setup.py
40 -index 5257e748..410ce788 100644
41 ---- a/setup.py
42 -+++ b/setup.py
43 -@@ -746,7 +746,6 @@ setup(name=NAME,
44 - ext_modules=[Extension("PIL._imaging", ["_imaging.c"])],
45 - include_package_data=True,
46 - packages=find_packages(),
47 -- scripts=glob.glob("Scripts/*.py"),
48 - test_suite='nose.collector',
49 - keywords=["Imaging", ],
50 - license='Standard PIL License',
51
52 diff --git a/dev-python/pillow/files/pillow-5.4.1-pkg-config.patch b/dev-python/pillow/files/pillow-5.4.1-pkg-config.patch
53 deleted file mode 100644
54 index ec227b3f80a..00000000000
55 --- a/dev-python/pillow/files/pillow-5.4.1-pkg-config.patch
56 +++ /dev/null
57 @@ -1,28 +0,0 @@
58 -diff -Naur a/setup.py b/setup.py
59 ---- a/setup.py 2019-01-06 12:12:16.000000000 +0000
60 -+++ b/setup.py 2019-01-08 23:04:45.574698210 +0000
61 -@@ -197,12 +197,13 @@
62 -
63 - def _pkg_config(name):
64 - try:
65 -+ command = os.environ.get('PKG_CONFIG', 'pkg-config')
66 - command_libs = [
67 -- 'pkg-config',
68 -+ command,
69 - '--libs-only-L', name,
70 - ]
71 - command_cflags = [
72 -- 'pkg-config',
73 -+ command,
74 - '--cflags-only-I', name,
75 - ]
76 - if not DEBUG:
77 -@@ -298,7 +299,7 @@
78 - _add_directory(include_dirs, "src/libImaging")
79 -
80 - pkg_config = None
81 -- if _cmd_exists('pkg-config'):
82 -+ if _cmd_exists(os.environ.get('PKG_CONFIG', 'pkg-config')):
83 - pkg_config = _pkg_config
84 -
85 - #
86
87 diff --git a/dev-python/pillow/files/pillow-5.4.1-toolchain-paths.patch b/dev-python/pillow/files/pillow-5.4.1-toolchain-paths.patch
88 deleted file mode 100644
89 index d3e95eef516..00000000000
90 --- a/dev-python/pillow/files/pillow-5.4.1-toolchain-paths.patch
91 +++ /dev/null
92 @@ -1,12 +0,0 @@
93 -diff -Naur a/setup.py b/setup.py
94 ---- a/setup.py 2019-01-08 23:06:33.082873069 +0000
95 -+++ b/setup.py 2019-01-08 23:06:47.707165225 +0000
96 -@@ -356,7 +356,7 @@
97 - for d in os.environ[k].split(os.path.pathsep):
98 - _add_directory(library_dirs, d)
99 -
100 -- prefix = sysconfig.get_config_var("prefix")
101 -+ prefix = None
102 - if prefix:
103 - _add_directory(library_dirs, os.path.join(prefix, "lib"))
104 - _add_directory(include_dirs, os.path.join(prefix, "include"))
105
106 diff --git a/dev-python/pillow/pillow-3.4.2-r1.ebuild b/dev-python/pillow/pillow-3.4.2-r1.ebuild
107 deleted file mode 100644
108 index bddd6556d13..00000000000
109 --- a/dev-python/pillow/pillow-3.4.2-r1.ebuild
110 +++ /dev/null
111 @@ -1,102 +0,0 @@
112 -# Copyright 1999-2020 Gentoo Authors
113 -# Distributed under the terms of the GNU General Public License v2
114 -
115 -EAPI=6
116 -
117 -PYTHON_COMPAT=( python2_7 python3_6 )
118 -PYTHON_REQ_USE='tk?,threads(+)'
119 -
120 -inherit distutils-r1 eutils virtualx
121 -
122 -MY_PN=Pillow
123 -MY_P=${MY_PN}-${PV}
124 -
125 -DESCRIPTION="Python Imaging Library (fork)"
126 -HOMEPAGE="https://github.com/python-imaging/Pillow https://pypi.org/project/Pillow/"
127 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
128 -
129 -LICENSE="HPND"
130 -SLOT="0"
131 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
132 -IUSE="doc examples jpeg jpeg2k lcms test tiff tk truetype webp zlib"
133 -RESTRICT="!test? ( test )"
134 -
135 -REQUIRED_USE="test? ( jpeg tiff )"
136 -
137 -RDEPEND="
138 - jpeg? ( virtual/jpeg:0 )
139 - jpeg2k? ( media-libs/openjpeg:2= )
140 - lcms? ( media-libs/lcms:2= )
141 - tiff? ( media-libs/tiff:0= )
142 - truetype? ( media-libs/freetype:2= )
143 - webp? ( media-libs/libwebp:0= )
144 - zlib? ( sys-libs/zlib:0= )"
145 -DEPEND="${RDEPEND}
146 - app-arch/unzip
147 - dev-python/setuptools[${PYTHON_USEDEP}]
148 - doc? (
149 - dev-python/sphinx[${PYTHON_USEDEP}]
150 - dev-python/sphinx-better-theme[${PYTHON_USEDEP}]
151 - >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}]
152 - <dev-python/sphinx_rtd_theme-0.2[${PYTHON_USEDEP}]
153 - )
154 - test? ( dev-python/nose[${PYTHON_USEDEP}] )
155 - "
156 -
157 -S="${WORKDIR}/${MY_P}"
158 -
159 -# See _render and _clean in Tests/test_imagefont.py
160 -DISTUTILS_IN_SOURCE_BUILD=1
161 -
162 -PATCHES=(
163 - "${FILESDIR}/pillow-3.4.2-no-scripts.patch"
164 -)
165 -
166 -python_prepare_all() {
167 - # Disable all the stuff we don't want.
168 - local f
169 - for f in jpeg lcms tiff tk webp zlib; do
170 - if ! use ${f}; then
171 - sed -i -e "s:feature.${f} =:& None #:" setup.py || die
172 - fi
173 - done
174 - if ! use truetype; then
175 - sed -i -e 's:feature.freetype =:& None #:' setup.py || die
176 - fi
177 - if ! use jpeg2k; then
178 - sed -i -e 's:feature.jpeg2000 =:& None #:' setup.py || die
179 - fi
180 -
181 - sed \
182 - -e "/required/s:=.*:= set():g" \
183 - -e "/if f in/s:'jpeg', 'libz'::g" \
184 - -i setup.py || die
185 -
186 - distutils-r1_python_prepare_all
187 -}
188 -
189 -python_compile_all() {
190 - use doc && emake -C docs html
191 -}
192 -
193 -python_test() {
194 - "${PYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}"
195 - virtx nosetests -vx Tests/test_*.py
196 -}
197 -
198 -python_install() {
199 - python_doheader libImaging/{Imaging.h,ImPlatform.h}
200 -
201 - distutils-r1_python_install
202 -}
203 -
204 -python_install_all() {
205 - use doc && local HTML_DOCS=( docs/_build/html/. )
206 - if use examples ; then
207 - docinto examples
208 - dodoc Scripts/*
209 - docompress -x /usr/share/doc/${PF}/examples
210 - fi
211 -
212 - distutils-r1_python_install_all
213 -}
214
215 diff --git a/dev-python/pillow/pillow-5.4.1.ebuild b/dev-python/pillow/pillow-5.4.1.ebuild
216 deleted file mode 100644
217 index 2a2cb5034bb..00000000000
218 --- a/dev-python/pillow/pillow-5.4.1.ebuild
219 +++ /dev/null
220 @@ -1,106 +0,0 @@
221 -# Copyright 1999-2020 Gentoo Authors
222 -# Distributed under the terms of the GNU General Public License v2
223 -
224 -EAPI=7
225 -
226 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
227 -PYTHON_REQ_USE='tk?,threads(+)'
228 -
229 -inherit distutils-r1 toolchain-funcs virtualx
230 -
231 -MY_PN=Pillow
232 -MY_P=${MY_PN}-${PV}
233 -
234 -DESCRIPTION="Python Imaging Library (fork)"
235 -HOMEPAGE="https://python-pillow.org/"
236 -SRC_URI="https://github.com/python-pillow/Pillow/archive/${PV}.tar.gz -> ${P}.tar.gz"
237 -
238 -LICENSE="HPND"
239 -SLOT="0"
240 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux"
241 -IUSE="doc examples imagequant jpeg jpeg2k lcms test tiff tk truetype webp zlib"
242 -RESTRICT="!test? ( test )"
243 -
244 -REQUIRED_USE="test? ( jpeg tiff )"
245 -
246 -RDEPEND="
247 - dev-python/olefile[${PYTHON_USEDEP}]
248 - imagequant? ( media-gfx/libimagequant:0 )
249 - jpeg? ( virtual/jpeg:0 )
250 - jpeg2k? ( media-libs/openjpeg:2= )
251 - lcms? ( media-libs/lcms:2= )
252 - tiff? ( media-libs/tiff:0=[jpeg,zlib] )
253 - truetype? ( media-libs/freetype:2= )
254 - webp? ( media-libs/libwebp:0= )
255 - zlib? ( sys-libs/zlib:0= )"
256 -DEPEND="${RDEPEND}
257 - dev-python/setuptools[${PYTHON_USEDEP}]
258 - doc? (
259 - dev-python/sphinx[${PYTHON_USEDEP}]
260 - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
261 - )
262 - test? (
263 - dev-python/pytest[${PYTHON_USEDEP}]
264 - media-gfx/imagemagick[png]
265 - )
266 -"
267 -
268 -S="${WORKDIR}/${MY_P}"
269 -
270 -PATCHES=(
271 - "${FILESDIR}"/${PN}-5.4.1-{pkg-config,toolchain-paths}.patch
272 -)
273 -
274 -python_configure_all() {
275 - # It's important that these flags are also passed during the install phase
276 - # as well. Make sure of that if you change the lines below. See bug 661308.
277 - mydistutilsargs=(
278 - build_ext
279 - --disable-platform-guessing
280 - $(use_enable truetype freetype)
281 - $(use_enable jpeg)
282 - $(use_enable jpeg2k jpeg2000)
283 - $(use_enable lcms)
284 - $(use_enable tiff)
285 - $(use_enable imagequant)
286 - $(use_enable webp)
287 - $(use_enable webp webpmux)
288 - $(use_enable zlib)
289 - )
290 -
291 - # setup.py sucks at adding the right toolchain paths but it does
292 - # accept additional ones from INCLUDE and LIB so set these. You
293 - # wouldn't normally need these at all as the toolchain should look
294 - # here anyway but this setup.py does stupid things.
295 - export \
296 - INCLUDE=${ESYSROOT}/usr/include \
297 - LIB=${ESYSROOT}/usr/$(get_libdir)
298 -
299 - # We have patched in this env var.
300 - tc-export PKG_CONFIG
301 -}
302 -
303 -python_compile_all() {
304 - use doc && emake -C docs html
305 -}
306 -
307 -python_test() {
308 - "${PYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}"
309 - # no:relaxed: pytest-relaxed plugin make our tests fail. deactivate if installed
310 - virtx pytest -vv -p no:relaxed
311 -}
312 -
313 -python_install() {
314 - python_doheader src/libImaging/*.h
315 - distutils-r1_python_install
316 -}
317 -
318 -python_install_all() {
319 - use doc && local HTML_DOCS=( docs/_build/html/. )
320 - if use examples ; then
321 - docinto example
322 - dodoc docs/example/*
323 - docompress -x /usr/share/doc/${PF}/example
324 - fi
325 - distutils-r1_python_install_all
326 -}