sys-devel/distcc: Improve src_configure readability
authorMichał Górny <mgorny@gentoo.org>
Sun, 2 Dec 2018 08:28:06 +0000 (09:28 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 2 Dec 2018 08:38:15 +0000 (09:38 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-devel/distcc/distcc-3.3.ebuild

index 2a717b28913616e966d27e1ae60274cd10c41113..aa78ecf5d2b83b0ed94ada9c5660d88df5ee44a3 100644 (file)
@@ -75,17 +75,18 @@ src_prepare() {
 }
 
 src_configure() {
-       local myconf="--disable-Werror"
+       local myconf=(
+               --disable-Werror
+               $(use_with gtk)
+               $(use_with gnome)
+               $(use_with gssapi auth)
+               $(use_with zeroconf avahi)
+       )
 
        # --disable-rfc2553 b0rked, bug #254176
-       use ipv6 && myconf="${myconf} --enable-rfc2553"
-
-       econf \
-               $(use_with gtk) \
-               $(use_with gnome) \
-               $(use_with gssapi auth) \
-               $(use_with zeroconf avahi) \
-               ${myconf}
+       use ipv6 && myconf+=(--enable-rfc2553)
+
+       econf "${myconf[@]}"
 }
 
 src_install() {