summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2009-07-03 09:57:59 +0000
committerChristian Ruppert <idl0r@gentoo.org>2009-07-03 09:57:59 +0000
commit25d060c5fa4394722a10cf54800a89b7928c784b (patch)
treeaddd435cef800b76e7a19597b3d3b8f8db8006c2 /dev-python/imaging
parentinitial commit, bug 238617 (diff)
downloadgentoo-2-25d060c5fa4394722a10cf54800a89b7928c784b.tar.gz
gentoo-2-25d060c5fa4394722a10cf54800a89b7928c784b.tar.bz2
gentoo-2-25d060c5fa4394722a10cf54800a89b7928c784b.zip
Add missing -lm links.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/imaging')
-rw-r--r--dev-python/imaging/ChangeLog6
-rw-r--r--dev-python/imaging/files/imaging-1.1.6-missing-math.patch20
-rw-r--r--dev-python/imaging/imaging-1.1.6-r1.ebuild3
3 files changed, 27 insertions, 2 deletions
diff --git a/dev-python/imaging/ChangeLog b/dev-python/imaging/ChangeLog
index a13f622c0c3d..fe9f8ab2e986 100644
--- a/dev-python/imaging/ChangeLog
+++ b/dev-python/imaging/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/imaging
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.40 2009/05/01 22:58:53 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.41 2009/07/03 09:57:58 idl0r Exp $
+
+ 03 Jul 2009; Christian Ruppert <idl0r@gentoo.org> imaging-1.1.6-r1.ebuild,
+ +files/imaging-1.1.6-missing-math.patch:
+ Add missing -lm links.
01 May 2009; Patrick Lauer <patrick@gentoo.org> imaging-1.1.6-r1.ebuild:
Small fix for tests. Fixes #268126, thanks to Oliver Huber
diff --git a/dev-python/imaging/files/imaging-1.1.6-missing-math.patch b/dev-python/imaging/files/imaging-1.1.6-missing-math.patch
new file mode 100644
index 000000000000..f4d6167eeccc
--- /dev/null
+++ b/dev-python/imaging/files/imaging-1.1.6-missing-math.patch
@@ -0,0 +1,20 @@
+--- setup.py.old 2009-07-03 11:34:59.141671252 +0200
++++ setup.py 2009-07-03 11:51:54.415666711 +0200
+@@ -281,6 +281,8 @@ class pil_build_ext(build_ext):
+ if struct.unpack("h", "\0\1")[0] == 1:
+ defs.append(("WORDS_BIGENDIAN", None))
+
++ libs.append("m")
++
+ exts = [(Extension(
+ "_imaging", files, libraries=libs, define_macros=defs
+ ))]
+@@ -332,7 +334,7 @@ class pil_build_ext(build_ext):
+ ))
+
+ if os.path.isfile("_imagingmath.c"):
+- exts.append(Extension("_imagingmath", ["_imagingmath.c"]))
++ exts.append(Extension("_imagingmath", ["_imagingmath.c"], libraries=["m"]))
+
+ self.extensions[:] = exts
+
diff --git a/dev-python/imaging/imaging-1.1.6-r1.ebuild b/dev-python/imaging/imaging-1.1.6-r1.ebuild
index 2d65a6dac152..7eaa06836420 100644
--- a/dev-python/imaging/imaging-1.1.6-r1.ebuild
+++ b/dev-python/imaging/imaging-1.1.6-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 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-r1.ebuild,v 1.2 2009/05/01 22:58:53 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.6-r1.ebuild,v 1.3 2009/07/03 09:57:58 idl0r Exp $
EAPI=2
inherit eutils distutils
@@ -31,6 +31,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-sane.patch
epatch "${FILESDIR}"/${P}-giftrans.patch
epatch "${FILESDIR}"/${P}-tiffendian.patch
+ epatch "${FILESDIR}/${P}-missing-math.patch"
sed -i \
-e "s:/usr/lib\":/usr/$(get_libdir)\":" \
-e "s:\"lib\":\"$(get_libdir)\":g" \