-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
brew-file.rb
28 lines (24 loc) · 859 Bytes
/
brew-file.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 BrewFile < Formula
desc "Brewfile manager for Homebrew."
homepage "https://github.com/rcmdnk/homebrew-file/"
url "https://github.com/rcmdnk/homebrew-file/archive/v9.0.19.tar.gz"
sha256 "2294c015248f5c1dfe850e731e109811bc0e5ca485c79c72f95425949f532dce"
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