forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapr.rb
32 lines (25 loc) · 1009 Bytes
/
apr.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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