-
Notifications
You must be signed in to change notification settings - Fork 3
/
shiny-and-gnu.rb
61 lines (52 loc) · 1.7 KB
/
shiny-and-gnu.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require "formula"
class ShinyAndGnu < Formula
desc %{
Metapackage that installs various GNU toolkits that are missing from Mac OSX
or have same-named equivalents from BSD that don't work the same.
}
homepage "https://github.com/al-the-x/homebrew-mine"
head homepage + '.git'
# GNU utils make MacOSX feel less like BSD...
depends_on 'coreutils'
depends_on 'diffutils'
depends_on 'findutils' => 'default-names'
depends_on 'gawk'
depends_on 'gnu-indent' => 'default-names'
depends_on 'gnu-sed' => 'default-names'
depends_on 'gnu-tar' => 'default-names'
depends_on 'gnu-which' => 'default-names'
depends_on 'grep' => 'default-names'
depends_on 'gzip'
depends_on 'watch'
depends_on 'wdiff' => 'with-gettext'
depends_on 'wget'
# Thanks for the antiques, MacOSX...
depends_on 'bash'
depends_on 'gpatch'
depends_on 'git'
depends_on 'less'
depends_on 'openssh'
depends_on 'python'
depends_on 'rsync'
depends_on 'vim' => 'override-system-vi'
depends_on 'zsh'
# It's complicated...
option 'with-gdb', 'If you want to replace `gdb`, see `brew info gdb`'
depends_on 'gdb' if build.with? 'gdb'
# May cause linking errors. Use with caution!
option 'with-m4', 'Known to cause problems, see `brew info m4`'
depends_on 'm4' if build.with? 'm4'
option 'with-make', 'Known to cause problems, see `brew info make`'
depends_on 'make' if build.with? 'make'
option 'with-unzip', 'Known to cause problems, see `brew info unzip`'
depends_on 'unzip'
def install
touch 'installed'
File.write('installed', desc)
prefix.install 'installed'
ohai 'Enjoy your GNU environment!'
end
test do ## TODO!
opoo 'Maybe one day this will do something...'
end
end