homebrew-core/Formula/wtf.rb
2019-12-02 05:42:46 +00:00

20 lines
575 B
Ruby

class Wtf < Formula
desc "Translate common Internet acronyms"
homepage "https://sourceforge.net/projects/bsdwtf/"
url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20191201.tar.gz"
sha256 "40ae26e8fc75f7b7dea211d2ca1afc97bfa4730154453eeb9cb67b88ef418e36"
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