20 lines
575 B
Ruby
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-20191006.tar.gz"
|
|
sha256 "0ba0bdcd6569ce444e9280a2e680b3c0cba461bbb6eeeb5f6f4ee31acc95e43c"
|
|
|
|
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
|