homebrew-core/Formula/wtf.rb

29 lines
797 B
Ruby

class Wtf < Formula
desc "Translate common Internet acronyms"
homepage "https://sourceforge.net/projects/bsdwtf/"
url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20210916.tar.gz"
sha256 "e79abe5b0168d6d76148b338e517fcc77821716a6192182bb38d83469afe0187"
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: "d6367e13363b8213ddda77bcbaacb4652d798e5be8833ae5889d7f71c9e07111"
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
system bin/"wtf", "needle"
end
end