summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/pyelemental/ChangeLog6
-rw-r--r--dev-python/pyelemental/files/pyelemental-1.2.0-gcc-4.7.patch25
-rw-r--r--dev-python/pyelemental/pyelemental-1.2.0.ebuild14
3 files changed, 40 insertions, 5 deletions
diff --git a/dev-python/pyelemental/ChangeLog b/dev-python/pyelemental/ChangeLog
index 5f45d0717e92..1843008051f7 100644
--- a/dev-python/pyelemental/ChangeLog
+++ b/dev-python/pyelemental/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pyelemental
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyelemental/ChangeLog,v 1.5 2012/05/04 15:12:15 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyelemental/ChangeLog,v 1.6 2012/07/08 17:42:28 jlec Exp $
+
+ 08 Jul 2012; Justin Lecher <jlec@gentoo.org> pyelemental-1.2.0.ebuild,
+ +files/pyelemental-1.2.0-gcc-4.7.patch:
+ Add fix for gcc-4.7, #425246
04 May 2012; Patrick Lauer <patrick@gentoo.org> pyelemental-1.2.0.ebuild:
Migrating dev-util/pkgconfig -> virtual/pkgconfig
diff --git a/dev-python/pyelemental/files/pyelemental-1.2.0-gcc-4.7.patch b/dev-python/pyelemental/files/pyelemental-1.2.0-gcc-4.7.patch
new file mode 100644
index 000000000000..a0a53a67be28
--- /dev/null
+++ b/dev-python/pyelemental/files/pyelemental-1.2.0-gcc-4.7.patch
@@ -0,0 +1,25 @@
+ value-types.tcc | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/value-types.tcc b/value-types.tcc
+index 5afc8d0..a95ccbf 100644
+--- a/value-types.tcc
++++ b/value-types.tcc
+@@ -44,7 +44,7 @@ ValueType_t (bool)::ready (PyObject* module)
+
+ ValueType_t (PyObject*)::wrap (const cxxtype& source)
+ {
+- return wrap_copy (&type, source);
++ return ValueType::wrap_copy (&type, source);
+ }
+
+
+@@ -160,7 +160,7 @@ ValueListType_t (bool)::ready (PyObject* module)
+
+ ValueListType_t (PyObject*)::wrap (const cxxtype& source)
+ {
+- return wrap_copy (&type, source);
++ return ValueListType::wrap_copy (&type, source);
+ }
+
+
diff --git a/dev-python/pyelemental/pyelemental-1.2.0.ebuild b/dev-python/pyelemental/pyelemental-1.2.0.ebuild
index 952633a25d46..9115389bf880 100644
--- a/dev-python/pyelemental/pyelemental-1.2.0.ebuild
+++ b/dev-python/pyelemental/pyelemental-1.2.0.ebuild
@@ -1,16 +1,17 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyelemental/pyelemental-1.2.0.ebuild,v 1.5 2012/05/04 15:12:15 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyelemental/pyelemental-1.2.0.ebuild,v 1.6 2012/07/08 17:42:28 jlec Exp $
+
+EAPI=4
-EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
-inherit distutils
+inherit distutils eutils
DESCRIPTION="Python bindings for libelemental (sci-chemistry/gelemental)"
-HOMEPAGE="http://www.kdau.com/projects/gelemental"
+HOMEPAGE="http://freecode.com/projects/gelemental/"
SRC_URI="http://www.kdau.com/files/${P}.tar.bz2"
LICENSE="GPL-3"
@@ -24,6 +25,11 @@ DEPEND="${RDEPEND}
DOCS="AUTHORS NEWS"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc-4.7.patch
+ distutils_src_prepare
+}
+
src_install() {
distutils_src_install
dohtml docs/html/*.html || die "dohtml failed"