dev-lang/php: remove redundant "if use odbc" check.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 31 Oct 2015 00:51:16 +0000 (20:51 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 31 Oct 2015 02:21:41 +0000 (22:21 -0400)
The use_with function doesn't do anything if its USE flag is disabled,
so there's no reason to wrap use_with in "if use...".

Gentoo-Bug: 551526

Package-Manager: portage-2.2.20.1

dev-lang/php/php-5.6.15.ebuild
dev-lang/php/php-7.0.0_rc5.ebuild

index 43c63358dfd4121ec04466653f009dad1843214a..b886802fc3d3915d24c69dc5e99c275baacb5b7f 100644 (file)
@@ -463,10 +463,8 @@ src_configure() {
        fi
 
        # ODBC support
-       if use odbc ; then
-               my_conf+="
-               $(use_with odbc unixODBC ${EPREFIX}/usr)"
-       fi
+       my_conf+="
+       $(use_with odbc unixODBC ${EPREFIX}/usr)"
 
        if use iodbc ; then
                my_conf+="
index 12bfcee2595e26fc2beabc108a071ec75f5b4164..481989304c68aa982395f29c28aff865bd7d0fa0 100644 (file)
@@ -440,10 +440,8 @@ src_configure() {
        fi
 
        # ODBC support
-       if use odbc ; then
-               my_conf+="
-               $(use_with odbc unixODBC ${EPREFIX}/usr)"
-       fi
+       my_conf+="
+       $(use_with odbc unixODBC ${EPREFIX}/usr)"
 
        if use iodbc ; then
                my_conf+="