summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2010-06-26 01:41:01 +0000
committerSebastian Pipping <sping@gentoo.org>2010-06-26 01:41:01 +0000
commitef9ac38f902ab05c70df493c7ba38ab1ee27ac53 (patch)
tree238bb2f825b86f88c5406f642e232b1cf658529e /dev-python
parentAdd USE dep on accessibility for Qt packages, see bug 325461 (diff)
downloadgentoo-2-ef9ac38f902ab05c70df493c7ba38ab1ee27ac53.tar.gz
gentoo-2-ef9ac38f902ab05c70df493c7ba38ab1ee27ac53.tar.bz2
gentoo-2-ef9ac38f902ab05c70df493c7ba38ab1ee27ac53.zip
dev-python/shm: Fix setup.py to respect CC variable (bug #243966)
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/shm/ChangeLog6
-rw-r--r--dev-python/shm/files/shm-1.2.2-compiler.patch11
-rw-r--r--dev-python/shm/shm-1.2.2.ebuild10
3 files changed, 24 insertions, 3 deletions
diff --git a/dev-python/shm/ChangeLog b/dev-python/shm/ChangeLog
index 892739478bd5..56870d9c2c0e 100644
--- a/dev-python/shm/ChangeLog
+++ b/dev-python/shm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/shm
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/shm/ChangeLog,v 1.6 2010/06/02 06:29:21 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/shm/ChangeLog,v 1.7 2010/06/26 01:41:01 sping Exp $
+
+ 26 Jun 2010; Sebastian Pipping <sping@gentoo.org> shm-1.2.2.ebuild,
+ +files/shm-1.2.2-compiler.patch:
+ Fix setup.py to respect CC variable (bug #243966)
02 Jun 2010; Torsten Veller <tove@gentoo.org> metadata.xml:
Remove chtekk from metadata.xml (#103720)
diff --git a/dev-python/shm/files/shm-1.2.2-compiler.patch b/dev-python/shm/files/shm-1.2.2-compiler.patch
new file mode 100644
index 000000000000..e9e1bd22a3a1
--- /dev/null
+++ b/dev-python/shm/files/shm-1.2.2-compiler.patch
@@ -0,0 +1,11 @@
+--- setup.py 2010-06-26 03:29:30.000000000 +0200
++++ setup.py 2010-06-26 03:30:10.000000000 +0200
+@@ -84,7 +84,7 @@
+ filename = "%d.c" % i
+ file(path + filename, "w").write(src % ('_' * i))
+
+- cmd = ["cc", "-c", "-o", "/dev/null", "%s" % path + filename]
++ cmd = [os.environ.get("CC", "cc"), "-c", "-o", "/dev/null", "%s" % path + filename]
+
+ po = popen2.Popen4(cmd)
+ if not po.wait(): underscores[i] = True
diff --git a/dev-python/shm/shm-1.2.2.ebuild b/dev-python/shm/shm-1.2.2.ebuild
index bb3660a2340c..42c8a0d16b6d 100644
--- a/dev-python/shm/shm-1.2.2.ebuild
+++ b/dev-python/shm/shm-1.2.2.ebuild
@@ -1,10 +1,12 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/shm/shm-1.2.2.ebuild,v 1.4 2010/02/07 20:27:57 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/shm/shm-1.2.2.ebuild,v 1.5 2010/06/26 01:41:01 sping Exp $
+
+EAPI="2"
NEED_PYTHON=2.3
-inherit distutils
+inherit eutils distutils
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
@@ -19,6 +21,10 @@ IUSE=""
DEPEND="dev-python/setuptools"
RDEPEND=""
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-compiler.patch
+}
+
src_install() {
distutils_src_install