33 lines
987 B
Ruby
33 lines
987 B
Ruby
class LttngUst < Formula
|
|
desc "Linux Trace Toolkit Next Generation Userspace Tracer"
|
|
homepage "https://lttng.org/"
|
|
url "https://lttng.org/files/lttng-ust/lttng-ust-2.13.3.tar.bz2"
|
|
sha256 "2cc42f51145050430ac4ab72b32d95fd78d5566ccbe44e14a8fcdd23c0ed8f6f"
|
|
license all_of: ["LGPL-2.1-only", "MIT", "GPL-2.0-only", "BSD-3-Clause", "BSD-2-Clause", "GPL-3.0-or-later"]
|
|
|
|
livecheck do
|
|
url "https://lttng.org/download/"
|
|
regex(/href=.*?lttng-ust[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "4d73b3467d1e0115bbee24c3f69ea28d2072c7684158031c8fb5162c2d8b839a"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on :linux
|
|
depends_on "numactl"
|
|
depends_on "userspace-rcu"
|
|
|
|
def install
|
|
system "./configure", *std_configure_args, "--disable-silent-rules"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
cp_r (share/"doc/lttng-ust/examples/demo").children, testpath
|
|
system "make"
|
|
system "./demo"
|
|
end
|
|
end
|