diff options
| author | Ondřej Surý | 2014-02-18 16:48:50 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-13 11:21:52 -0700 |
| commit | 833dbc01b4aac9d39c407853bdb3850712539f60 (patch) | |
| tree | f13367bf3098a140e6310e39102a2034451d2a57 /Library/Formula | |
| parent | 3ab8891a187463c91e87d757f010385898b8f7c7 (diff) | |
| download | homebrew-833dbc01b4aac9d39c407853bdb3850712539f60.tar.bz2 | |
userspace-rcu 0.8.4
Signed-off-by: Ondřej Surý <ondrej@sury.org>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/userspace-rcu.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/userspace-rcu.rb b/Library/Formula/userspace-rcu.rb new file mode 100644 index 000000000..f3da83ddb --- /dev/null +++ b/Library/Formula/userspace-rcu.rb @@ -0,0 +1,25 @@ +require "formula" + +class UserspaceRcu < Formula + homepage "http://lttng.org/urcu" + url "http://lttng.org/files/urcu/userspace-rcu-0.8.4.tar.bz2" + sha1 "4b3bf1b76e6ea50d9a56d9e5e00df2cc7c4d610f" + + def install + args = ["--disable-dependency-tracking", "--disable-silent-rules", + "--disable-rpath", "--prefix=#{prefix}"] + # workaround broken upstream detection of build platform + if MacOS.prefer_64_bit? + args << "--build=#{Hardware::CPU.arch_64_bit}" + end + + system "./configure", *args + system "make" + system "make", "install" + end + + test do + system "cp", "-a", "#{share}/doc/userspace-rcu/examples", "." + system "make", "-C", "examples" + end +end |
