2014-12-25 22:43:29 +00:00
|
|
|
class Apr < Formula
|
|
|
|
homepage "https://apr.apache.org/"
|
2015-05-05 08:42:18 +00:00
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=apr/apr-1.5.2.tar.bz2"
|
|
|
|
sha256 "7d03ed29c22a7152be45b8e50431063736df9e1daa1ddf93f6a547ba7a28f67a"
|
2014-12-25 22:43:29 +00:00
|
|
|
|
2015-01-06 17:27:31 +00:00
|
|
|
bottle do
|
2015-05-07 08:03:38 +00:00
|
|
|
sha256 "5ae775d6f6a3fb46b1b262e1c0ecb2aca4e5a29ea1f841672ac430b4d49606af" => :yosemite
|
|
|
|
sha256 "691b67fdf7077bca9db5cb0fcc40856dd82914bb00868c4e1a6a692abca87913" => :mavericks
|
|
|
|
sha256 "4d5e7c20d507c48712d8ba549f500e7e58a4782dd1e88aee6d2eb1a169aeeaf9" => :mountain_lion
|
2015-01-06 17:27:31 +00:00
|
|
|
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?
|
|
|
|
|
2015-05-05 08:42:18 +00:00
|
|
|
# https://bz.apache.org/bugzilla/show_bug.cgi?id=57359
|
2014-12-25 22:43:29 +00:00
|
|
|
# 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
|