Fix Sphinx formula to pass --without-mysql if which fails to find mysqld

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Kunal Shah 2010-04-14 15:41:33 -04:00 committed by Adam Vandenberg
parent 1894daafcf
commit e2a3945317

View file

@ -13,6 +13,7 @@ class Sphinx <Formula
config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
# configure script won't auto-select PostgreSQL
config_args << "--with-pgsql" if `/usr/bin/which pg_config`.size > 0
config_args << "--without-mysql" if `/usr/bin/which mysqld`.size <= 0
system "./configure", *config_args
system "make install"