1 |
commit: 5b303534d1a68fd96d2c34d291ef003af26fb724 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 2 08:14:32 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 2 08:14:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b303534 |
7 |
|
8 |
dev-python/pillow: Bump to 7.0.0 (py3 only) |
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.0.0.ebuild | 98 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 99 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest |
17 |
index d890e174f2f..6fde61b6d7f 100644 |
18 |
--- a/dev-python/pillow/Manifest |
19 |
+++ b/dev-python/pillow/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST Pillow-3.4.2.zip 11042238 BLAKE2B 334af6eeadb3203b51572eca6ad9c196f3eeac14d |
21 |
DIST pillow-5.4.1.tar.gz 15799745 BLAKE2B d9e3851a80a1f94d7292852b9ab806d9a26870795f499bb109a440e64c07112055a4cd382688b977f3c3ae76ed3d6fd38460afff594f964338afa668d288e4de SHA512 20b75ab50df7e9545c76d66ad585922d1f86fbcf8df9d2566882ab8929c3122573b9ec622766523ec46f5e7a98740cc78ff192e3e8f08ab0b77a7f2b033a7f62 |
22 |
DIST pillow-6.2.1.tar.gz 37405020 BLAKE2B bf3592bcc159902acc35899463c8949daf7cc31f03283684dc55d5f1517fdfbc07e1feb73b65b0b9cb4052ee1d5281558b38f9bd08240d0fc5727909b98da158 SHA512 ee757ec2b8382d6d56fd0f0cdd4cd36440cc37f05741e27fc661449a16dc7c868966772060adb283de1b1b5ebc49b8eec46e0bdcdad9f5f4d5ebd77feab7ad31 |
23 |
DIST pillow-6.2.2.tar.gz 37538464 BLAKE2B dfd9b81490a8adb4e12ecbf6764e4e27573c9a087877ac37275a9fb42b89f0cd8cab8d7ca0b45c9a00bf38ca5b1d83de68f5fc35ff19031bfcc1495ee3a5f5b7 SHA512 0f2c3bfd921247fa11645eadc42e184182a401ccbdb8f10215312e96c8c28f2382f5413b56acd78fab1dffc6fa53cc8588ce960543af65c4769451874c2c918e |
24 |
+DIST pillow-7.0.0.tar.gz 37880130 BLAKE2B be940cbdced884c33f2b3979be113b1bc8974814c9532fe80203395184f90eccba1cd9a5017fec1f0c30a21ff06abc46560d5c6d67938dbf640f2e8e08b7e554 SHA512 187173a525d4f3f01b4898633263b53a311f337aa7b159c64f79ba8c7006fd44798a058e7cc5d8f1116bad008e4142ff303456692329fe73b0e115ef5c225d73 |
25 |
|
26 |
diff --git a/dev-python/pillow/pillow-7.0.0.ebuild b/dev-python/pillow/pillow-7.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..04853bc300a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pillow/pillow-7.0.0.ebuild |
31 |
@@ -0,0 +1,98 @@ |
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 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 |
+ zlib? ( sys-libs/zlib:0= )" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
69 |
+ test? ( |
70 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
71 |
+ media-gfx/imagemagick[png] |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+distutils_enable_sphinx docs \ |
76 |
+ dev-python/sphinx_rtd_theme |
77 |
+ |
78 |
+python_configure_all() { |
79 |
+ # It's important that these flags are also passed during the install phase |
80 |
+ # as well. Make sure of that if you change the lines below. See bug 661308. |
81 |
+ mydistutilsargs=( |
82 |
+ build_ext |
83 |
+ --disable-platform-guessing |
84 |
+ $(use_enable truetype freetype) |
85 |
+ $(use_enable jpeg) |
86 |
+ $(use_enable jpeg2k jpeg2000) |
87 |
+ $(use_enable lcms) |
88 |
+ $(use_enable tiff) |
89 |
+ $(use_enable imagequant) |
90 |
+ $(use_enable webp) |
91 |
+ $(use_enable webp webpmux) |
92 |
+ $(use_enable zlib) |
93 |
+ ) |
94 |
+ |
95 |
+ # setup.py sucks at adding the right toolchain paths but it does |
96 |
+ # accept additional ones from INCLUDE and LIB so set these. You |
97 |
+ # wouldn't normally need these at all as the toolchain should look |
98 |
+ # here anyway but this setup.py does stupid things. |
99 |
+ export \ |
100 |
+ INCLUDE=${ESYSROOT}/usr/include \ |
101 |
+ LIB=${ESYSROOT}/usr/$(get_libdir) |
102 |
+ |
103 |
+ # We have patched in this env var. |
104 |
+ tc-export PKG_CONFIG |
105 |
+} |
106 |
+ |
107 |
+src_test() { |
108 |
+ virtx distutils-r1_src_test |
109 |
+} |
110 |
+ |
111 |
+python_test() { |
112 |
+ "${EPYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}" |
113 |
+ # no:relaxed: pytest-relaxed plugin make our tests fail. deactivate if installed |
114 |
+ pytest -vv -p no:relaxed || die "Tests fail with ${EPYTHON}" |
115 |
+} |
116 |
+ |
117 |
+python_install() { |
118 |
+ python_doheader src/libImaging/*.h |
119 |
+ distutils-r1_python_install |
120 |
+} |
121 |
+ |
122 |
+python_install_all() { |
123 |
+ if use examples ; then |
124 |
+ docinto example |
125 |
+ dodoc docs/example/* |
126 |
+ docompress -x /usr/share/doc/${PF}/example |
127 |
+ fi |
128 |
+ distutils-r1_python_install_all |
129 |
+} |