From: Michael Orlitzky Date: Mon, 12 Jan 2015 22:01:22 +0000 (-0500) Subject: Fix --with-mysql-sock handling. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=commitdiff_plain;h=50325f4107ee8ed353944b921defb968763c2b3a;ds=sidebyside Fix --with-mysql-sock handling. --- diff --git a/dev-lang/php/php-5.6.4-r1.ebuild b/dev-lang/php/php-5.6.4-r1.ebuild index d3a34aa..e7b3098 100644 --- a/dev-lang/php/php-5.6.4-r1.ebuild +++ b/dev-lang/php/php-5.6.4-r1.ebuild @@ -481,10 +481,9 @@ src_configure() { my_conf+=" $(use_with pdo-mysql pdo-mysql ${mysqllib})" # If MySQL is enabled in any way, pass --with-mysql-sock to ./configure. - local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock" - my_conf+=" $(use_with mysql mysql-sock $mysqlsock)" - my_conf+=" $(use_with mysqli mysql-sock $mysqlsock)" - my_conf+=" $(use_with pdo-mysql mysql-sock $mysqlsock)" + if use mysql || use mysqli || use pdo-mysql ; then + my_conf+=" --with-mysql-sock=${EPREFIX}/var/run/mysqld/mysqld.sock" + fi # Session support if use session ; then