29 lines
797 B
Ruby
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-20211110.tar.gz"
|
|
sha256 "984c054bd0497247775623eaa709e1545e7696e7a13c6b47abd115a55c548918"
|
|
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: "15ad0cd503e8215e69330b4aec0abd425cea97868124bc62738cd9aa6c23d0df"
|
|
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
|