32 lines
865 B
Ruby
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.7.tar.xz"
|
|
sha256 "9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261"
|
|
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: "0c3b62f8f0c7e04a245a75cbea9f8cdaca2c00edb812e13ebd9fd10767df8d2d"
|
|
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
|