termux-packages/packages/ruby/tool-rbinstall.rb.patch

21 lines
747 B
Diff
Raw Normal View History

--- /home/vagrant/ruby-2.5.0/tool/rbinstall.rb 2017-10-30 05:45:20.000000000 +0000
+++ src/tool/rbinstall.rb 2018-02-14 18:53:42.498522407 +0000
@@ -731,7 +731,7 @@
end
def install_default_gem(dir, srcdir)
2017-01-20 15:26:08 +01:00
- gem_dir = Gem.default_dir
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/2.5.0"
2017-01-20 15:26:08 +01:00
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
prepare "default gems from #{dir}", gem_dir, directories
@@ -765,7 +765,7 @@
2017-01-20 15:26:08 +01:00
end
install?(:ext, :comm, :gem, :'bundled-gems') do
2017-01-20 15:26:08 +01:00
- gem_dir = Gem.default_dir
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/2.5.0"
2017-01-20 15:26:08 +01:00
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
prepare "bundled gems", gem_dir, directories
2017-01-20 15:26:08 +01:00
install_dir = with_destdir(gem_dir)