homebrew-core/Formula/httping.rb

36 lines
1.5 KiB
Ruby

class Httping < Formula
desc "Ping-like tool for HTTP requests"
homepage "https://www.vanheusden.com/httping/"
url "https://www.vanheusden.com/httping/httping-2.5.tgz"
sha256 "3e895a0a6d7bd79de25a255a1376d4da88eb09c34efdd0476ab5a907e75bfaf8"
license "GPL-2.0"
revision 2
head "https://github.com/flok99/httping.git"
bottle do
sha256 cellar: :any, arm64_big_sur: "2061528a8b8a03b6d8276af007c617b8a4937e06c7b871dd729664f50f47eef2"
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"
end
deprecate! date: "2021-05-20", because: "Upstream website has disappeared"
depends_on "gettext"
depends_on "openssl@1.1"
def install
# Reported upstream, see: https://github.com/Homebrew/homebrew/pull/28653
inreplace %w[configure Makefile], "ncursesw", "ncurses"
ENV.append "LDFLAGS", "-lintl"
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