homebrew-core/Formula/apr.rb
Viktor Szakats 4a68b27d48 apr 1.5.2
Closes Homebrew/homebrew#39379.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-08 15:27:28 +08:00

32 lines
1,009 B
Ruby

class Apr < Formula
homepage "https://apr.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=apr/apr-1.5.2.tar.bz2"
sha256 "7d03ed29c22a7152be45b8e50431063736df9e1daa1ddf93f6a547ba7a28f67a"
bottle do
sha1 "dd876e8523f31e935a605c3cb710d681aa762ae7" => :yosemite
sha1 "881def6c18b664e2d3cc88f1e8c975fb314bb105" => :mavericks
sha1 "48905e0fc63b2ae63cd3fd0912cec8ea09441420" => :mountain_lion
end
keg_only :provided_by_osx, "Apple's CLT package contains apr."
option :universal
def install
ENV.universal_binary if build.universal?
# https://bz.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