net-mail/dbmail: replace local myconf with use_with ldap.
authorChris Mayo <aklhfex@gmail.com>
Sun, 11 Dec 2016 19:38:52 +0000 (19:38 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 25 Jan 2017 23:34:36 +0000 (00:34 +0100)
Closes: https://github.com/gentoo/gentoo/pull/3091

net-mail/dbmail/dbmail-3.2.3-r1.ebuild

index 9e5eb8f0694cf37cba512792c1ec5b25e4b8a92d..dd7e68cf3735e0ae05b83c209b422891b964b52d 100644 (file)
@@ -36,15 +36,12 @@ pkg_setup() {
 }
 
 src_configure() {
-       local myconf=""
-       use ldap && myconf=${myconf}" --with-auth-ldap"
-
        econf \
                --enable-manpages \
                --sysconfdir=/etc/dbmail \
                $(use_enable static) \
                $(use_with sieve) \
-               ${myconf}
+               $(use_with ldap auth-ldap)
 }
 
 src_install() {