class Wtf < Formula desc "Translate common Internet acronyms" homepage "https://sourceforge.net/projects/bsdwtf/" url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20230126.tar.gz" sha256 "456b905d191b7c733569873579909902fcc2273c286d5ffe8e316dc2d11621e9" license :public_domain livecheck do url :stable regex(%r{url=.*?/wtf[._-]v?(\d{6,8})\.t}i) end bottle do sha256 cellar: :any_skip_relocation, all: "336a3cc8a3a895b83246a702c1de9d2615e3ad013f4424f8ff4c4f51260e56d6" end def install inreplace %w[wtf wtf.6], "/usr/share", share bin.install "wtf" man6.install "wtf.6" (share+"misc").install %w[acronyms acronyms.comp] (share+"misc").install "acronyms-o.real" => "acronyms-o" end test do assert_match "where's the food", shell_output("#{bin}/wtf wtf") end end