aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2012-08-31 11:42:01 -0400
committerMax Howell2012-08-31 13:29:45 -0400
commit49ccb55af0169ec0d1e15f6d1fce5bcd1a19a340 (patch)
tree87bfa785056c4808cfa704db9201594be81ece71 /Library/Formula
parent3e084bf307e1133452c64ebf03709a57a958a6c8 (diff)
downloadhomebrew-49ccb55af0169ec0d1e15f6d1fce5bcd1a19a340.tar.bz2
superenv fix for broken 10.8 apr-1-config
serf requires you to explicitly tell it where to find the supertool because otherwise it has a hardcoded /usr/bin/apr-1-config (:P), ctail however is sensible and searches the PATH so now it's as though we do nothing special in that formula. Nice.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ctail.rb10
-rw-r--r--Library/Formula/serf.rb16
2 files changed, 6 insertions, 20 deletions
diff --git a/Library/Formula/ctail.rb b/Library/Formula/ctail.rb
index cfc570cf0..d62c52cc1 100644
--- a/Library/Formula/ctail.rb
+++ b/Library/Formula/ctail.rb
@@ -9,16 +9,6 @@ class Ctail < Formula
depends_on :libtool
def install
- if MacOS.mountain_lion?
- # Fixes a bad path returned by `apr-1-config --cpp` on ML.
- # https://github.com/mxcl/homebrew/issues/13586
- ENV['CPP'] = "#{ENV.cc} -E"
- # Use HB libtool not the one from apr that also has a bad path.
- ENV['APR_LIBTOOL'] = 'glibtool'
- # Especially for Xcode-only, the apr hearders are needed by glibtool
- ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/usr/include/apr-1"
- end
-
system "./configure", "--prefix=#{prefix}", "--disable-debug"
system 'make'
system 'make install'
diff --git a/Library/Formula/serf.rb b/Library/Formula/serf.rb
index d407b79b6..c20b89239 100644
--- a/Library/Formula/serf.rb
+++ b/Library/Formula/serf.rb
@@ -9,20 +9,16 @@ class Serf < Formula
depends_on :libtool
+ def apr_bin
+ superbin or "/usr/bin"
+ end
+
def install
ENV.universal_binary if build.universal?
- if MacOS.mountain_lion?
- # Fixes a bad path returned by `apr-1-config --cpp` on ML.
- # https://github.com/mxcl/homebrew/issues/13586
- ENV['CPP'] = "#{ENV.cc} -E"
- # Use HB libtool not the one from apr that also has a bad path.
- ENV['APR_LIBTOOL'] = 'glibtool'
- # Especially for Xcode-only, the apr hearders are needed by glibtool
- ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/usr/include/apr-1"
- end
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
- "--prefix=#{prefix}"
+ "--prefix=#{prefix}",
+ "--with-apr=#{apr_bin}"
system "make install"
end
end