1 |
floppym 13/05/28 22:44:34 |
2 |
|
3 |
Modified: pillow-2.0.0.ebuild ChangeLog |
4 |
Log: |
5 |
Enable python3, add keywords from dev-python/imaging, apply a few patches. |
6 |
|
7 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 dev-python/pillow/pillow-2.0.0.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/pillow-2.0.0.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/pillow-2.0.0.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/pillow-2.0.0.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: pillow-2.0.0.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pillow/pillow-2.0.0.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- pillow-2.0.0.ebuild 21 Apr 2013 20:17:26 -0000 1.1 |
23 |
+++ pillow-2.0.0.ebuild 28 May 2013 22:44:34 -0000 1.2 |
24 |
@@ -1,37 +1,38 @@ |
25 |
# Copyright 1999-2013 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/pillow-2.0.0.ebuild,v 1.1 2013/04/21 20:17:26 mgorny Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/pillow-2.0.0.ebuild,v 1.2 2013/05/28 22:44:34 floppym Exp $ |
29 |
|
30 |
EAPI=5 |
31 |
-PYTHON_COMPAT=( python{2_6,2_7} ) |
32 |
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
33 |
PYTHON_REQ_USE='tk?' |
34 |
|
35 |
-inherit distutils-r1 |
36 |
+inherit distutils-r1 eutils |
37 |
|
38 |
MY_PN=Pillow |
39 |
MY_P=${MY_PN}-${PV} |
40 |
|
41 |
-DESCRIPTION="Python Imaging Library (PIL)" |
42 |
-HOMEPAGE="http://www.pythonware.com/products/pil/index.htm" |
43 |
+DESCRIPTION="Python Imaging Library (fork)" |
44 |
+HOMEPAGE="https://github.com/python-imaging/Pillow https://pypi.python.org/pypi/Pillow" |
45 |
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" |
46 |
|
47 |
LICENSE="HPND" |
48 |
SLOT="0" |
49 |
-KEYWORDS="~amd64 ~x86" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
51 |
IUSE="doc examples jpeg lcms scanner test tiff tk truetype webp zlib" |
52 |
|
53 |
RDEPEND=" |
54 |
- truetype? ( media-libs/freetype:2 ) |
55 |
+ truetype? ( media-libs/freetype:2= ) |
56 |
jpeg? ( virtual/jpeg ) |
57 |
- lcms? ( media-libs/lcms:0 ) |
58 |
- scanner? ( media-gfx/sane-backends ) |
59 |
- tiff? ( media-libs/tiff ) |
60 |
- webp? ( media-libs/libwebp ) |
61 |
- zlib? ( sys-libs/zlib ) |
62 |
- !dev-python/imaging" |
63 |
+ lcms? ( media-libs/lcms:0= ) |
64 |
+ scanner? ( media-gfx/sane-backends:0= ) |
65 |
+ tiff? ( media-libs/tiff:0= ) |
66 |
+ webp? ( media-libs/libwebp:0= ) |
67 |
+ zlib? ( sys-libs/zlib:0= )" |
68 |
DEPEND="${RDEPEND} |
69 |
+ app-arch/unzip |
70 |
dev-python/setuptools[${PYTHON_USEDEP}] |
71 |
doc? ( dev-python/sphinx )" |
72 |
+RDEPEND+=" !dev-python/imaging" |
73 |
|
74 |
# Tests don't handle missing jpeg, tiff & zlib properly. |
75 |
# https://github.com/python-imaging/Pillow/pull/199 |
76 |
@@ -48,6 +49,14 @@ |
77 |
} |
78 |
|
79 |
python_prepare_all() { |
80 |
+ # Apply patches before executing sed. |
81 |
+ local patches=( |
82 |
+ "${FILESDIR}/imaging-1.1.7-no-xv.patch" |
83 |
+ "${FILESDIR}/pillow-2.0.0-delete_hardcoded_paths.patch" |
84 |
+ "${FILESDIR}/pillow-2.0.0-libm_linking.patch" |
85 |
+ ) |
86 |
+ epatch "${patches[@]}" |
87 |
+ |
88 |
# Add shebangs. |
89 |
# https://github.com/python-imaging/Pillow/pull/197 |
90 |
sed -e "1i#!/usr/bin/env python" -i Scripts/*.py || die |
91 |
|
92 |
|
93 |
|
94 |
1.2 dev-python/pillow/ChangeLog |
95 |
|
96 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/ChangeLog?rev=1.2&view=markup |
97 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/ChangeLog?rev=1.2&content-type=text/plain |
98 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/ChangeLog?r1=1.1&r2=1.2 |
99 |
|
100 |
Index: ChangeLog |
101 |
=================================================================== |
102 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pillow/ChangeLog,v |
103 |
retrieving revision 1.1 |
104 |
retrieving revision 1.2 |
105 |
diff -u -r1.1 -r1.2 |
106 |
--- ChangeLog 21 Apr 2013 20:17:26 -0000 1.1 |
107 |
+++ ChangeLog 28 May 2013 22:44:34 -0000 1.2 |
108 |
@@ -1,6 +1,12 @@ |
109 |
# ChangeLog for dev-python/pillow |
110 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
111 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/ChangeLog,v 1.1 2013/04/21 20:17:26 mgorny Exp $ |
112 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/ChangeLog,v 1.2 2013/05/28 22:44:34 floppym Exp $ |
113 |
+ |
114 |
+ 28 May 2013; Mike Gilbert <floppym@g.o> |
115 |
+ +files/imaging-1.1.7-no-xv.patch, |
116 |
+ +files/pillow-2.0.0-delete_hardcoded_paths.patch, |
117 |
+ +files/pillow-2.0.0-libm_linking.patch, pillow-2.0.0.ebuild: |
118 |
+ Enable python3, add keywords from dev-python/imaging, apply a few patches. |
119 |
|
120 |
*pillow-2.0.0 (21 Apr 2013) |