1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 202_gem_default_dir.dpatch by akira yamada <akira@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Adjust the default RubyGems directory.
8
Index: b/lib/rubygems/defaults.rb
9
===================================================================
10
--- a/lib/rubygems/defaults.rb 2010-07-20 21:45:46.000000000 +0900
11
+++ b/lib/rubygems/defaults.rb 2010-07-20 21:46:13.000000000 +0900
14
# Default home directory path to be used if an alternate value is not
15
# specified in the environment
18
+ # Debian patch: search order of this directory.
19
+ # 1. GEM_HOME enviroment variable
20
+ # (Using this, Gems are to be installed in any path as you like)
21
+ # 2. /var/lib/gems/{ruby version} (This is the default path in Debian system)
23
if defined? RUBY_FRAMEWORK_VERSION then
24
File.join File.dirname(ConfigMap[:sitedir]), 'Gems',
25
ConfigMap[:ruby_version]
27
- ConfigMap[:sitelibdir].sub(%r'/site_ruby/(?=[^/]+)', '/gems/')
28
+ File.join('/var/lib', 'gems', ConfigMap[:ruby_version])