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-20220210.tar.gz"
sha256 "ac1223df7eaec28c0e3c01e3f99473b7887d6e32b038415e240acbb142ded0bc"
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: "36ded16d75d48c65b9265f24ba9fcc797fe6356c5eb53de3b72d546c2316de6c"
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