/
wtf.rb
28 lines (24 loc) 路 834 Bytes
/
wtf.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Wtf < Formula
desc "Translate common Internet acronyms"
homepage "https://sourceforge.net/projects/bsdwtf/"
url "https://downloads.sourceforge.net/project/bsdwtf/wtf-20230906.tar.gz"
sha256 "ed9c1fa927fcd878cce955fb0bdc586876ee1ae234666be75c3bbd6e5b2a094b"
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: "5965342aea2df9cb60fc2ee9c42bb57bbf8c3f2117e4beac9c1f69c8a6cf627e"
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