diff options
| author | Jack Nagel | 2013-04-12 20:01:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-12 20:01:32 -0500 |
| commit | 9409ab6cc7005a7d199d76f4a6e62565b3746918 (patch) | |
| tree | 736e2c6e60b22daabc397917c34f7e395c6a4d58 /Library/Formula | |
| parent | 383ccc24f9ef5d8ae032cdf702b0069935cef176 (diff) | |
| download | homebrew-9409ab6cc7005a7d199d76f4a6e62565b3746918.tar.bz2 | |
curl: modernize style
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/curl.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb index 01adfacde..0019f6776 100644 --- a/Library/Formula/curl.rb +++ b/Library/Formula/curl.rb @@ -15,10 +15,10 @@ class Curl < Formula option 'with-darwinssl' 'Build with Secure Transport for SSL support' depends_on 'pkg-config' => :build - depends_on 'libssh2' if build.include? 'with-ssh' - depends_on 'libmetalink' if build.include? 'with-libmetalink' - depends_on 'c-ares' if build.include? 'with-ares' - depends_on 'openssl' if build.include? 'with-ssl' + depends_on 'libssh2' if build.with? 'ssh' + depends_on 'libmetalink' if build.with? 'libmetalink' + depends_on 'c-ares' if build.with? 'ares' + depends_on 'openssl' if build.with? 'ssl' def install args = %W[ @@ -27,11 +27,11 @@ class Curl < Formula --prefix=#{prefix} ] - args << "--with-libssh2" if build.include? 'with-ssh' - args << "--with-libmetalink" if build.include? 'with-libmetalink' - args << "--enable-ares=#{Formula.factory("c-ares").opt_prefix}" if build.include? 'with-ares' - args << "--with-ssl=#{Formula.factory("openssl").opt_prefix}" if build.include? 'with-ssl' - args << "--with-darwinssl" if build.include? 'with-darwinssl' + args << "--with-libssh2" if build.with? 'ssh' + args << "--with-libmetalink" if build.with? 'libmetalink' + args << "--enable-ares=#{Formula.factory("c-ares").opt_prefix}" if build.with? 'ares' + args << "--with-ssl=#{Formula.factory("openssl").opt_prefix}" if build.with? 'ssl' + args << "--with-darwinssl" if build.with? 'darwinssl' system "./configure", *args system "make install" |
