commit: ef77616271aa0631e2e255952e34ec183ffa522c
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 27 18:09:15 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 18:09:15 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef776162
sci-chemistry/openbabel-python: Fix for gcc-5
convert mycmakeargs to be an array
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild
b/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild
index 2650d19..114ace5 100644
--- a/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild
+++ b/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild
@@ -45,11 +45,14 @@ src_prepare() {
-outdir scripts/python \
scripts/openbabel-python.i \
|| die "Regeneration of openbabel-python.cpp failed"
+ sed \
+ -e '/__GNUC__/s:== 4:>= 4:g' \
+ -i include/openbabel/shared_ptr.h || die
}
src_configure() {
my_impl_src_configure() {
- local mycmakeargs="${mycmakeargs}
+ local mycmakeargs=(
-DCMAKE_INSTALL_RPATH=
-DBINDINGS_ONLY=ON
-DBABEL_SYSTEM_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libopenbabel.so"
@@ -60,7 +63,8 @@ src_configure() {
-DPYTHON_INCLUDE_DIR="${EPREFIX}/usr/include/${EPYTHON}"
-DPYTHON_INCLUDE_PATH="${EPREFIX}/usr/include/${EPYTHON}"
-DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so"
- -DENABLE_TESTS=ON"
+ -DENABLE_TESTS=ON
+ )
cmake-utils_src_configure
}