27 lines
685 B
Ruby
27 lines
685 B
Ruby
class Wtf < Formula
|
|
desc "Translate common Internet acronyms"
|
|
homepage "https://sourceforge.net/projects/bsdwtf/"
|
|
url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20210212.tar.gz"
|
|
sha256 "684bf77efcebf9c707c614abbe2551d1272f8781722cea35ad23056e2e8692ca"
|
|
license :public_domain
|
|
|
|
livecheck do
|
|
url :stable
|
|
regex(%r{url=.*?/wtf[._-]v?(\d{6,8})\.t}i)
|
|
end
|
|
|
|
bottle :unneeded
|
|
|
|
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
|