sqsh: make x11 option name more consistent.

This commit is contained in:
Mike McQuaid 2014-10-19 14:11:06 +01:00
parent 370257f1a1
commit 1bc971894c

View file

@ -7,10 +7,12 @@ class Sqsh < Formula
option "enable-x", "Enable X windows support"
depends_on :x11 if build.include? "enable-x"
depends_on :x11 => :optional
depends_on 'freetds'
depends_on 'readline'
deprecated_option "enable-x", "with-x11"
# this patch fixes detection of freetds being instaled, it was reported
# upstream via email and should be fixed in the next release
patch :DATA
@ -26,7 +28,7 @@ class Sqsh < Formula
ENV['LIBDIRS'] = readline.opt_lib
ENV['INCDIRS'] = readline.opt_include
if build.include? "enable-x"
if build.with? "x11"
args << "--with-x"
args << "--x-libraries=#{MacOS::X11.lib}"
args << "--x-includes=#{MacOS::X11.include}"