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: dev-python/pillow/
Date: Wed, 01 Jul 2020 03:08:02
Message-Id: 1593572871.c4256f68d3589570443075eccbbafacf661f785f.mgorny@gentoo
1 commit: c4256f68d3589570443075eccbbafacf661f785f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 1 02:53:58 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 1 03:07:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4256f68
7
8 dev-python/pillow: Bump to 7.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pillow/Manifest | 1 +
13 dev-python/pillow/pillow-7.2.0.ebuild | 100 ++++++++++++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest
17 index 03200d461bc..3e752043770 100644
18 --- a/dev-python/pillow/Manifest
19 +++ b/dev-python/pillow/Manifest
20 @@ -1,3 +1,4 @@
21 DIST pillow-6.2.2.tar.gz 37538464 BLAKE2B dfd9b81490a8adb4e12ecbf6764e4e27573c9a087877ac37275a9fb42b89f0cd8cab8d7ca0b45c9a00bf38ca5b1d83de68f5fc35ff19031bfcc1495ee3a5f5b7 SHA512 0f2c3bfd921247fa11645eadc42e184182a401ccbdb8f10215312e96c8c28f2382f5413b56acd78fab1dffc6fa53cc8588ce960543af65c4769451874c2c918e
22 DIST pillow-7.0.0.tar.gz 37880130 BLAKE2B be940cbdced884c33f2b3979be113b1bc8974814c9532fe80203395184f90eccba1cd9a5017fec1f0c30a21ff06abc46560d5c6d67938dbf640f2e8e08b7e554 SHA512 187173a525d4f3f01b4898633263b53a311f337aa7b159c64f79ba8c7006fd44798a058e7cc5d8f1116bad008e4142ff303456692329fe73b0e115ef5c225d73
23 DIST pillow-7.1.2.tar.gz 38933761 BLAKE2B b1d8cedeb0e8108af3bc5de672bcf812cb2f5ef8a9a23db45b3d5fc9d383d7d534ee63fbfce27f9ee4318982dec46e1e60eb55ce5aa14588b1468792c8188f5b SHA512 4e20f6dbc3c9d138de6270b14e85911ac5d2953328be4fd4b0754d8fe834625f914ee1f1b2f32cfb26ab57b6ea4b74d14a81a65938cbb94895c0afcd639bb38f
24 +DIST pillow-7.2.0.tar.gz 39125407 BLAKE2B f49015922c34473590740c9fa63435f85f9a517b3295abd2e758941b95162cef0fb1fa2a0e6ee0ac86323709ee3af02888f6e029a1905f13698e82c1f38d5d94 SHA512 ac9c7c8f445b3f67f51bea13fad118d1612c45272c26d33bec286f3c2e198912b934378c4bf986b409aaa2a83d92ff176ee4d25f28701d61746c9cb86d0f412b
25
26 diff --git a/dev-python/pillow/pillow-7.2.0.ebuild b/dev-python/pillow/pillow-7.2.0.ebuild
27 new file mode 100644
28 index 00000000000..71526b251ea
29 --- /dev/null
30 +++ b/dev-python/pillow/pillow-7.2.0.ebuild
31 @@ -0,0 +1,100 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6..9} )
38 +PYTHON_REQ_USE='tk?,threads(+)'
39 +
40 +inherit distutils-r1 toolchain-funcs virtualx
41 +
42 +MY_PN=Pillow
43 +MY_P=${MY_PN}-${PV}
44 +
45 +DESCRIPTION="Python Imaging Library (fork)"
46 +HOMEPAGE="https://python-pillow.org/"
47 +SRC_URI="https://github.com/python-pillow/Pillow/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +S="${WORKDIR}/${MY_P}"
49 +
50 +LICENSE="HPND"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
53 +IUSE="examples imagequant jpeg jpeg2k lcms test tiff tk truetype webp xcb zlib"
54 +REQUIRED_USE="test? ( jpeg tiff )"
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 + dev-python/olefile[${PYTHON_USEDEP}]
59 + imagequant? ( media-gfx/libimagequant:0 )
60 + jpeg? ( virtual/jpeg:0 )
61 + jpeg2k? ( media-libs/openjpeg:2= )
62 + lcms? ( media-libs/lcms:2= )
63 + tiff? ( media-libs/tiff:0=[jpeg,zlib] )
64 + truetype? ( media-libs/freetype:2= )
65 + webp? ( media-libs/libwebp:0= )
66 + xcb? ( x11-libs/libxcb )
67 + zlib? ( sys-libs/zlib:0= )"
68 +DEPEND="${RDEPEND}
69 + dev-python/setuptools[${PYTHON_USEDEP}]
70 + test? (
71 + dev-python/pytest[${PYTHON_USEDEP}]
72 + media-gfx/imagemagick[png]
73 + )
74 +"
75 +
76 +distutils_enable_sphinx docs \
77 + dev-python/sphinx_rtd_theme
78 +
79 +python_configure_all() {
80 + # It's important that these flags are also passed during the install phase
81 + # as well. Make sure of that if you change the lines below. See bug 661308.
82 + mydistutilsargs=(
83 + build_ext
84 + --disable-platform-guessing
85 + $(use_enable truetype freetype)
86 + $(use_enable jpeg)
87 + $(use_enable jpeg2k jpeg2000)
88 + $(use_enable lcms)
89 + $(use_enable tiff)
90 + $(use_enable imagequant)
91 + $(use_enable webp)
92 + $(use_enable webp webpmux)
93 + $(use_enable xcb)
94 + $(use_enable zlib)
95 + )
96 +
97 + # setup.py sucks at adding the right toolchain paths but it does
98 + # accept additional ones from INCLUDE and LIB so set these. You
99 + # wouldn't normally need these at all as the toolchain should look
100 + # here anyway but this setup.py does stupid things.
101 + export \
102 + INCLUDE=${ESYSROOT}/usr/include \
103 + LIB=${ESYSROOT}/usr/$(get_libdir)
104 +
105 + # We have patched in this env var.
106 + tc-export PKG_CONFIG
107 +}
108 +
109 +src_test() {
110 + virtx distutils-r1_src_test
111 +}
112 +
113 +python_test() {
114 + "${EPYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}"
115 + # no:relaxed: pytest-relaxed plugin make our tests fail. deactivate if installed
116 + pytest -vv -p no:relaxed || die "Tests fail with ${EPYTHON}"
117 +}
118 +
119 +python_install() {
120 + python_doheader src/libImaging/*.h
121 + distutils-r1_python_install
122 +}
123 +
124 +python_install_all() {
125 + if use examples ; then
126 + docinto example
127 + dodoc docs/example/*
128 + docompress -x /usr/share/doc/${PF}/example
129 + fi
130 + distutils-r1_python_install_all
131 +}