-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathbrew-file.rb
More file actions
28 lines (24 loc) · 859 Bytes
/
Copy pathbrew-file.rb
File metadata and controls
28 lines (24 loc) · 859 Bytes
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 BrewFile < Formula
desc "Brewfile manager for Homebrew."
homepage "https://github.com/rcmdnk/homebrew-file/"
url "https://github.com/rcmdnk/homebrew-file/archive/v10.2.2.tar.gz"
sha256 "2669b27f3ec7a36ce84ac69aea5e248f2110f680027a402165d43c7f7a75d33a"
license "MIT"
head "https://github.com/rcmdnk/homebrew-file.git"
option "without-completions", "Disable bash/zsh completions"
def install
bin.install "bin/brew-file"
rm_f etc/"brew-wrap.default"
rm_f etc/"brew-wrap"
rm_f etc/"brew-wrap.fish"
(prefix/"etc").install "etc/brew-wrap"
(prefix/"etc").install "etc/brew-wrap.fish"
if build.with? "completions"
bash_completion.install "etc/bash_completion.d/brew-file"
zsh_completion.install "share/zsh/site-functions/_brew-file"
end
end
test do
system "brew", "file", "help"
end
end