Skip to content

Commit

Permalink
use curl from homebrew for Mountain Lion
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Aug 31, 2012
1 parent 502341a commit 1f73bc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Formula/php53.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Php53 < Formula
# So PHP extensions don't report missing symbols
skip_clean ['bin', 'sbin']

depends_on 'curl'
depends_on 'freetds' if ARGV.include? '--with-mssql'
depends_on 'freetype'
depends_on 'gettext'
Expand Down Expand Up @@ -138,14 +139,13 @@ def _install
"--enable-bcmath",
"--enable-calendar",
"--with-zlib=#{Formula.factory('zlib').prefix}",
"--with-bz2=/usr",
"--with-ldap",
"--with-ldap-sasl=/usr",
"--with-xmlrpc",
"--with-kerberos=/usr",
"--with-libxml-dir=#{Formula.factory('libxml2').prefix}",
"--with-xsl=/usr",
"--with-curl=/usr",
"--with-curl=#{Formula.factory('curl').prefix}",
"--with-gd",
"--enable-gd-native-ttf",
"--with-freetype-dir=#{Formula.factory('freetype').prefix}",
Expand All @@ -159,6 +159,10 @@ def _install
"--mandir=#{man}",
]

unless ARGV.include? '--without-bz2'
args << '--with-bz2=/usr'
end

if ARGV.include? '--with-homebrew-openssl'
args << "--with-openssl=" + Formula.factory('openssl').prefix.to_s
else
Expand Down
8 changes: 6 additions & 2 deletions Formula/php54.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Php54 < Formula
# So PHP extensions don't report missing symbols
skip_clean ['bin', 'sbin']

depends_on 'curl'
depends_on 'freetds' if ARGV.include? '--with-mssql'
depends_on 'freetype'
depends_on 'gettext'
Expand Down Expand Up @@ -143,14 +144,13 @@ def _install
"--enable-bcmath",
"--enable-calendar",
"--with-zlib=#{Formula.factory('zlib').prefix}",
"--with-bz2=/usr",
"--with-ldap",
"--with-ldap-sasl=/usr",
"--with-xmlrpc",
"--with-kerberos=/usr",
"--with-libxml-dir=#{Formula.factory('libxml2').prefix}",
"--with-xsl=/usr",
"--with-curl=/usr",
"--with-curl=#{Formula.factory('curl').prefix}",
"--with-gd",
"--enable-gd-native-ttf",
"--with-freetype-dir=#{Formula.factory('freetype').prefix}",
Expand All @@ -163,6 +163,10 @@ def _install
"--mandir=#{man}",
]

unless ARGV.include? '--without-bz2'
args << '--with-bz2=/usr'
end

if ARGV.include? '--with-homebrew-openssl'
args << "--with-openssl=" + Formula.factory('openssl').prefix.to_s
else
Expand Down

0 comments on commit 1f73bc7

Please sign in to comment.