From 5b884d991516e0bc74ff09d362e6c1e2f4399808 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Tue, 27 Oct 2015 19:13:50 +0100 Subject: 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 --- 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 71a41ba76d7d..0331dc71a028 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 } -- cgit v1.2.3-18-g5258