29 lines
834 B
Ruby
29 lines
834 B
Ruby
class Wtf < Formula
|
|
desc "Translate common Internet acronyms"
|
|
homepage "https://sourceforge.net/projects/bsdwtf/"
|
|
url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20220909.tar.gz"
|
|
sha256 "6556d5ce89997507d6c93532830eae24b97265e2e0b3dd2e95eb27ac3aa5a973"
|
|
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: "0ba8e94ef3417f4aa0c4d7d659f322bab5fbdc3478d6bae5c2809a81c7507fa3"
|
|
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
|
|
assert_match "where's the food", shell_output("#{bin}/wtf wtf")
|
|
end
|
|
end
|