sys-devel/gettext: switch C++ disabling to new configure flag
authorMike Frysinger <vapier@gentoo.org>
Mon, 12 Oct 2015 23:05:00 +0000 (19:05 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 13 Oct 2015 00:14:30 +0000 (20:14 -0400)
Rather than clobber CXX ourselves, use the new --disable-c++ flag.

sys-devel/gettext/gettext-0.19.6-r1.ebuild

index 1427822359c446d21247cda9ccdd55cbe0d1ab82..9a0ac980a1f20ab1e97cd75e6e078e71f00de8f5 100644 (file)
@@ -54,6 +54,7 @@ multilib_src_configure() {
                --cache-file="${BUILD_DIR}"/config.cache
                --docdir="/usr/share/doc/${PF}"
 
+               $(use_enable cxx c++)
                $(use_enable cxx libasprintf)
                $(use_enable java)
                $(use_enable static-libs static)
@@ -71,7 +72,6 @@ multilib_src_configure() {
                        --enable-nls
                )
        fi
-       use cxx || export CXX=$(tc-getCC)
 
        local ECONF_SOURCE=${S}
        if ! multilib_is_native_abi ; then