freetds: use new dsl
This commit is contained in:
parent
2e746b4fbb
commit
2d2236ef18
1 changed files with 4 additions and 6 deletions
|
@ -5,12 +5,10 @@ class Freetds < Formula
|
||||||
url 'http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz'
|
url 'http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz'
|
||||||
sha1 '3ab06c8e208e82197dc25d09ae353d9f3be7db52'
|
sha1 '3ab06c8e208e82197dc25d09ae353d9f3be7db52'
|
||||||
|
|
||||||
depends_on "pkg-config" => :build
|
option 'with-unixodbc', "Compile against unixODBC"
|
||||||
depends_on "unixodbc" if ARGV.include? "--with-unixodbc"
|
|
||||||
|
|
||||||
def options
|
depends_on "pkg-config" => :build
|
||||||
[['--with-unixodbc', "Compile against unixODBC."]]
|
depends_on "unixodbc" if build.include? "with-unixodbc"
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
args = %W[--prefix=#{prefix}
|
args = %W[--prefix=#{prefix}
|
||||||
|
@ -19,7 +17,7 @@ class Freetds < Formula
|
||||||
--mandir=#{man}
|
--mandir=#{man}
|
||||||
]
|
]
|
||||||
|
|
||||||
if ARGV.include? "--with-unixodbc"
|
if build.include? "with-unixodbc"
|
||||||
args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}"
|
args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue