homebrew-core/Formula/wtf.rb

29 lines
834 B
Ruby

class Wtf < Formula
desc "Translate common Internet acronyms"
homepage "https://sourceforge.net/projects/bsdwtf/"
url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20220926.tar.gz"
sha256 "34cd594b8e8393dd7b3d223a45622652373a3fc4fc00d98d32cc3a57f7f3f294"
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: "1851d703156f4b3def4794157dc1afd2baf1a9ec4545cd2c9d061ee751225e19"
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