Skip to content

Commit

Permalink
dev-lang/php: remove redundant "if use oci8-instant-client" check.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
orlitzky committed Oct 31, 2015
1 parent a8ec177 commit 19f4690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions dev-lang/php/php-5.6.15.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions dev-lang/php/php-7.0.0_rc5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19f4690

Please sign in to comment.