blob: 48d22e7672cda50271735e7824faccac83207ab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.4-r1.ebuild,v 1.2 2004/11/23 04:48:21 pythonhead Exp $
inherit distutils eutils
MY_P=${P/imaging/Imaging}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Python Imaging Library (PIL)"
HOMEPAGE="http://www.pythonware.com/products/pil/index.htm"
SRC_URI="http://www.effbot.org/downloads/${MY_P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ~ppc sparc alpha ~amd64"
IUSE="X tcltk"
DEPEND="virtual/python
>=media-libs/jpeg-6a
>=sys-libs/zlib-0.95
>=media-libs/freetype-2.1.5
tcltk? ( dev-lang/tk )
X? ( media-gfx/xv )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-setup.py.patch
epatch ${FILESDIR}/${P}-fPIC.patch
epatch ${FILESDIR}/${P}-ft-2.1.9.patch
}
src_compile() {
export OPT=${CFLAGS}
#Build the core imaging library (libImaging.a)
cd ${S}/libImaging
econf || die "econf failed"
#Not configured by configure
sed -e "s:\(JPEGINCLUDE=[[:blank:]]*/usr/\)local/\(include\).*:\1\2:" \
-i Makefile
emake || die
cd ${S}; distutils_src_compile
}
src_install() {
local mydoc="CHANGES* CONTENTS"
distutils_src_install
distutils_python_version
# install headers required by media-gfx/sketch
insinto "${ROOT}/usr/include/python${PYVER}"
doins libImaging/Imaging.h
doins libImaging/ImPlatform.h
doins libImaging/ImConfig.h
}
|