summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-10-27 19:13:50 +0100
committerJustin Lecher <jlec@gentoo.org>2015-10-27 19:13:50 +0100
commit5b884d991516e0bc74ff09d362e6c1e2f4399808 (patch)
tree82096281d15237ed3337983ac4c522c3d0008e9e /sci-chemistry/openbabel-perl
parentsci-chemistry/openbabel-python: Fix for gcc-5 (diff)
downloadgentoo-5b884d991516e0bc74ff09d362e6c1e2f4399808.tar.gz
gentoo-5b884d991516e0bc74ff09d362e6c1e2f4399808.tar.bz2
gentoo-5b884d991516e0bc74ff09d362e6c1e2f4399808.zip
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@gentoo.org>
Diffstat (limited to 'sci-chemistry/openbabel-perl')
-rw-r--r--sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild8
1 files 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
}