class Wtf < Formula desc "Translate common Internet acronyms" homepage "http://cvsweb.netbsd.org/bsdweb.cgi/src/games/wtf/" url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20171222.tar.gz" sha256 "f62e78e70f46ad00fb004e637c0b00544f34eefc974fa0af15d851e104e6fb84" 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