mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
* lib/rubygems: Update to RubyGems 2.0.6. [ruby-core:56160]
[Backport #8682] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7567977adc
commit
589da706be
14 changed files with 148 additions and 17 deletions
|
@ -23,11 +23,13 @@ class Gem::Ext::Builder
|
|||
make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
|
||||
end
|
||||
|
||||
destdir = '"DESTDIR=%s"' % ENV['DESTDIR'] if RUBY_VERSION > '2.0'
|
||||
|
||||
['', 'install'].each do |target|
|
||||
# Pass DESTDIR via command line to override what's in MAKEFLAGS
|
||||
cmd = [
|
||||
make_program,
|
||||
'"DESTDIR=%s"' % ENV['DESTDIR'],
|
||||
destdir,
|
||||
target
|
||||
].join(' ').rstrip
|
||||
run(cmd, results, "make #{target}".rstrip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue