homebrew-core/Formula/iputils.rb

35 lines
981 B
Ruby

class Iputils < Formula
desc "Set of small useful utilities for Linux networking"
homepage "https://github.com/iputils/iputils"
url "https://github.com/iputils/iputils/archive/refs/tags/20211215.tar.gz"
sha256 "b6f67fc705490673ff4471d006221b4a2f1b1180b929d9fefd771352621ccedf"
license all_of: ["GPL-2.0-or-later", "BSD-3-Clause"]
head "https://github.com/iputils/iputils.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "2cd8e8342e42158cbb2483ba6ef8eeb6f1a882d7c0ec2e2877f7fdf44ec15821"
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "libxslt"
depends_on :linux
def install
args = %w[
-DBUILD_MANS=true
-DUSE_CAP=false
-DSKIP_TESTS=true
]
mkdir "build" do
system "meson", *std_meson_args, *args, ".."
system "ninja"
system "ninja", "install"
end
end
test do
assert_match version.to_s, shell_output("#{bin}/ping -V")
end
end