Skip to content

Commit

Permalink
Use pretty system function in existing Formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed May 21, 2009
1 parent 8d7117c commit a2afb5a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
1 change: 1 addition & 0 deletions Formula/dmd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
md5='6c83b7296cb84090a9ebc11ab0fb94a2'

Formula.new(url, md5).brew do |prefix|
h1 "make"
prefix.mkpath
FileUtils.cp_r 'osx/bin', prefix
FileUtils.cp_r 'osx/lib', prefix
Expand Down
6 changes: 3 additions & 3 deletions Formula/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
md5='c1f4aab741359c29f0fbf28563ac7387'

Formula.new(url, md5).brew do |prefix|
`./configure --disable-debug --prefix="#{prefix}"`
`make`
`make install`
system "./configure --disable-debug --prefix='#{prefix}'"
system "make"
system "make install"
end
12 changes: 5 additions & 7 deletions Formula/grc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def profile_string
md5='eeb612aba2fff14cbaf1f3bec7e1eb60'

Formula.new(url, md5).brew do |prefix|
h1 "make"
#TODO we should deprefixify since it's python and thus possible
inreplace 'grc', '/etc', prefix+'/etc'
inreplace 'grc.1', '/etc', prefix+'/etc'
Expand All @@ -57,14 +58,11 @@ def profile_string
`cp -fv grc.conf #{prefix}/etc`
`cp -fv grc.1 grcat.1 #{prefix}/share/man/man1`

puts <<-sput
We suggest you add this to your .profile in order to make grc work! :P
#{profile_string.strip}
We can do this for you:
<<-nruter
grc won't work as is. One option is to add some aliases to your ~/.profile
file. Homebrew can do that for you, just execute this command:
ruby #{$0} --profile >> ~/.profile
sput
nruter
end
6 changes: 3 additions & 3 deletions Formula/mad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
md5='1be543bc30c56fb6bea1d7bf6a64e66c'

Formula.new(url, md5).brew do |prefix|
`./configure --disable-debugging --enable-fpm=intel --prefix="#{prefix}"`
`make`
`make install`
system "./configure --disable-debugging --enable-fpm=intel --prefix='#{prefix}'"
system "make"
system "make install"
end
6 changes: 3 additions & 3 deletions Formula/wget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
md5='f5076a8c2ec2b7f334cb6e3059820f9c'

Formula.new(url, md5).brew do |prefix|
`./configure --disable-debug --prefix="#{prefix}"`
`make`
`make install`
system "./configure --disable-debug --prefix='#{prefix}'"
system "make"
system "make install"
end

0 comments on commit a2afb5a

Please sign in to comment.