blob: dba852e4203d518be9bc6d7753bc95295b672962 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
module Gem
class << self
def portage_gems_dir
ConfigMap[:sitelibdir].gsub('site_ruby', 'gems')
end
undef :default_dir
def default_dir
portage_gems_dir.gsub('@GENTOO_PORTAGE_EPREFIX@/usr', '@GENTOO_PORTAGE_EPREFIX@/usr/local')
end
undef :default_path
def default_path
[user_dir, default_dir, portage_gems_dir]
end
undef :default_bindir
def default_bindir
"@GENTOO_PORTAGE_EPREFIX@/usr/local/bin"
end
undef :ruby_engine
def ruby_engine
if RUBY_DESCRIPTION =~ /Ruby Enterprise Edition/
"rubyee"
else
# Ruby 1.8 and Ruby 1.9.2_rc2 and later install here, and JRuby
# rewrites that anyway.
"ruby"
end
end
def system_config_path
"@GENTOO_PORTAGE_EPREFIX@/etc"
end
end
end
|