diff options
| author | Adam Vandenberg | 2012-08-27 22:04:48 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 22:04:48 -0700 |
| commit | ec84831d78a4887a5a3f0d7441468e312f58d5d3 (patch) | |
| tree | e71f3ea77c0fc1dfeb4ac1a5cbe4424f51e02959 /Library/Formula | |
| parent | 87c68b8d940dfae85b03f893c4d07e468e61e67f (diff) | |
| download | homebrew-ec84831d78a4887a5a3f0d7441468e312f58d5d3.tar.bz2 | |
freetds: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/freetds.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/freetds.rb b/Library/Formula/freetds.rb index dfdf0d799..4846fc577 100644 --- a/Library/Formula/freetds.rb +++ b/Library/Formula/freetds.rb @@ -5,12 +5,10 @@ class Freetds < Formula url 'http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz' sha1 '3ab06c8e208e82197dc25d09ae353d9f3be7db52' - depends_on "pkg-config" => :build - depends_on "unixodbc" if ARGV.include? "--with-unixodbc" + option 'with-unixodbc', "Compile against unixODBC" - def options - [['--with-unixodbc', "Compile against unixODBC."]] - end + depends_on "pkg-config" => :build + depends_on "unixodbc" if build.include? "with-unixodbc" def install args = %W[--prefix=#{prefix} @@ -19,7 +17,7 @@ class Freetds < Formula --mandir=#{man} ] - if ARGV.include? "--with-unixodbc" + if build.include? "with-unixodbc" args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}" end |
