Skip to content

Commit

Permalink
curl: modernize style
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Apr 13, 2013
1 parent 54ec32f commit 68fecd9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Formula/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand All @@ -27,11 +27,11 @@ def install
--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"
Expand Down

0 comments on commit 68fecd9

Please sign in to comment.