homebrew-core/Formula/httping.rb

41 lines
2.0 KiB
Ruby

class Httping < Formula
desc "Ping-like tool for HTTP requests"
homepage "https://www.vanheusden.com/httping/"
url "https://www.mirrorservice.org/sites/distfiles.macports.org/httping/httping-2.5.tgz"
mirror "https://fossies.org/linux/www/httping-2.5.tgz"
sha256 "3e895a0a6d7bd79de25a255a1376d4da88eb09c34efdd0476ab5a907e75bfaf8"
license "GPL-2.0"
revision 2
bottle do
sha256 cellar: :any, arm64_monterey: "719c7b85c0f6f75cd298210d78460311793048349fb01450ae1acc26204cd740"
sha256 cellar: :any, arm64_big_sur: "2061528a8b8a03b6d8276af007c617b8a4937e06c7b871dd729664f50f47eef2"
sha256 cellar: :any, monterey: "802527f7e4eec6542de9bc232403a1bdcbfea97e695d4e5876dc5766c1417337"
sha256 cellar: :any, big_sur: "b7d049b495d38844fcf2eb479a02c6472aef31d9b516536677a024634febf356"
sha256 cellar: :any, catalina: "9432f93eec676aad685be06819da5649ec071f6542302d077ccf5d0623b9b567"
sha256 cellar: :any, mojave: "2314efd3b919b759290b7ead8dea99c50b11860f7aadb8fd4f9c7e0e7cc92e5e"
sha256 cellar: :any, high_sierra: "8df0f98d479c72a20ca2b353a06c9c1bf071cceed53774c737f41caf27238fc1"
sha256 cellar: :any, sierra: "9d0b6368e6fa4e2b4fb618c7ba3893a5b3b47471b366305026ee75b44d6ce91e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0090bfe517e71dd18d61ed96c5f5cf2cc1bf252399c9d49b521b9a53bc7a46b8"
end
disable! date: "2022-10-19", because: :repo_removed
depends_on "gettext"
depends_on "openssl@1.1"
uses_from_macos "ncurses"
def install
# Reported upstream, see: https://github.com/Homebrew/homebrew/pull/28653
inreplace %w[configure Makefile], "ncursesw", "ncurses"
ENV.append "LDFLAGS", "-lintl" if OS.mac?
inreplace "Makefile", "cp nl.mo $(DESTDIR)/$(PREFIX)/share/locale/nl/LC_MESSAGES/httping.mo", ""
system "make", "install", "PREFIX=#{prefix}"
end
test do
system bin/"httping", "-c", "2", "-g", "https://brew.sh/"
end
end