Replace literal paths to ruby with RUBY_PATH
This commit is contained in:
parent
fb175de87d
commit
6057aa074a
2 changed files with 3 additions and 4 deletions
|
@ -39,7 +39,7 @@ class Macvim < Formula
|
|||
--enable-pythoninterp
|
||||
--enable-rubyinterp
|
||||
--enable-tclinterp
|
||||
--with-ruby-command=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
|
||||
--with-ruby-command=#{RUBY_PATH}
|
||||
]
|
||||
|
||||
args << "--enable-cscope" if build.include? "with-cscope"
|
||||
|
|
|
@ -23,9 +23,8 @@ class Rrdtool < Formula
|
|||
|
||||
which_perl = which 'perl'
|
||||
which_ruby = which 'ruby'
|
||||
ruby_path = "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
|
||||
|
||||
opoo "Using system Ruby. RRD module will be installed to /Library/Ruby/..." if which_ruby.realpath.to_s == ruby_path
|
||||
opoo "Using system Ruby. RRD module will be installed to /Library/Ruby/..." if which_ruby.realpath.to_s == RUBY_PATH
|
||||
opoo "Using system Perl. RRD module will be installed to /Library/Perl/..." if which_perl.to_s == "/usr/bin/perl"
|
||||
|
||||
args = %W[
|
||||
|
@ -33,7 +32,7 @@ class Rrdtool < Formula
|
|||
--prefix=#{prefix}
|
||||
]
|
||||
args << "--enable-perl-site-install" if which_perl.to_s == "/usr/bin/perl"
|
||||
args << "--enable-ruby-site-install" if which_ruby.realpath.to_s == ruby_path
|
||||
args << "--enable-ruby-site-install" if which_ruby.realpath.to_s == RUBY_PATH
|
||||
|
||||
system "./configure", *args
|
||||
|
||||
|
|
Loading…
Reference in a new issue