40 lines
1.4 KiB
Ruby
40 lines
1.4 KiB
Ruby
class Libdnet < Formula
|
|
desc "Portable low-level networking library"
|
|
homepage "https://github.com/ofalk/libdnet"
|
|
url "https://github.com/ofalk/libdnet/archive/libdnet-1.14.tar.gz"
|
|
sha256 "592599c54a57102a177270f3a2caabda2c2ac7768b977d7458feba97da923dfe"
|
|
license "BSD-3-Clause"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/^libdnet[._-]v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "54a55ad8719e269c07cbef8a5c61924e2431a5a5c88cce4148dbeffede79a353"
|
|
sha256 cellar: :any, big_sur: "8e5f269aa55ecbf1a5f6855ef355696159b6155ea338cfb1e3b3b4ae8409bb72"
|
|
sha256 cellar: :any, catalina: "f8c9ace5eb112c484f50da7624df13c551b14114ece91a155ce2394b30e264b7"
|
|
sha256 cellar: :any, mojave: "1e967ac6c5b9c70f72efba9082844c755dba2d62054a4c4dfbd5629da3cb0b76"
|
|
sha256 cellar: :any, high_sierra: "fd53de5c1830dcdb52ecba97cf0c9c6afccf44037e6df6f64ef1d163d6c6adff"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
|
|
def install
|
|
# autoreconf to get '.dylib' extension on shared lib
|
|
ENV.append_path "ACLOCAL_PATH", "config"
|
|
system "autoreconf", "-ivf"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/dnet-config", "--version"
|
|
end
|
|
end
|