1 |
commit: 8bbdc7ce18f4910f423e0decaf8f307d1dce16d3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 2 14:16:13 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 14:54:17 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bbdc7ce |
7 |
|
8 |
dev-python/pillow: Bump to 9.4.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-9.4.0.ebuild | 125 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 126 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest |
17 |
index e121da33c3f0..cc7b9e4aaae8 100644 |
18 |
--- a/dev-python/pillow/Manifest |
19 |
+++ b/dev-python/pillow/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pillow-9.3.0.gh.tar.gz 50370806 BLAKE2B d0d4775c8b60e40560328e4f1c14055743d1a826b0ab01353075f1f48a461bcd8bf5883f18713976399f9b0f688125f3a883ea5818a359db9e540aac8895f02a SHA512 60c529d8a222a521a0c3f4254917aa3f6c5a47c7cb8930b4b9a05ef442d1a7e776018dc4ac834a9effc1342f8457898cae79820531ff430728f6c39d6297b2d7 |
22 |
+DIST pillow-9.4.0.gh.tar.gz 50412873 BLAKE2B 12003b8b9e582c47b45d82f4a10553e376dcb38e65154eca5753b2908d6ecad10fc732d622856c7742fb413abbf4afc926e3d30e1e9e410e966f18da4ddde6c1 SHA512 6c08336e5ca1e652bb3237ae092be61b78dc1cf65603d6b23369eb8e0554786114a8f87ab092a5fb9577e02cd0bb381353fa657e03090baeb91b4b8e3c740d51 |
23 |
|
24 |
diff --git a/dev-python/pillow/pillow-9.4.0.ebuild b/dev-python/pillow/pillow-9.4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..923dd7d76648 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pillow/pillow-9.4.0.ebuild |
29 |
@@ -0,0 +1,125 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
37 |
+PYTHON_REQ_USE='tk?,threads(+)' |
38 |
+ |
39 |
+inherit distutils-r1 toolchain-funcs virtualx |
40 |
+ |
41 |
+MY_PN=Pillow |
42 |
+MY_P=${MY_PN}-${PV} |
43 |
+ |
44 |
+DESCRIPTION="Python Imaging Library (fork)" |
45 |
+HOMEPAGE=" |
46 |
+ https://python-pillow.org/ |
47 |
+ https://github.com/python-pillow/ |
48 |
+ https://pypi.org/project/Pillow/ |
49 |
+" |
50 |
+SRC_URI=" |
51 |
+ https://github.com/python-pillow/Pillow/archive/${PV}.tar.gz |
52 |
+ -> ${P}.gh.tar.gz |
53 |
+" |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+LICENSE="HPND" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
59 |
+IUSE="examples imagequant +jpeg jpeg2k lcms test tiff tk truetype webp xcb zlib" |
60 |
+REQUIRED_USE="test? ( jpeg jpeg2k tiff truetype )" |
61 |
+RESTRICT="!test? ( test )" |
62 |
+ |
63 |
+DEPEND=" |
64 |
+ imagequant? ( media-gfx/libimagequant:= ) |
65 |
+ jpeg? ( media-libs/libjpeg-turbo:= ) |
66 |
+ jpeg2k? ( media-libs/openjpeg:2= ) |
67 |
+ lcms? ( media-libs/lcms:2= ) |
68 |
+ tiff? ( media-libs/tiff:=[jpeg,zlib] ) |
69 |
+ truetype? ( media-libs/freetype:2= ) |
70 |
+ webp? ( media-libs/libwebp:= ) |
71 |
+ xcb? ( x11-libs/libxcb ) |
72 |
+ zlib? ( sys-libs/zlib:= ) |
73 |
+" |
74 |
+RDEPEND=" |
75 |
+ ${DEPEND} |
76 |
+ dev-python/olefile[${PYTHON_USEDEP}] |
77 |
+" |
78 |
+BDEPEND=" |
79 |
+ virtual/pkgconfig |
80 |
+ test? ( |
81 |
+ ${RDEPEND} |
82 |
+ dev-python/defusedxml[${PYTHON_USEDEP}] |
83 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
84 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
85 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
86 |
+ || ( |
87 |
+ media-gfx/imagemagick[png] |
88 |
+ media-gfx/graphicsmagick[png] |
89 |
+ ) |
90 |
+ ) |
91 |
+" |
92 |
+ |
93 |
+EPYTEST_DESELECT=( |
94 |
+ # TODO; incompatible Qt version? |
95 |
+ Tests/test_qt_image_qapplication.py::test_sanity |
96 |
+) |
97 |
+ |
98 |
+usepil() { |
99 |
+ usex "${1}" enable disable |
100 |
+} |
101 |
+ |
102 |
+python_configure_all() { |
103 |
+ # It's important that these flags are also passed during the install phase |
104 |
+ # as well. Make sure of that if you change the lines below. See bug 661308. |
105 |
+ cat >> setup.cfg <<-EOF || die |
106 |
+ [build_ext] |
107 |
+ disable_platform_guessing = True |
108 |
+ $(usepil truetype)_freetype = True |
109 |
+ $(usepil jpeg)_jpeg = True |
110 |
+ $(usepil jpeg2k)_jpeg2000 = True |
111 |
+ $(usepil lcms)_lcms = True |
112 |
+ $(usepil tiff)_tiff = True |
113 |
+ $(usepil imagequant)_imagequant = True |
114 |
+ $(usepil webp)_webp = True |
115 |
+ $(usepil webp)_webpmux = True |
116 |
+ $(usepil xcb)_xcb = True |
117 |
+ $(usepil zlib)_zlib = True |
118 |
+ EOF |
119 |
+ |
120 |
+ # setup.py won't let us add the right toolchain paths but it does |
121 |
+ # accept additional ones from INCLUDE and LIB so set these. You |
122 |
+ # wouldn't normally need these at all as the toolchain should look |
123 |
+ # here anyway but it doesn't for this setup.py. |
124 |
+ export \ |
125 |
+ INCLUDE="${ESYSROOT}"/usr/include \ |
126 |
+ LIB="${ESYSROOT}"/usr/$(get_libdir) |
127 |
+ |
128 |
+ # We have patched in this env var. |
129 |
+ tc-export PKG_CONFIG |
130 |
+} |
131 |
+ |
132 |
+src_test() { |
133 |
+ virtx distutils-r1_src_test |
134 |
+} |
135 |
+ |
136 |
+python_test() { |
137 |
+ "${EPYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}" |
138 |
+ # no:relaxed: pytest-relaxed plugin make our tests fail. deactivate if installed |
139 |
+ epytest -p no:relaxed || die "Tests failed with ${EPYTHON}" |
140 |
+} |
141 |
+ |
142 |
+python_install() { |
143 |
+ python_doheader src/libImaging/*.h |
144 |
+ distutils-r1_python_install |
145 |
+} |
146 |
+ |
147 |
+python_install_all() { |
148 |
+ if use examples ; then |
149 |
+ docinto example |
150 |
+ dodoc docs/example/* |
151 |
+ docompress -x /usr/share/doc/${PF}/example |
152 |
+ fi |
153 |
+ distutils-r1_python_install_all |
154 |
+} |