Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pillow/
Date: Sun, 22 Oct 2017 18:35:10
Message-Id: 1508697303.fae497a5da7f72854f58b467219a105ccbeaba6f.patrick@gentoo
1 commit: fae497a5da7f72854f58b467219a105ccbeaba6f
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 22 18:34:48 2017 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 22 18:35:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fae497a5
7
8 dev-python/pillow: Bump
9
10 Package-Manager: Portage-2.3.12, Repoman-2.3.3
11
12 dev-python/pillow/Manifest | 1 +
13 dev-python/pillow/pillow-4.3.0.ebuild | 82 +++++++++++++++++++++++++++++++++++
14 2 files changed, 83 insertions(+)
15
16 diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest
17 index 41aa52af0fc..0e3db490a26 100644
18 --- a/dev-python/pillow/Manifest
19 +++ b/dev-python/pillow/Manifest
20 @@ -1,2 +1,3 @@
21 DIST Pillow-3.4.2.zip 11042238 SHA256 85b237840ad8b30a1572bf9e3898a26c77910a56554d73ed4f58a42197c2e4c2 SHA512 5e05206db5bc1b4177384f7e91ee79015c6e1bbdc7c31c997da054391b9b5ec7c1ebdec258a33f598986533894f3324b03d0b4b385b94e72a0517a3437553b39 WHIRLPOOL f92d4320ca5fd3e004a2ace41d14f0816dbea6fcfc9b10739a59d2dd393725a47c28f5b9f643d0b3243b9003701094ee953b38118412647155e8ba13fafe0582
22 DIST Pillow-4.2.1.tar.gz 12673417 SHA256 c724f65870e545316f9e82e4c6d608ab5aa9dd82d5185e5b2e72119378740073 SHA512 8a1c691f067c1127b941a94ae991c728c94eab876fe2a511ed0ad8af9702d4969325bd565b11e656ffefe867bf385725a5c14e3c28f8945730fa21986f934f69 WHIRLPOOL af93b67a60843d9f853921d5dd1332209cefc87a9680201cca5010f935527abcacac57e9d2afeac6bd3ccf8ab6636ffc2321e0888b73babfdb9ff0a933a77951
23 +DIST Pillow-4.3.0.tar.gz 13874155 SHA256 a97c715d44efd5b4aa8d739b8fad88b93ed79f1b33fc2822d5802043f3b1b527 SHA512 5811252802bd01ac86157235d42138685e746723df48b67ec7c7ebd3f172532b40cf86ca9d3d792e82f03986303a084bf3491c0d511dc068dea1bc631afdeabb WHIRLPOOL 60b418d8e549f72a295c632a5caee148179d8bb931f63959fb4ee383db43e68bcab92789791fa912b74386410ac6023cc8232f3cdb0b7e7eb5a92467b8611034
24
25 diff --git a/dev-python/pillow/pillow-4.3.0.ebuild b/dev-python/pillow/pillow-4.3.0.ebuild
26 new file mode 100644
27 index 00000000000..785dfedc3b9
28 --- /dev/null
29 +++ b/dev-python/pillow/pillow-4.3.0.ebuild
30 @@ -0,0 +1,82 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
37 +PYTHON_REQ_USE='tk?,threads(+)'
38 +
39 +inherit distutils-r1 eutils virtualx
40 +
41 +MY_PN=Pillow
42 +MY_P=${MY_PN}-${PV}
43 +
44 +DESCRIPTION="Python Imaging Library (fork)"
45 +HOMEPAGE="https://python-pillow.org/"
46 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
47 +
48 +LICENSE="HPND"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="doc examples imagequant jpeg2k lcms test tiff tk truetype webp zlib"
52 +
53 +REQUIRED_USE="test? ( tiff )"
54 +
55 +RDEPEND="
56 + dev-python/olefile[${PYTHON_USEDEP}]
57 + imagequant? ( media-gfx/libimagequant:0 )
58 + virtual/jpeg:0
59 + jpeg2k? ( media-libs/openjpeg:2= )
60 + lcms? ( media-libs/lcms:2= )
61 + tiff? ( media-libs/tiff:0=[jpeg] )
62 + truetype? ( media-libs/freetype:2= )
63 + webp? ( media-libs/libwebp:0= )
64 + zlib? ( sys-libs/zlib:0= )"
65 +DEPEND="${RDEPEND}
66 + dev-python/setuptools[${PYTHON_USEDEP}]
67 + doc? (
68 + dev-python/sphinx[${PYTHON_USEDEP}]
69 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
70 + )
71 + test? ( dev-python/nose[${PYTHON_USEDEP}] )
72 +"
73 +
74 +S="${WORKDIR}/${MY_P}"
75 +
76 +src_compile() {
77 + # raqm not in portage yet
78 + distutils-r1_src_compile \
79 + --disable-raqm \
80 + $(use_enable truetype freetype) \
81 + $(use_enable jpeg2k jpeg2000) \
82 + $(use_enable lcms) \
83 + $(use_enable tiff) \
84 + $(use_enable imagequant) \
85 + $(use_enable webp) \
86 + $(use_enable webp webpmux) \
87 + $(use_enable zlib)
88 +}
89 +
90 +python_compile_all() {
91 + use doc && emake -C docs html
92 +}
93 +
94 +python_test() {
95 + "${PYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}"
96 + virtx nosetests -vx Tests/test_*.py
97 +}
98 +
99 +python_install() {
100 + python_doheader libImaging/*.h
101 + distutils-r1_python_install
102 +}
103 +
104 +python_install_all() {
105 + use doc && local HTML_DOCS=( docs/_build/html/. )
106 + if use examples ; then
107 + docinto examples
108 + dodoc Scripts/*
109 + docompress -x /usr/share/doc/${PF}/examples
110 + fi
111 + distutils-r1_python_install_all
112 +}