Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 159922 | Differences between
and this patch

Collapse All | Expand All

(-)rubygems-0.8.11-r5.ebuild (-1 / +1 lines)
Lines 26-32 Link Here
26
26
27
src_install() {
27
src_install() {
28
	# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
28
	# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
29
	unset RUBYOPT
29
	export RUBYOPT="${GENTOO_RUBYOPT}"
30
	ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
30
	ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
31
	GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install
31
	GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install
32
	cp ${FILESDIR}/auto_gem.rb ${D}/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
32
	cp ${FILESDIR}/auto_gem.rb ${D}/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
(-)rubygems-0.9.0-r2.ebuild (-1 / +1 lines)
Lines 28-34 Link Here
28
28
29
src_install() {
29
src_install() {
30
	# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
30
	# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
31
	unset RUBYOPT
31
	export RUBYOPT="${GENTOO_RUBYOPT}"
32
	ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
32
	ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
33
	GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install
33
	GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install
34
	cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
34
	cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
(-)rubygems-0.9.1.ebuild (-1 / +1 lines)
Lines 33-39 Link Here
33
33
34
src_install() {
34
src_install() {
35
	# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
35
	# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
36
	unset RUBYOPT
36
	export RUBYOPT="${GENTOO_RUBYOPT}"
37
	ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
37
	ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
38
	GEM_HOME=${D}usr/lib/ruby/gems/$ver ruby_src_install
38
	GEM_HOME=${D}usr/lib/ruby/gems/$ver ruby_src_install
39
	cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
39
	cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')

Return to bug 159922