1 |
commit: 15c85c0e39037e3c2adeb798f612dd0f4e4ff936 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 26 07:12:20 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 26 10:16:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15c85c0e |
7 |
|
8 |
dev-python/pillow: Bump to 7.1.2 |
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.1.2.ebuild | 100 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 101 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest |
17 |
index d9dcb996f38..8d9dabd2eb3 100644 |
18 |
--- a/dev-python/pillow/Manifest |
19 |
+++ b/dev-python/pillow/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST pillow-6.2.1.tar.gz 37405020 BLAKE2B bf3592bcc159902acc35899463c8949daf7cc3 |
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.1.tar.gz 38933780 BLAKE2B 411e97f7ae26361501e51c1756d9c495b8fe893fdd7eeea5f51e83aab99b04216e9518f54a69a57b482b3f6837a1318daed2963f196fa5c6166d71cb7bba281e SHA512 1f3c0a3c604e95ac60e2b9170fd2f45156a444a2f98dc3afe523178364a38e2f33ca8e312be85d2ec7a13c461236063dc2622db8df7ad7fe393aeb98b5bf2dfa |
24 |
+DIST pillow-7.1.2.tar.gz 38933761 BLAKE2B b1d8cedeb0e8108af3bc5de672bcf812cb2f5ef8a9a23db45b3d5fc9d383d7d534ee63fbfce27f9ee4318982dec46e1e60eb55ce5aa14588b1468792c8188f5b SHA512 4e20f6dbc3c9d138de6270b14e85911ac5d2953328be4fd4b0754d8fe834625f914ee1f1b2f32cfb26ab57b6ea4b74d14a81a65938cbb94895c0afcd639bb38f |
25 |
|
26 |
diff --git a/dev-python/pillow/pillow-7.1.2.ebuild b/dev-python/pillow/pillow-7.1.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..43f8084cc1e |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pillow/pillow-7.1.2.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,7,8} ) |
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 |
+} |