mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Use pretty system function in existing Formulae
This commit is contained in:
parent
8d7117c167
commit
a2afb5a419
@ -6,6 +6,7 @@ url='http://ftp.digitalmars.com/dmd.1.043.zip'
|
|||||||
md5='6c83b7296cb84090a9ebc11ab0fb94a2'
|
md5='6c83b7296cb84090a9ebc11ab0fb94a2'
|
||||||
|
|
||||||
Formula.new(url, md5).brew do |prefix|
|
Formula.new(url, md5).brew do |prefix|
|
||||||
|
h1 "make"
|
||||||
prefix.mkpath
|
prefix.mkpath
|
||||||
FileUtils.cp_r 'osx/bin', prefix
|
FileUtils.cp_r 'osx/bin', prefix
|
||||||
FileUtils.cp_r 'osx/lib', prefix
|
FileUtils.cp_r 'osx/lib', prefix
|
||||||
|
@ -6,7 +6,7 @@ url='http://kernel.org/pub/software/scm/git/git-1.6.3.1.tar.bz2'
|
|||||||
md5='c1f4aab741359c29f0fbf28563ac7387'
|
md5='c1f4aab741359c29f0fbf28563ac7387'
|
||||||
|
|
||||||
Formula.new(url, md5).brew do |prefix|
|
Formula.new(url, md5).brew do |prefix|
|
||||||
`./configure --disable-debug --prefix="#{prefix}"`
|
system "./configure --disable-debug --prefix='#{prefix}'"
|
||||||
`make`
|
system "make"
|
||||||
`make install`
|
system "make install"
|
||||||
end
|
end
|
@ -38,6 +38,7 @@ url='http://korpus.juls.savba.sk/~garabik/software/grc/grc_1.1.tar.gz'
|
|||||||
md5='eeb612aba2fff14cbaf1f3bec7e1eb60'
|
md5='eeb612aba2fff14cbaf1f3bec7e1eb60'
|
||||||
|
|
||||||
Formula.new(url, md5).brew do |prefix|
|
Formula.new(url, md5).brew do |prefix|
|
||||||
|
h1 "make"
|
||||||
#TODO we should deprefixify since it's python and thus possible
|
#TODO we should deprefixify since it's python and thus possible
|
||||||
inreplace 'grc', '/etc', prefix+'/etc'
|
inreplace 'grc', '/etc', prefix+'/etc'
|
||||||
inreplace 'grc.1', '/etc', prefix+'/etc'
|
inreplace 'grc.1', '/etc', prefix+'/etc'
|
||||||
@ -57,14 +58,11 @@ Formula.new(url, md5).brew do |prefix|
|
|||||||
`cp -fv grc.conf #{prefix}/etc`
|
`cp -fv grc.conf #{prefix}/etc`
|
||||||
`cp -fv grc.1 grcat.1 #{prefix}/share/man/man1`
|
`cp -fv grc.1 grcat.1 #{prefix}/share/man/man1`
|
||||||
|
|
||||||
puts <<-sput
|
<<-nruter
|
||||||
We suggest you add this to your .profile in order to make grc work! :P
|
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:
|
||||||
#{profile_string.strip}
|
|
||||||
|
|
||||||
We can do this for you:
|
|
||||||
|
|
||||||
ruby #{$0} --profile >> ~/.profile
|
ruby #{$0} --profile >> ~/.profile
|
||||||
|
|
||||||
sput
|
nruter
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ url='http://kent.dl.sourceforge.net/sourceforge/mad/libmad-0.15.1b.tar.gz'
|
|||||||
md5='1be543bc30c56fb6bea1d7bf6a64e66c'
|
md5='1be543bc30c56fb6bea1d7bf6a64e66c'
|
||||||
|
|
||||||
Formula.new(url, md5).brew do |prefix|
|
Formula.new(url, md5).brew do |prefix|
|
||||||
`./configure --disable-debugging --enable-fpm=intel --prefix="#{prefix}"`
|
system "./configure --disable-debugging --enable-fpm=intel --prefix='#{prefix}'"
|
||||||
`make`
|
system "make"
|
||||||
`make install`
|
system "make install"
|
||||||
end
|
end
|
@ -6,7 +6,7 @@ url='http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2'
|
|||||||
md5='f5076a8c2ec2b7f334cb6e3059820f9c'
|
md5='f5076a8c2ec2b7f334cb6e3059820f9c'
|
||||||
|
|
||||||
Formula.new(url, md5).brew do |prefix|
|
Formula.new(url, md5).brew do |prefix|
|
||||||
`./configure --disable-debug --prefix="#{prefix}"`
|
system "./configure --disable-debug --prefix='#{prefix}'"
|
||||||
`make`
|
system "make"
|
||||||
`make install`
|
system "make install"
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user