class Wtf < Formula desc "Translate common Internet acronyms" homepage "https://sourceforge.net/projects/bsdwtf/" url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20221205.tar.gz" sha256 "ba1448923dc097daf2be088c938b333f409287a2c69f382f2934e20ba1a819ae" 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: "9bc7edb883d89a9bd0d375ab0b74beb7d1ced1679e368537a043bf57e635b725" 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