Gentoo Archives: gentoo-commits

From: "Maxim Koltsov (maksbotan)" <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/imaging: ChangeLog imaging-1.1.7-r1.ebuild
Date: Wed, 21 Dec 2011 07:32:48
Message-Id: 20111221073238.DCCD42004B@flycatcher.gentoo.org
1 maksbotan 11/12/21 07:32:38
2
3 Modified: ChangeLog
4 Added: imaging-1.1.7-r1.ebuild
5 Log:
6 Revision bump, add lcms depend and use flag, bug 381689. Thanks to Chris Mayo
7
8 (Portage version: 2.1.10.40/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.65 dev-python/imaging/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 7 Jul 2011 23:26:15 -0000 1.64
24 +++ ChangeLog 21 Dec 2011 07:32:38 -0000 1.65
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/imaging
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.64 2011/07/07 23:26:15 neurogeek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.65 2011/12/21 07:32:38 maksbotan Exp $
30 +
31 +*imaging-1.1.7-r1 (21 Dec 2011)
32 +
33 + 21 Dec 2011; Maxim Koltsov <maksbotan@g.o> +imaging-1.1.7-r1.ebuild,
34 + +files/imaging-1.1.7-nolcms.patch:
35 + Revision bump, add lcms depend and use flag, bug 381689. Thanks to Chris Mayo
36
37 07 Jul 2011; Jesus Rivero <neurogeek@g.o> imaging-1.1.7.ebuild:
38 Fixed shebang in Scripts/pilfont.py wrt bug #371117
39
40
41
42 1.1 dev-python/imaging/imaging-1.1.7-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/imaging-1.1.7-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/imaging-1.1.7-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: imaging-1.1.7-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.7-r1.ebuild,v 1.1 2011/12/21 07:32:38 maksbotan Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 PYTHON_USE_WITH="tk"
56 PYTHON_USE_WITH_OPT="tk"
57 SUPPORT_PYTHON_ABIS="1"
58 RESTRICT_PYTHON_ABIS="3.* *-jython"
59
60 inherit eutils distutils
61
62 MY_P=Imaging-${PV}
63
64 DESCRIPTION="Python Imaging Library (PIL)"
65 HOMEPAGE="http://www.pythonware.com/products/pil/index.htm"
66 SRC_URI="http://www.effbot.org/downloads/${MY_P}.tar.gz"
67
68 LICENSE="as-is"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
71 IUSE="doc examples lcms scanner tk X"
72
73 DEPEND="virtual/jpeg
74 media-libs/freetype:2
75 lcms? ( media-libs/lcms:0[python] )
76 scanner? ( media-gfx/sane-backends )
77 X? ( x11-misc/xdg-utils )"
78 RDEPEND="${DEPEND}"
79
80 S="${WORKDIR}/${MY_P}"
81
82 DOCS="CHANGES CONTENTS"
83
84 pkg_setup() {
85 PYTHON_MODNAME="PIL $(use scanner && echo sane.py)"
86 python_pkg_setup
87 }
88
89 src_prepare() {
90 distutils_src_prepare
91
92 epatch "${FILESDIR}/${P}-no-xv.patch"
93 epatch "${FILESDIR}/${P}-sane.patch"
94 epatch "${FILESDIR}/${P}-giftrans.patch"
95 epatch "${FILESDIR}/${P}-missing-math.patch"
96 if ! use lcms; then
97 epatch "${FILESDIR}/${P}-nolcms.patch"
98 fi
99
100 # Add shebang.
101 sed -e "1i#!/usr/bin/python" -i Scripts/pilfont.py \
102 || die "sed failed adding shebang"
103
104 sed -i \
105 -e "s:/usr/lib\":/usr/$(get_libdir)\":" \
106 -e "s:\"lib\":\"$(get_libdir)\":g" \
107 setup.py || die "sed failed"
108
109 if ! use tk; then
110 # Make the test always fail
111 sed -i \
112 -e 's/import _tkinter/raise ImportError/' \
113 setup.py || die "sed failed"
114 fi
115 }
116
117 src_compile() {
118 distutils_src_compile
119
120 if use scanner; then
121 pushd Sane > /dev/null
122 distutils_src_compile
123 popd > /dev/null
124 fi
125 }
126
127 src_test() {
128 tests() {
129 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" selftest.py
130 }
131 python_execute_function tests
132 }
133
134 src_install() {
135 distutils_src_install
136
137 if use doc; then
138 dohtml Docs/* || die "dohtml failed"
139 fi
140
141 if use scanner; then
142 pushd Sane > /dev/null
143 docinto sane
144 DOCS="CHANGES sanedoc.txt" distutils_src_install
145 popd > /dev/null
146 fi
147
148 # Install headers required by media-gfx/sketch.
149 install_headers() {
150 insinto "$(python_get_includedir)"
151 doins libImaging/Imaging.h
152 doins libImaging/ImPlatform.h
153 }
154 python_execute_function install_headers
155
156 if use examples; then
157 insinto /usr/share/doc/${PF}/examples
158 doins Scripts/* || die "doins failed"
159
160 if use scanner; then
161 insinto /usr/share/doc/${PF}/examples/sane
162 doins Sane/demo_*.py || die "doins failed"
163 fi
164 fi
165 }