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:
parent
1894daafcf
commit
e2a3945317
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ class Sphinx <Formula
|
||||||
config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
|
config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
|
||||||
# configure script won't auto-select PostgreSQL
|
# configure script won't auto-select PostgreSQL
|
||||||
config_args << "--with-pgsql" if `/usr/bin/which pg_config`.size > 0
|
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 "./configure", *config_args
|
||||||
system "make install"
|
system "make install"
|
||||||
|
|
Loading…
Reference in a new issue