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