From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C4997139694 for ; Tue, 11 Jul 2017 20:33:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 331AA274192; Tue, 11 Jul 2017 20:33:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F087D274181 for ; Tue, 11 Jul 2017 20:33:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C1F0341C30 for ; Tue, 11 Jul 2017 20:33:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CC19D74B7 for ; Tue, 11 Jul 2017 20:33:44 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1499804420.2123861a97465f088d798dafba072dca5d8b9985.bicatali@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pillow/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pillow/Manifest dev-python/pillow/metadata.xml dev-python/pillow/pillow-4.2.1.ebuild X-VCS-Directories: dev-python/pillow/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 2123861a97465f088d798dafba072dca5d8b9985 X-VCS-Branch: master Date: Tue, 11 Jul 2017 20:33:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2348d4f6-aa02-4b68-9290-84d9dee3f806 X-Archives-Hash: c46b927d5d9409730128143e8a1239a0 commit: 2123861a97465f088d798dafba072dca5d8b9985 Author: Sébastien Fabbro gentoo org> AuthorDate: Tue Jul 11 20:17:53 2017 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Tue Jul 11 20:20:20 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2123861a dev-python/pillow: major version bump with new features. Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-python/pillow/Manifest | 1 + dev-python/pillow/metadata.xml | 5 ++- dev-python/pillow/pillow-4.2.1.ebuild | 83 +++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 2 deletions(-) diff --git a/dev-python/pillow/Manifest b/dev-python/pillow/Manifest index 6f06fbc1a88..41aa52af0fc 100644 --- a/dev-python/pillow/Manifest +++ b/dev-python/pillow/Manifest @@ -1 +1,2 @@ DIST Pillow-3.4.2.zip 11042238 SHA256 85b237840ad8b30a1572bf9e3898a26c77910a56554d73ed4f58a42197c2e4c2 SHA512 5e05206db5bc1b4177384f7e91ee79015c6e1bbdc7c31c997da054391b9b5ec7c1ebdec258a33f598986533894f3324b03d0b4b385b94e72a0517a3437553b39 WHIRLPOOL f92d4320ca5fd3e004a2ace41d14f0816dbea6fcfc9b10739a59d2dd393725a47c28f5b9f643d0b3243b9003701094ee953b38118412647155e8ba13fafe0582 +DIST Pillow-4.2.1.tar.gz 12673417 SHA256 c724f65870e545316f9e82e4c6d608ab5aa9dd82d5185e5b2e72119378740073 SHA512 8a1c691f067c1127b941a94ae991c728c94eab876fe2a511ed0ad8af9702d4969325bd565b11e656ffefe867bf385725a5c14e3c28f8945730fa21986f934f69 WHIRLPOOL af93b67a60843d9f853921d5dd1332209cefc87a9680201cca5010f935527abcacac57e9d2afeac6bd3ccf8ab6636ffc2321e0888b73babfdb9ff0a933a77951 diff --git a/dev-python/pillow/metadata.xml b/dev-python/pillow/metadata.xml index bda1bb8b996..d641c40047b 100644 --- a/dev-python/pillow/metadata.xml +++ b/dev-python/pillow/metadata.xml @@ -6,10 +6,11 @@ Python - Enable support for webp image format. + Add support for OLE2 image format + Build with Image Quantization Library support Pillow - python-imaging/Pillow + pillow-dev/pillow diff --git a/dev-python/pillow/pillow-4.2.1.ebuild b/dev-python/pillow/pillow-4.2.1.ebuild new file mode 100644 index 00000000000..a22b7b1fd8b --- /dev/null +++ b/dev-python/pillow/pillow-4.2.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE='tk?,threads(+)' + +inherit distutils-r1 eutils virtualx + +MY_PN=Pillow +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Python Imaging Library (fork)" +HOMEPAGE="https://python-pillow.org/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples imagequant jpeg jpeg2k ole lcms test tiff tk truetype webp zlib" + +REQUIRED_USE="test? ( jpeg tiff )" + +RDEPEND=" + imagequant? ( media-gfx/libimagequant:0 ) + jpeg? ( virtual/jpeg:0 ) + jpeg2k? ( media-libs/openjpeg:2= ) + lcms? ( media-libs/lcms:2= ) + ole? ( dev-python/olefile[${PYTHON_USEDEP}] ) + tiff? ( media-libs/tiff:0=[jpeg?] ) + truetype? ( media-libs/freetype:2= ) + webp? ( media-libs/libwebp:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" + +S="${WORKDIR}/${MY_P}" + +src_compile() { + # raqm not in portage yet + distutils-r1_src_compile \ + --disable-raqm \ + $(use_enable truetype freetype) \ + $(use_enable jpeg) \ + $(use_enable jpeg2k jpeg2000) \ + $(use_enable lcms) \ + $(use_enable tiff) \ + $(use_enable imagequant) \ + $(use_enable webp) \ + $(use_enable webp webpmux) \ + $(use_enable zlib) +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + "${PYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}" + virtx nosetests -vx Tests/test_*.py +} + +python_install() { + python_doheader libImaging/*.h + distutils-r1_python_install +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + if use examples ; then + docinto examples + dodoc Scripts/* + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +}