1 |
commit: ef77616271aa0631e2e255952e34ec183ffa522c |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 27 18:09:15 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 27 18:09:15 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef776162 |
7 |
|
8 |
sci-chemistry/openbabel-python: Fix for gcc-5 |
9 |
|
10 |
convert mycmakeargs to be an array |
11 |
|
12 |
Package-Manager: portage-2.2.23 |
13 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
14 |
|
15 |
sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild | 8 ++++++-- |
16 |
1 file changed, 6 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild b/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild |
19 |
index 2650d19..114ace5 100644 |
20 |
--- a/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild |
21 |
+++ b/sci-chemistry/openbabel-python/openbabel-python-2.3.2.ebuild |
22 |
@@ -45,11 +45,14 @@ src_prepare() { |
23 |
-outdir scripts/python \ |
24 |
scripts/openbabel-python.i \ |
25 |
|| die "Regeneration of openbabel-python.cpp failed" |
26 |
+ sed \ |
27 |
+ -e '/__GNUC__/s:== 4:>= 4:g' \ |
28 |
+ -i include/openbabel/shared_ptr.h || die |
29 |
} |
30 |
|
31 |
src_configure() { |
32 |
my_impl_src_configure() { |
33 |
- local mycmakeargs="${mycmakeargs} |
34 |
+ local mycmakeargs=( |
35 |
-DCMAKE_INSTALL_RPATH= |
36 |
-DBINDINGS_ONLY=ON |
37 |
-DBABEL_SYSTEM_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libopenbabel.so" |
38 |
@@ -60,7 +63,8 @@ src_configure() { |
39 |
-DPYTHON_INCLUDE_DIR="${EPREFIX}/usr/include/${EPYTHON}" |
40 |
-DPYTHON_INCLUDE_PATH="${EPREFIX}/usr/include/${EPYTHON}" |
41 |
-DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so" |
42 |
- -DENABLE_TESTS=ON" |
43 |
+ -DENABLE_TESTS=ON |
44 |
+ ) |
45 |
|
46 |
cmake-utils_src_configure |
47 |
} |