Gentoo Archives: gentoo-commits

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