29 lines
834 B
Ruby
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-20221208.tar.gz"
|
|
sha256 "c43c1febb33b8b8f59e479c3f66f10662ee52481cf36c47d95c0496fc95d526a"
|
|
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: "a5c460724fb4c1cc1199eae328a819a2b359f5e1b69d768daf7fd1393780ba0a"
|
|
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
|