1 |
floppym 13/05/27 23:27:33 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: imaging-2.0.0.ebuild |
5 |
Log: |
6 |
Copy dev-python/pillow-2.0.0 to dev-python/imaging-2.0.0 in preparation for a pkgmove. Apply rebased patches from Arfrever's Progress overlay. Enable python3 support. Bug 401009. |
7 |
|
8 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 dev-python/imaging/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/metadata.xml?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/metadata.xml?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/metadata.xml?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/imaging/metadata.xml,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- metadata.xml 19 Jul 2004 21:50:44 -0000 1.1 |
24 |
+++ metadata.xml 27 May 2013 23:27:33 -0000 1.2 |
25 |
@@ -1,5 +1,8 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
-<herd>python</herd> |
30 |
+ <herd>python</herd> |
31 |
+ <use> |
32 |
+ <flag name='webp'>Enable support for webp image format.</flag> |
33 |
+ </use> |
34 |
</pkgmetadata> |
35 |
|
36 |
|
37 |
|
38 |
1.86 dev-python/imaging/ChangeLog |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/ChangeLog?rev=1.86&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/ChangeLog?rev=1.86&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/ChangeLog?r1=1.85&r2=1.86 |
43 |
|
44 |
Index: ChangeLog |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v |
47 |
retrieving revision 1.85 |
48 |
retrieving revision 1.86 |
49 |
diff -u -r1.85 -r1.86 |
50 |
--- ChangeLog 7 May 2013 23:27:25 -0000 1.85 |
51 |
+++ ChangeLog 27 May 2013 23:27:33 -0000 1.86 |
52 |
@@ -1,6 +1,17 @@ |
53 |
# ChangeLog for dev-python/imaging |
54 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.85 2013/05/07 23:27:25 floppym Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.86 2013/05/27 23:27:33 floppym Exp $ |
57 |
+ |
58 |
+*imaging-2.0.0 (27 May 2013) |
59 |
+ |
60 |
+ 27 May 2013; Mike Gilbert <floppym@g.o> |
61 |
+ +files/imaging-2.0.0-GifImagePlugin.patch, |
62 |
+ +files/imaging-2.0.0-delete_hardcoded_paths.patch, |
63 |
+ +files/imaging-2.0.0-gif_transparency.patch, |
64 |
+ +files/imaging-2.0.0-libm_linking.patch, +imaging-2.0.0.ebuild, metadata.xml: |
65 |
+ Copy dev-python/pillow-2.0.0 to dev-python/imaging-2.0.0 in preparation for a |
66 |
+ pkgmove. Apply rebased patches from Arfrever's Progress overlay. Enable |
67 |
+ python3 support. Bug 401009. |
68 |
|
69 |
*imaging-1.1.7-r4 (07 May 2013) |
70 |
|
71 |
|
72 |
|
73 |
|
74 |
1.1 dev-python/imaging/imaging-2.0.0.ebuild |
75 |
|
76 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/imaging-2.0.0.ebuild?rev=1.1&view=markup |
77 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/imaging-2.0.0.ebuild?rev=1.1&content-type=text/plain |
78 |
|
79 |
Index: imaging-2.0.0.ebuild |
80 |
=================================================================== |
81 |
# Copyright 1999-2013 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-2.0.0.ebuild,v 1.1 2013/05/27 23:27:33 floppym Exp $ |
84 |
|
85 |
EAPI=5 |
86 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
87 |
PYTHON_REQ_USE='tk?' |
88 |
|
89 |
inherit distutils-r1 eutils |
90 |
|
91 |
MY_PN=Pillow |
92 |
MY_P=${MY_PN}-${PV} |
93 |
|
94 |
DESCRIPTION="Python Imaging Library (fork)" |
95 |
HOMEPAGE="https://github.com/python-imaging/Pillow https://pypi.python.org/pypi/Pillow" |
96 |
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" |
97 |
|
98 |
LICENSE="HPND" |
99 |
SLOT="0" |
100 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
101 |
IUSE="doc examples jpeg lcms scanner test tiff tk truetype webp zlib" |
102 |
|
103 |
RDEPEND=" |
104 |
truetype? ( media-libs/freetype:2= ) |
105 |
jpeg? ( virtual/jpeg ) |
106 |
lcms? ( media-libs/lcms:0= ) |
107 |
scanner? ( media-gfx/sane-backends:0= ) |
108 |
tiff? ( media-libs/tiff:0= ) |
109 |
webp? ( media-libs/libwebp:0= ) |
110 |
zlib? ( sys-libs/zlib:0= )" |
111 |
DEPEND="${RDEPEND} |
112 |
dev-python/setuptools[${PYTHON_USEDEP}] |
113 |
doc? ( dev-python/sphinx )" |
114 |
|
115 |
# Tests don't handle missing jpeg, tiff & zlib properly. |
116 |
# https://github.com/python-imaging/Pillow/pull/199 |
117 |
REQUIRED_USE="test? ( jpeg tiff zlib )" |
118 |
|
119 |
S="${WORKDIR}/${MY_P}" |
120 |
|
121 |
src_prepare() { |
122 |
# Tests like to write to cwd. |
123 |
# https://github.com/python-imaging/Pillow/pull/200 |
124 |
use test && DISTUTILS_IN_SOURCE_BUILD=1 |
125 |
|
126 |
distutils-r1_src_prepare |
127 |
} |
128 |
|
129 |
python_prepare_all() { |
130 |
# Apply patches before executing sed. |
131 |
local patches=( |
132 |
"${FILESDIR}/imaging-1.1.7-no-xv.patch" |
133 |
"${FILESDIR}/imaging-2.0.0-delete_hardcoded_paths.patch" |
134 |
"${FILESDIR}/imaging-2.0.0-gif_transparency.patch" |
135 |
"${FILESDIR}/imaging-2.0.0-libm_linking.patch" |
136 |
"${FILESDIR}/imaging-2.0.0-GifImagePlugin.patch" |
137 |
) |
138 |
epatch "${patches[@]}" |
139 |
|
140 |
# Add shebangs. |
141 |
# https://github.com/python-imaging/Pillow/pull/197 |
142 |
sed -e "1i#!/usr/bin/env python" -i Scripts/*.py || die |
143 |
|
144 |
# Disable all the stuff we don't want. |
145 |
local f |
146 |
for f in jpeg lcms tiff tk webp zlib; do |
147 |
if ! use ${f}; then |
148 |
sed -i -e "s:feature.${f} =:& None #:" setup.py || die |
149 |
fi |
150 |
done |
151 |
if ! use truetype; then |
152 |
sed -i -e 's:feature.freetype =:& None #:' setup.py || die |
153 |
fi |
154 |
|
155 |
distutils-r1_python_prepare_all |
156 |
} |
157 |
|
158 |
# XXX: split into two ebuilds? |
159 |
wrap_phase() { |
160 |
"${@}" |
161 |
|
162 |
if use scanner; then |
163 |
cd Sane || die |
164 |
"${@}" |
165 |
fi |
166 |
} |
167 |
|
168 |
python_compile() { |
169 |
wrap_phase distutils-r1_python_compile |
170 |
} |
171 |
|
172 |
python_compile_all() { |
173 |
use doc && emake -C docs html |
174 |
} |
175 |
|
176 |
python_test() { |
177 |
"${PYTHON}" selftest.py || die "Tests fail with ${EPYTHON}" |
178 |
"${PYTHON}" Tests/run.py --installed || die "Tests fail with ${EPYTHON}" |
179 |
} |
180 |
|
181 |
python_install() { |
182 |
python_doheader libImaging/{Imaging.h,ImPlatform.h} |
183 |
|
184 |
wrap_phase distutils-r1_python_install |
185 |
} |
186 |
|
187 |
python_install_all() { |
188 |
use doc && local HTML_DOCS=( docs/_build/. ) |
189 |
use examples && local EXAMPLES=( Scripts/. ) |
190 |
|
191 |
distutils-r1_python_install_all |
192 |
|
193 |
if use scanner; then |
194 |
docinto sane |
195 |
dodoc Sane/{CHANGES,README,sanedoc.txt} |
196 |
fi |
197 |
|
198 |
if use examples && use scanner; then |
199 |
docinto examples/sane |
200 |
doins Sane/demo_*.py |
201 |
fi |
202 |
} |