diff options
| author | Jack Nagel | 2012-08-12 13:09:41 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 13:09:41 -0500 |
| commit | d819b1f08daddb2d5a75714cc3b1f730b319f3d6 (patch) | |
| tree | e21d48adc1ce41cb9bca7e60e93fffcf62c31523 /Library | |
| parent | 3bcf766035011d47f6c55a2591a022818abe4863 (diff) | |
| download | homebrew-d819b1f08daddb2d5a75714cc3b1f730b319f3d6.tar.bz2 | |
curl: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/curl.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb index 4046c8029..fd0247255 100644 --- a/Library/Formula/curl.rb +++ b/Library/Formula/curl.rb @@ -9,11 +9,9 @@ class Curl < Formula "The libcurl provided by Leopard is too old for CouchDB to use." depends_on 'pkg-config' => :build - depends_on 'libssh2' if ARGV.include? "--with-ssh" + depends_on 'libssh2' if build.include? 'with-ssh' - def options - [["--with-ssh", "Build with scp and sftp support."]] - end + option 'with-ssh', 'Build with scp and sftp support' def install args = %W[ @@ -21,7 +19,7 @@ class Curl < Formula --disable-dependency-tracking --prefix=#{prefix}] - args << "--with-libssh2" if ARGV.include? "--with-ssh" + args << "--with-libssh2" if build.include? 'with-ssh' system "./configure", *args system "make install" |
