summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2007-01-09 13:24:53 +0000
committerTiziano Müller <dev-zero@gentoo.org>2007-01-09 13:24:53 +0000
commit97dc46cae5b9f8047b9bb732fc791f9c615f5b4d (patch)
tree2c39d9bded162438b26062d819091129ef119423 /dev-python/imaging
parentamd64 stable, bug 157023 (diff)
downloadgentoo-2-97dc46cae5b9f8047b9bb732fc791f9c615f5b4d.tar.gz
gentoo-2-97dc46cae5b9f8047b9bb732fc791f9c615f5b4d.tar.bz2
gentoo-2-97dc46cae5b9f8047b9bb732fc791f9c615f5b4d.zip
Version bump (bug #160875). Dropped old version.
(Portage version: 2.1.2_rc4-r1)
Diffstat (limited to 'dev-python/imaging')
-rw-r--r--dev-python/imaging/ChangeLog10
-rw-r--r--dev-python/imaging/files/digest-imaging-1.1.63
-rw-r--r--dev-python/imaging/imaging-1.1.6.ebuild89
3 files changed, 100 insertions, 2 deletions
diff --git a/dev-python/imaging/ChangeLog b/dev-python/imaging/ChangeLog
index 0c7c191cce60..db09c0038d24 100644
--- a/dev-python/imaging/ChangeLog
+++ b/dev-python/imaging/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/imaging
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.28 2006/09/21 12:57:52 cardoe Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.29 2007/01/09 13:24:53 dev-zero Exp $
+
+*imaging-1.1.6 (09 Jan 2007)
+
+ 09 Jan 2007; Tiziano Müller <dev-zero@gentoo.org>
+ -imaging-1.1.4-r1.ebuild, +imaging-1.1.6.ebuild:
+ Version bump (bug #160875). Dropped old version.
21 Sep 2006; Doug Goldstein <cardoe@gentoo.org> imaging-1.1.4-r1.ebuild,
imaging-1.1.5.ebuild:
diff --git a/dev-python/imaging/files/digest-imaging-1.1.6 b/dev-python/imaging/files/digest-imaging-1.1.6
new file mode 100644
index 000000000000..7c09bae37c21
--- /dev/null
+++ b/dev-python/imaging/files/digest-imaging-1.1.6
@@ -0,0 +1,3 @@
+MD5 3a9b5c20ca52f0a9900512d2c7347622 Imaging-1.1.6.tar.gz 435854
+RMD160 336bb92482eb833e5bb1c9e8c1e585c9bdc338d1 Imaging-1.1.6.tar.gz 435854
+SHA256 7dd7358ab519161967c838df27465282d180a3206f693ba2db64273d688b3f90 Imaging-1.1.6.tar.gz 435854
diff --git a/dev-python/imaging/imaging-1.1.6.ebuild b/dev-python/imaging/imaging-1.1.6.ebuild
new file mode 100644
index 000000000000..f3905c19d21d
--- /dev/null
+++ b/dev-python/imaging/imaging-1.1.6.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.6.ebuild,v 1.1 2007/01/09 13:24:53 dev-zero Exp $
+
+inherit distutils multilib
+
+MY_P=Imaging-${PV}
+
+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="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples scanner tk X"
+
+DEPEND=">=media-libs/jpeg-6a
+ >=media-libs/freetype-2.1.5
+ tk? ( dev-lang/tk )
+ scanner? ( media-gfx/sane-backends )
+ X? ( media-gfx/xv )"
+RDEPEND="${DEPEND}"
+
+PYTHON_MODNAME=PIL
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use tk && ! built_with_use dev-lang/python tk; then
+ eerror "Python has to be compiled with tkinter support."
+ eerror "Please re-emerge python with the 'tk' USE-flag set."
+ die "Missing USE-flag for dev-lang/python"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e "s:/lib\":/$(get_libdir)\":" \
+ -e "s:\"lib\":\"$(get_libdir)\":" \
+ setup.py || die "sed failed"
+
+ if ! use tk ; then
+ # Make the test always fail
+ sed -i \
+ -e 's/import _tkinter/raise ImportError/' \
+ setup.py || die "sed failed"
+ fi
+}
+
+src_compile() {
+ distutils_src_compile
+ if use scanner ; then
+ cd "${S}/Sane"
+ distutils_src_compile
+ fi
+}
+
+src_install() {
+ local DOCS="CHANGES CONTENTS"
+ distutils_src_install
+
+ use doc && dohtml Docs/*
+
+ if use scanner ; then
+ cd "${S}/Sane"
+ docinto sane
+ local DOCS="CHANGES sanedoc.txt"
+ distutils_src_install
+ cd "${S}"
+ fi
+
+ # install headers required by media-gfx/sketch
+ distutils_python_version
+ insinto /usr/include/python${PYVER}
+ doins libImaging/Imaging.h
+ doins libImaging/ImPlatform.h
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins Scripts/*
+ if use scanner ; then
+ insinto /usr/share/doc/${PF}/examples/sane
+ doins Sane/demo_*.py
+ fi
+ fi
+}