homebrew-core/Formula/userspace-rcu.rb
2014-09-08 00:11:54 -05:00

25 lines
675 B
Ruby

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", "#{doc}/examples", "."
system "make", "-C", "examples"
end
end