diff options
Diffstat (limited to 'Library/Formula/apr.rb')
| -rw-r--r-- | Library/Formula/apr.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/apr.rb b/Library/Formula/apr.rb new file mode 100644 index 000000000..731ee220e --- /dev/null +++ b/Library/Formula/apr.rb @@ -0,0 +1,29 @@ +class Apr < Formula + homepage "https://apr.apache.org/" + url "http://www.apache.org/dyn/closer.cgi?path=apr/apr-1.5.1.tar.bz2" + sha1 "f94e4e0b678282e0704e573b5b2fe6d48bd1c309" + + keg_only :provided_by_osx, "Apple's CLT package contains apr." + + def install + # Configure switch unconditionally adds the -no-cpp-precomp switch + # to CPPFLAGS, which is an obsolete Apple-only switch that breaks + # builds under non-Apple compilers and which may or may not do anything anymore. + # Reported upstream: https://issues.apache.org/bugzilla/show_bug.cgi?id=48483 + # Upstream bug report still open and unresolved as of end of 2014 + inreplace "configure", " -no-cpp-precomp", "" + + # https://issues.apache.org/bugzilla/show_bug.cgi?id=57359 + # The internal libtool throws an enormous strop if we don't do... + ENV.deparallelize + + # Stick it in libexec otherwise it pollutes lib with a .exp file. + system "./configure", "--prefix=#{libexec}" + system "make", "install" + bin.install_symlink Dir["#{libexec}/bin/*"] + end + + test do + system "#{bin}/apr-1-config", "--link-libtool", "--libs" + end +end |
