2014-12-25 22:43:29 +00:00
|
|
|
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"
|
|
|
|
|
2015-01-06 17:27:31 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "dd876e8523f31e935a605c3cb710d681aa762ae7" => :yosemite
|
|
|
|
sha1 "881def6c18b664e2d3cc88f1e8c975fb314bb105" => :mavericks
|
|
|
|
sha1 "48905e0fc63b2ae63cd3fd0912cec8ea09441420" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-12-25 22:43:29 +00:00
|
|
|
keg_only :provided_by_osx, "Apple's CLT package contains apr."
|
|
|
|
|
2015-01-13 15:34:19 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-12-25 22:43:29 +00:00
|
|
|
def install
|
2015-01-13 15:36:17 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2014-12-25 22:43:29 +00:00
|
|
|
# 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.
|
2015-01-13 15:36:17 +00:00
|
|
|
system "./configure", "--prefix=#{libexec}"
|
2014-12-25 22:43:29 +00:00
|
|
|
system "make", "install"
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/apr-1-config", "--link-libtool", "--libs"
|
|
|
|
end
|
|
|
|
end
|