Permalink
Browse files

curl: use options DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 3bcf766 commit d819b1f08daddb2d5a75714cc3b1f730b319f3d6 @jacknagel jacknagel committed Aug 12, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 Library/Formula/curl.rb
@@ -9,19 +9,17 @@ 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[
--disable-debug
--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"

0 comments on commit d819b1f

Please sign in to comment.