aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sphinx.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-12-14 21:13:26 -0800
committerAdam Vandenberg2012-12-14 21:13:26 -0800
commitdbe847e4effe102b88ac86965af1159e7d41ab7d (patch)
tree62e0605b20aa7b93762c7a8f69c50f68a0767e59 /Library/Formula/sphinx.rb
parent33ae4c0ea6c34eb958665981e6a78a3b1731f176 (diff)
downloadhomebrew-dbe847e4effe102b88ac86965af1159e7d41ab7d.tar.bz2
sphinx: fix database detection
Closes #16073.
Diffstat (limited to 'Library/Formula/sphinx.rb')
-rw-r--r--Library/Formula/sphinx.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb
index 2db9f850c..843d65959 100644
--- a/Library/Formula/sphinx.rb
+++ b/Library/Formula/sphinx.rb
@@ -42,9 +42,9 @@ class Sphinx < Formula
args << "--with-libstemmer"
# configure script won't auto-select PostgreSQL
- args << "--with-pgsql" if build.include?('pgsql') or which 'pg_config'
+ args << "--with-pgsql" if build.include?('pgsql') || which('pg_config')
args << "--enable-id64" if build.include?('id64')
- args << "--without-mysql" unless build.include?('mysql') or which 'mysql_config'
+ args << "--without-mysql" unless build.include?('mysql') || which('mysql_config')
system "./configure", *args
system "make install"