aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-25 23:18:01 -0700
committerAdam Vandenberg2012-08-25 23:18:01 -0700
commit72339656da7ba5efc3e5e9838f934d62a3a9f00f (patch)
treea5beb83ffe961844360e7cd10142db4699e07281 /Library/Formula
parentb268aeb69d723c829b2e658b0404d98944f5e7e3 (diff)
downloadhomebrew-72339656da7ba5efc3e5e9838f934d62a3a9f00f.tar.bz2
sqsh: clean up
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sqsh.rb19
1 files changed, 9 insertions, 10 deletions
diff --git a/Library/Formula/sqsh.rb b/Library/Formula/sqsh.rb
index 5f64b52ed..44c2d4cef 100644
--- a/Library/Formula/sqsh.rb
+++ b/Library/Formula/sqsh.rb
@@ -5,24 +5,23 @@ class Sqsh < Formula
url 'http://downloads.sourceforge.net/sourceforge/sqsh/sqsh-2.1.8.tar.gz'
sha1 'c16ed1c913169e19340971e3162cca8a8f23ed05'
- depends_on :x11
+ option "enable-x", "Enable X windows support"
+
+ depends_on :x11 if build.include? "enable-x"
depends_on 'freetds'
depends_on 'readline'
- def options
- [["--with-x", "Enable X windows support."]]
- end
-
def install
- args = ["--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--mandir=#{man}",
- "--with-readline"]
+ args = %W[
+ --prefix=#{prefix}
+ --mandir=#{man}
+ --with-readline
+ ]
ENV['LIBDIRS'] = Readline.new('readline').lib
ENV['INCDIRS'] = Readline.new('readline').include
- if ARGV.include? "--with-x"
+ if build.include? "enable-x"
args << "--with-x"
args << "--x-libraries=#{MacOS::X11.lib}"
args << "--x-includes=#{MacOS::X11.include}"