homebrew-core/Formula/libbsd.rb

32 lines
865 B
Ruby

class Libbsd < Formula
desc "Utility functions from BSD systems"
homepage "https://libbsd.freedesktop.org/"
url "https://libbsd.freedesktop.org/releases/libbsd-0.11.6.tar.xz"
sha256 "19b38f3172eaf693e6e1c68714636190c7e48851e45224d720b3b5bc0499b5df"
license "BSD-3-Clause"
livecheck do
url "https://libbsd.freedesktop.org/releases/"
regex(/href=.*?libbsd[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "0c566df81d56032ca6d454c6cc7eb3895e50ea2c8f231edbfe8e1af3ec459842"
end
depends_on "libmd"
depends_on :linux
def install
system "./configure",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "strtonum", shell_output("nm #{lib/"libbsd.so.#{version}"}")
end
end