1 |
floppym 13/09/28 19:19:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pillow-2.1.0.ebuild |
5 |
Log: |
6 |
Version bump. Drop failing patches; I don't think they are actually necessary. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 dev-python/pillow/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/ChangeLog?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/ChangeLog?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/ChangeLog?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pillow/ChangeLog,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- ChangeLog 28 Aug 2013 11:15:21 -0000 1.5 |
24 |
+++ ChangeLog 28 Sep 2013 19:19:02 -0000 1.6 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-python/pillow |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/ChangeLog,v 1.5 2013/08/28 11:15:21 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/ChangeLog,v 1.6 2013/09/28 19:19:02 floppym Exp $ |
30 |
+ |
31 |
+*pillow-2.1.0 (28 Sep 2013) |
32 |
+ |
33 |
+ 28 Sep 2013; Mike Gilbert <floppym@g.o> +pillow-2.1.0.ebuild: |
34 |
+ Version bump. Drop failing patches; I don't think they are actually necessary. |
35 |
|
36 |
28 Aug 2013; Agostino Sarubbo <ago@g.o> pillow-2.0.0-r1.ebuild: |
37 |
Stable for x86, wrt bug #450086 |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/pillow/pillow-2.1.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/pillow-2.1.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pillow/pillow-2.1.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pillow-2.1.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pillow/pillow-2.1.0.ebuild,v 1.1 2013/09/28 19:19:02 floppym Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
54 |
PYTHON_REQ_USE='tk?' |
55 |
|
56 |
inherit distutils-r1 eutils |
57 |
|
58 |
MY_PN=Pillow |
59 |
MY_P=${MY_PN}-${PV} |
60 |
|
61 |
DESCRIPTION="Python Imaging Library (fork)" |
62 |
HOMEPAGE="https://github.com/python-imaging/Pillow https://pypi.python.org/pypi/Pillow" |
63 |
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" |
64 |
|
65 |
LICENSE="HPND" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
68 |
IUSE="doc examples jpeg lcms scanner test tiff tk truetype webp zlib" |
69 |
|
70 |
RDEPEND=" |
71 |
truetype? ( media-libs/freetype:2= ) |
72 |
jpeg? ( virtual/jpeg ) |
73 |
lcms? ( media-libs/lcms:0= ) |
74 |
scanner? ( media-gfx/sane-backends:0= ) |
75 |
tiff? ( media-libs/tiff:0= ) |
76 |
webp? ( media-libs/libwebp:0= ) |
77 |
zlib? ( sys-libs/zlib:0= )" |
78 |
DEPEND="${RDEPEND} |
79 |
app-arch/unzip |
80 |
dev-python/setuptools[${PYTHON_USEDEP}] |
81 |
doc? ( dev-python/sphinx )" |
82 |
RDEPEND+=" !dev-python/imaging" |
83 |
|
84 |
S="${WORKDIR}/${MY_P}" |
85 |
|
86 |
# See _render and _clean in Tests/test_imagefont.py |
87 |
DISTUTILS_IN_SOURCE_BUILD=1 |
88 |
|
89 |
python_prepare_all() { |
90 |
# Apply patches before executing sed. |
91 |
local patches=( |
92 |
"${FILESDIR}/imaging-1.1.7-no-xv.patch" |
93 |
) |
94 |
epatch "${patches[@]}" |
95 |
|
96 |
# Add shebangs. |
97 |
# https://github.com/python-imaging/Pillow/pull/197 |
98 |
sed -e "1i#!/usr/bin/env python" -i Scripts/*.py || die |
99 |
|
100 |
# Disable all the stuff we don't want. |
101 |
local f |
102 |
for f in jpeg lcms tiff tk webp zlib; do |
103 |
if ! use ${f}; then |
104 |
sed -i -e "s:feature.${f} =:& None #:" setup.py || die |
105 |
fi |
106 |
done |
107 |
if ! use truetype; then |
108 |
sed -i -e 's:feature.freetype =:& None #:' setup.py || die |
109 |
fi |
110 |
|
111 |
distutils-r1_python_prepare_all |
112 |
} |
113 |
|
114 |
# XXX: split into two ebuilds? |
115 |
wrap_phase() { |
116 |
"${@}" |
117 |
|
118 |
if use scanner; then |
119 |
cd Sane || die |
120 |
"${@}" |
121 |
fi |
122 |
} |
123 |
|
124 |
python_compile() { |
125 |
wrap_phase distutils-r1_python_compile |
126 |
} |
127 |
|
128 |
python_compile_all() { |
129 |
use doc && emake -C docs html |
130 |
} |
131 |
|
132 |
python_test() { |
133 |
"${PYTHON}" selftest.py --installed || die "Tests fail with ${EPYTHON}" |
134 |
"${PYTHON}" Tests/run.py --installed || die "Tests fail with ${EPYTHON}" |
135 |
} |
136 |
|
137 |
python_install() { |
138 |
python_doheader libImaging/{Imaging.h,ImPlatform.h} |
139 |
|
140 |
wrap_phase distutils-r1_python_install |
141 |
} |
142 |
|
143 |
python_install_all() { |
144 |
use doc && local HTML_DOCS=( docs/_build/html/. ) |
145 |
use examples && local EXAMPLES=( Scripts/. ) |
146 |
|
147 |
distutils-r1_python_install_all |
148 |
|
149 |
if use scanner; then |
150 |
docinto sane |
151 |
dodoc Sane/{CHANGES,README,sanedoc.txt} |
152 |
fi |
153 |
|
154 |
if use examples && use scanner; then |
155 |
docinto examples/sane |
156 |
dodoc Sane/demo_*.py |
157 |
fi |
158 |
} |