dev-lang/php: remove redundant "if use oci8-instant-client" check.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 31 Oct 2015 01:00:24 +0000 (21:00 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 31 Oct 2015 02:21:42 +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 dd6915cc5b3b7f7db013cfcc2296ec010e128771..3f663ec5d28cb83b62be3d3fe46e86901a5070af 100644 (file)
@@ -468,10 +468,8 @@ src_configure() {
        $(use_with iodbc iodbc ${EPREFIX}/usr)"
 
        # Oracle support
-       if use oci8-instant-client ; then
-               my_conf+="
-               $(use_with oci8-instant-client oci8)"
-       fi
+       my_conf+="
+       $(use_with oci8-instant-client oci8)"
 
        # PDO support
        if use pdo ; then
index f0e475acbe9470aa176c58d30f60062eea3ebe2c..8043ddf17b06c547cef83d31fed4129a1f8e339c 100644 (file)
@@ -445,10 +445,8 @@ src_configure() {
        $(use_with iodbc iodbc ${EPREFIX}/usr)"
 
        # Oracle support
-       if use oci8-instant-client ; then
-               my_conf+="
-               $(use_with oci8-instant-client oci8)"
-       fi
+       my_conf+="
+       $(use_with oci8-instant-client oci8)"
 
        # PDO support
        if use pdo ; then