diff --git a/Formula/sqsh.rb b/Formula/sqsh.rb index edf3f96384..2440ab84a1 100644 --- a/Formula/sqsh.rb +++ b/Formula/sqsh.rb @@ -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}"