homebrew-core/Formula/libopennet.rb

35 lines
1.7 KiB
Ruby

class Libopennet < Formula
desc "Provides open_net() (similar to open())"
homepage "https://www.rkeene.org/oss/libopennet"
url "https://www.rkeene.org/files/oss/libopennet/libopennet-0.9.9.tar.gz"
sha256 "d1350abe17ac507ffb50d360c5bf8290e97c6843f569a1d740f9c1d369200096"
license "LGPL-2.1"
livecheck do
url :homepage
regex(/href=.*?libopennet[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, monterey: "d14a15468f38a3c053272c0669e1db3a550bd121ddb6dbbf8a47637de6fc956c"
sha256 cellar: :any, big_sur: "1c514ff48871809fd77cadcded9c2dc71f7913fde66c81fe3a9c6488b927d17f"
sha256 cellar: :any, catalina: "0f9b40e9c906fce8df8abc866680bf6fbe60cadc5af24dac309e1d51a0f5e99d"
sha256 cellar: :any, mojave: "4702cca034bb0b60b4555615664cc4aedee95c189f37e23e93013594f1dc9321"
sha256 cellar: :any, high_sierra: "82232ab7a71481570e3119e119bc93ef29a9d553c11e16fb93f157c66a7dfe8a"
sha256 cellar: :any, sierra: "c3447365aeb1a478b14b5a71b6ffd29a1f95754fb460ed6f618b55e2f958c227"
sha256 cellar: :any, el_capitan: "de1cb9622ec3b6501236af7e66367bc5bbaa20dfb8e3ae328a339bea6d708bab"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d12f92e4c1e648507685be0a40102bbf253da35bc2bf2bc25b412e8900165a6d"
end
def install
# Fix flat namespace usage.
inreplace "configure", "-flat_namespace -undefined suppress", "-undefined dynamic_lookup"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make", "install"
end
end