homebrew-core/Formula/iproute2mac.rb

28 lines
776 B
Ruby

class Iproute2mac < Formula
include Language::Python::Shebang
desc "CLI wrapper for basic network utilities on macOS - ip command"
homepage "https://github.com/brona/iproute2mac"
url "https://github.com/brona/iproute2mac/releases/download/v1.3.0/iproute2mac-1.3.0.tar.gz"
sha256 "3fefce6b0f5e166355fdb04934cbdd906211b64e5adb6a385469696dc51233b7"
license "MIT"
revision 2
bottle do
sha256 cellar: :any_skip_relocation, all: "6ae5a1243448e699b5e82c093c9dfcdcdc13b84b586f7d77bc1959c6942ad21c"
end
depends_on "python@3.10"
def install
bin.install "src/ip.py" => "ip"
rewrite_shebang detected_python_shebang, bin/"ip"
end
test do
system "#{bin}/ip", "route"
system "#{bin}/ip", "address"
system "#{bin}/ip", "neigh"
end
end