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

21 lines
617 B
Diff
Raw Normal View History

2021-12-28 14:53:44 +01:00
--- ruby-3.1.0/tool/rbinstall.rb
+++ ruby-3.1.0.mod/tool/rbinstall.rb
@@ -956,7 +956,7 @@
end
2021-12-28 14:53:44 +01:00
def install_default_gem(dir, srcdir, bindir)
2017-01-20 15:26:08 +01:00
- gem_dir = Gem.default_dir
2021-12-28 14:53:44 +01:00
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/3.1.0"
2021-02-09 15:49:36 +01:00
install_dir = with_destdir(gem_dir)
prepare "default gems from #{dir}", gem_dir
2021-12-28 14:53:44 +01:00
RbInstall.no_write do
@@ -1018,7 +1018,7 @@
end
Gem.instance_variable_set(:@ruby, ruby_path) if Gem.ruby != ruby_path
2017-01-20 15:26:08 +01:00
- gem_dir = Gem.default_dir
2021-12-28 14:53:44 +01:00
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/3.1.0"
2017-01-20 15:26:08 +01:00
install_dir = with_destdir(gem_dir)
2021-02-09 15:49:36 +01:00
prepare "bundled gems", gem_dir
2021-12-28 14:53:44 +01:00
RbInstall.no_write do