1 |
commit: 5b884d991516e0bc74ff09d362e6c1e2f4399808 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 27 18:13:50 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 27 18:13:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b884d99 |
7 |
|
8 |
sci-chemistry/openbabel-perl: 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-perl/openbabel-perl-2.3.2.ebuild | 8 ++++++-- |
16 |
1 file changed, 6 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild |
19 |
index 71a41ba..0331dc7 100644 |
20 |
--- a/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild |
21 |
+++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild |
22 |
@@ -25,6 +25,9 @@ DEPEND="${RDEPEND} |
23 |
S="${WORKDIR}/openbabel-${PV}" |
24 |
|
25 |
src_prepare() { |
26 |
+ sed \ |
27 |
+ -e '/__GNUC__/s:== 4:>= 4:g' \ |
28 |
+ -i include/openbabel/shared_ptr.h || die |
29 |
epatch \ |
30 |
"${FILESDIR}"/${P}-trunk_cmake.patch \ |
31 |
"${FILESDIR}"/${P}-bindings_only.patch |
32 |
@@ -32,14 +35,15 @@ src_prepare() { |
33 |
} |
34 |
|
35 |
src_configure() { |
36 |
- local mycmakeargs="${mycmakeargs} |
37 |
+ local mycmakeargs=( |
38 |
-DCMAKE_INSTALL_RPATH= |
39 |
-DBINDINGS_ONLY=ON |
40 |
-DBABEL_SYSTEM_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libopenbabel.so" |
41 |
-DOB_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/openbabel/${PV}" |
42 |
-DLIB_INSTALL_DIR="${D}/${VENDOR_ARCH}" |
43 |
-DPERL_BINDINGS=ON |
44 |
- -DRUN_SWIG=ON" |
45 |
+ -DRUN_SWIG=ON |
46 |
+ ) |
47 |
|
48 |
cmake-utils_src_configure |
49 |
} |