sci-chemistry/openbabel: Fix for gcc-5
authorJustin Lecher <jlec@gentoo.org>
Tue, 27 Oct 2015 17:37:08 +0000 (18:37 +0100)
committerJustin Lecher <jlec@gentoo.org>
Tue, 27 Oct 2015 18:04:04 +0000 (19:04 +0100)
convert mycmakeargs to be an array

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sci-chemistry/openbabel/openbabel-2.3.2-r1.ebuild

index c123bb0ab3392b64944b306dcdb9d6d1bf4111c2..81b5302bbd85569c1b409b27d7d771ea1e0b7230 100644 (file)
@@ -41,13 +41,21 @@ pkg_setup() {
        fi
 }
 
+src_prepare() {
+       sed \
+               -e '/__GNUC__/s:== 4:>= 4:g' \
+               -i include/openbabel/shared_ptr.h || die
+       cmake-utils_src_prepare
+}
+
 src_configure() {
        need-wxwidgets unicode
-       local mycmakeargs=""
-       mycmakeargs="${mycmakeargs}
+       local mycmakeargs=()
+       mycmakeargs+=(
                -DOPENBABEL_USE_SYSTEM_INCHI=ON
                $(cmake-utils_use_enable openmp OPENMP)
-               $(cmake-utils_use wxwidgets BUILD_GUI)"
+               $(cmake-utils_use wxwidgets BUILD_GUI)
+       )
 
        cmake-utils_src_configure
 }