ruby: replace bundled RubyGems with our RubyGems
This should prevent problems caused by trying to install our own RubyGems over the top of the one that comes with Ruby.
This commit is contained in:
parent
5b0851028f
commit
01c4c15ef5
1 changed files with 3 additions and 7 deletions
|
@ -93,7 +93,9 @@ let
|
|||
}).${ver.majMinTiny};
|
||||
|
||||
postUnpack = opString rubygemsSupport ''
|
||||
cp -r ${rubygems} $sourceRoot/rubygems
|
||||
rm -rf $sourceRoot/{lib,test}/rubygems*
|
||||
cp -r ${rubygems}/lib/rubygems* $sourceRoot/lib
|
||||
cp -r ${rubygems}/test/rubygems $sourceRoot/test
|
||||
'';
|
||||
|
||||
postPatch = if atLeast25 then ''
|
||||
|
@ -158,12 +160,6 @@ let
|
|||
EOF
|
||||
|
||||
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||
'' + opString rubygemsSupport ''
|
||||
# Update rubygems
|
||||
pushd rubygems
|
||||
chmod +w bundler/bundler.gemspec
|
||||
${buildRuby} setup.rb
|
||||
popd
|
||||
'' + opString docSupport ''
|
||||
# Prevent the docs from being included in the closure
|
||||
sed -i "s|\$(DESTDIR)$devdoc|\$(datarootdir)/\$(RI_BASE_NAME)|" $rbConfig
|
||||
|
|
Loading…
Reference in a new issue