mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Install dmd phobos src
The sources are required for development in D
This commit is contained in:
parent
d5241043f3
commit
044b732cd4
@ -10,7 +10,7 @@ Formula.new(url, md5).brew do |prefix|
|
|||||||
FileUtils.cp_r 'osx/bin', prefix
|
FileUtils.cp_r 'osx/bin', prefix
|
||||||
FileUtils.cp_r 'osx/lib', prefix
|
FileUtils.cp_r 'osx/lib', prefix
|
||||||
FileUtils.cp_r 'man', prefix
|
FileUtils.cp_r 'man', prefix
|
||||||
FileUtils.cp_r 'man', prefix
|
FileUtils.cp_r 'src', prefix
|
||||||
|
|
||||||
share=prefix+'share'+'doc'+'d'
|
share=prefix+'share'+'doc'+'d'
|
||||||
html=share+'html'
|
html=share+'html'
|
||||||
|
@ -4,6 +4,7 @@ require 'fileutils'
|
|||||||
|
|
||||||
def profile_string
|
def profile_string
|
||||||
<<-sput
|
<<-sput
|
||||||
|
################################################################## >> Homebrew
|
||||||
GRC=`which grc`
|
GRC=`which grc`
|
||||||
if [ "$TERM" != dumb ] && [ -n GRC ]
|
if [ "$TERM" != dumb ] && [ -n GRC ]
|
||||||
then
|
then
|
||||||
@ -20,16 +21,14 @@ then
|
|||||||
alias ping='colourify ping'
|
alias ping='colourify ping'
|
||||||
alias traceroute='colourify /usr/sbin/traceroute'
|
alias traceroute='colourify /usr/sbin/traceroute'
|
||||||
fi
|
fi
|
||||||
|
################################################################## << Homebrew
|
||||||
sput
|
sput
|
||||||
end
|
end
|
||||||
|
|
||||||
######################################################################### ARGV
|
######################################################################### ARGV
|
||||||
case ARGV[0]
|
case ARGV[0]
|
||||||
when '--profile' then
|
when '--profile' then
|
||||||
puts
|
|
||||||
puts '################################################################## >> yumports'
|
|
||||||
puts profile_string
|
puts profile_string
|
||||||
puts '################################################################## << yumports'
|
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -61,11 +60,11 @@ Formula.new(url, md5).brew do |prefix|
|
|||||||
puts <<-sput
|
puts <<-sput
|
||||||
We suggest you add this to your .profile in order to make grc work! :P
|
We suggest you add this to your .profile in order to make grc work! :P
|
||||||
|
|
||||||
#{profile_string}
|
#{profile_string.strip}
|
||||||
|
|
||||||
We can do this for you:
|
We can do this for you:
|
||||||
|
|
||||||
#{$0} --profile >> ~/.profile
|
ruby #{$0} --profile >> ~/.profile
|
||||||
|
|
||||||
sput
|
sput
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user