sys-devel/gettext: simplify configure flag setup slightly
authorMike Frysinger <vapier@gentoo.org>
Mon, 12 Oct 2015 23:07:22 +0000 (19:07 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 13 Oct 2015 00:14:31 +0000 (20:14 -0400)
We don't really need to omit these flags when building the shared libs,
so move them all into one common block to simplify the code a bit.

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

index 9a0ac980a1f20ab1e97cd75e6e078e71f00de8f5..6f23d99976365e5648b0f3345fec5d7a21ad66f6 100644 (file)
@@ -54,9 +54,25 @@ multilib_src_configure() {
                --cache-file="${BUILD_DIR}"/config.cache
                --docdir="/usr/share/doc/${PF}"
 
+               # Emacs support is now in a separate package
+               --without-emacs
+               --without-lispdir
+               # glib depends on us so avoid circular deps
+               --with-included-glib
+               # libcroco depends on glib which ... ^^^
+               --with-included-libcroco
+               # this will _disable_ libunistring (since it is not bundled),
+               # see bug #326477
+               --with-included-libunistring
+
+               $(use_enable acl)
                $(use_enable cxx c++)
                $(use_enable cxx libasprintf)
+               $(use_with git)
+               $(usex git --without-cvs $(use_with cvs))
                $(use_enable java)
+               $(use_enable ncurses curses)
+               $(use_enable openmp)
                $(use_enable static-libs static)
        )
 
@@ -77,26 +93,6 @@ multilib_src_configure() {
        if ! multilib_is_native_abi ; then
                # for non-native ABIs, we build runtime only
                ECONF_SOURCE+=/gettext-runtime
-       else
-               # remaining switches
-               myconf+=(
-                       # Emacs support is now in a separate package
-                       --without-emacs
-                       --without-lispdir
-                       # glib depends on us so avoid circular deps
-                       --with-included-glib
-                       # libcroco depends on glib which ... ^^^
-                       --with-included-libcroco
-                       # this will _disable_ libunistring (since it is not bundled),
-                       # see bug #326477
-                       --with-included-libunistring
-
-                       $(use_enable acl)
-                       $(use_enable ncurses curses)
-                       $(use_enable openmp)
-                       $(use_with git)
-                       $(usex git --without-cvs $(use_with cvs))
-               )
        fi
 
        econf "${myconf[@]}"