1 |
djc 09/11/30 09:42:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: imaging-1.1.7.ebuild |
5 |
Log: |
6 |
Version bump dev-python/imaging-1.1.7. |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.52 dev-python/imaging/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/imaging/ChangeLog?rev=1.52&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/imaging/ChangeLog?rev=1.52&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/imaging/ChangeLog?r1=1.51&r2=1.52 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v |
19 |
retrieving revision 1.51 |
20 |
retrieving revision 1.52 |
21 |
diff -u -r1.51 -r1.52 |
22 |
--- ChangeLog 14 Nov 2009 16:44:15 -0000 1.51 |
23 |
+++ ChangeLog 30 Nov 2009 09:42:33 -0000 1.52 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for dev-python/imaging |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.51 2009/11/14 16:44:15 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.52 2009/11/30 09:42:33 djc Exp $ |
29 |
+ |
30 |
+*imaging-1.1.7 (30 Nov 2009) |
31 |
+ |
32 |
+ 30 Nov 2009; Dirkjan Ochtman <djc@g.o> +imaging-1.1.7.ebuild, |
33 |
+ +files/imaging-1.1.7-giftrans.patch, |
34 |
+ +files/imaging-1.1.7-missing-math.patch, +files/imaging-1.1.7-no-xv.patch, |
35 |
+ +files/imaging-1.1.7-sane.patch: |
36 |
+ Version bump to 1.1.7. TIFF endianness seems to be included. |
37 |
|
38 |
14 Nov 2009; Raúl Porcel <armin76@g.o> imaging-1.1.6-r1.ebuild: |
39 |
ia64/sparc stable wrt #287560 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-python/imaging/imaging-1.1.7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/imaging/imaging-1.1.7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/imaging/imaging-1.1.7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: imaging-1.1.7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.7.ebuild,v 1.1 2009/11/30 09:42:33 djc Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
|
57 |
inherit eutils distutils |
58 |
|
59 |
MY_P=Imaging-${PV} |
60 |
|
61 |
DESCRIPTION="Python Imaging Library (PIL)" |
62 |
HOMEPAGE="http://www.pythonware.com/products/pil/index.htm" |
63 |
SRC_URI="http://www.effbot.org/downloads/${MY_P}.tar.gz" |
64 |
|
65 |
LICENSE="as-is" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
68 |
IUSE="doc examples scanner tk X" |
69 |
|
70 |
DEPEND="media-libs/jpeg |
71 |
media-libs/freetype:2 |
72 |
tk? ( dev-lang/python[tk?] ) |
73 |
scanner? ( media-gfx/sane-backends ) |
74 |
X? ( x11-misc/xdg-utils )" |
75 |
RDEPEND="${DEPEND}" |
76 |
|
77 |
RESTRICT_PYTHON_ABIS="3*" |
78 |
|
79 |
PYTHON_MODNAME=PIL |
80 |
S="${WORKDIR}/${MY_P}" |
81 |
|
82 |
src_prepare() { |
83 |
epatch "${FILESDIR}"/${P}-no-xv.patch |
84 |
epatch "${FILESDIR}"/${P}-sane.patch |
85 |
epatch "${FILESDIR}"/${P}-giftrans.patch |
86 |
epatch "${FILESDIR}"/${P}-missing-math.patch |
87 |
sed -i \ |
88 |
-e "s:/usr/lib\":/usr/$(get_libdir)\":" \ |
89 |
-e "s:\"lib\":\"$(get_libdir)\":g" \ |
90 |
setup.py || die "sed failed" |
91 |
if ! use tk; then |
92 |
# Make the test always fail |
93 |
sed -i \ |
94 |
-e 's/import _tkinter/raise ImportError/' \ |
95 |
setup.py || die "sed failed" |
96 |
fi |
97 |
} |
98 |
|
99 |
src_compile() { |
100 |
distutils_src_compile |
101 |
if use scanner; then |
102 |
cd "${S}/Sane" |
103 |
distutils_src_compile |
104 |
fi |
105 |
} |
106 |
|
107 |
src_test() { |
108 |
tests() { |
109 |
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "${python}" selftest.py |
110 |
} |
111 |
python_execute_function tests |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
local DOCS="CHANGES CONTENTS" |
116 |
distutils_src_install |
117 |
|
118 |
use doc && dohtml Docs/* |
119 |
|
120 |
if use scanner; then |
121 |
cd "${S}/Sane" |
122 |
docinto sane |
123 |
local DOCS="CHANGES sanedoc.txt" |
124 |
distutils_src_install |
125 |
cd "${S}" |
126 |
fi |
127 |
|
128 |
# Install headers required by media-gfx/sketch. |
129 |
install_headers() { |
130 |
insinto "$(python_get_includedir)" |
131 |
doins libImaging/Imaging.h |
132 |
doins libImaging/ImPlatform.h |
133 |
} |
134 |
python_execute_function install_headers |
135 |
|
136 |
if use examples; then |
137 |
insinto /usr/share/doc/${PF}/examples |
138 |
doins Scripts/* |
139 |
if use scanner; then |
140 |
insinto /usr/share/doc/${PF}/examples/sane |
141 |
doins Sane/demo_*.py |
142 |
fi |
143 |
fi |
144 |
} |