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

(-)ruby.eclass (+12 lines)
Lines 61-66 Link Here
61
61
62
ruby_src_unpack() {
62
ruby_src_unpack() {
63
63
64
	if [ -x /usr/bin/install ]; then
65
		cat <<END >${T}/mkmf.rb
66
require 'mkmf'
67
68
puts 'patching mkmf'
69
CONFIG['INSTALL'] = '/usr/bin/install'
70
END
71
		# save it because rubygems needs it (for unsetting RUBYOPT)
72
		export GENTOO_RUBYOPT="-r${T}/mkmf.rb"
73
		export RUBYOPT="${RUBYOPT} ${GENTOO_RUBYOPT}"
74
	fi
75
64
	unpack ${A}
76
	unpack ${A}
65
	cd ${S}
77
	cd ${S}
66
	# apply bulk patches
78
	# apply bulk patches
(-)ruby-gnome2.eclass (-1 / +27 lines)
Lines 8-14 Link Here
8
# ruby-module.eclass, but at the moment it contains some things
8
# ruby-module.eclass, but at the moment it contains some things
9
# specific to ruby-gnome2
9
# specific to ruby-gnome2
10
10
11
EXPORT_FUNCTIONS src_compile src_install
11
# Variables:
12
# PATCHES	Space delimited list of patch files.
13
14
EXPORT_FUNCTIONS src_compile src_install src_unpack
12
15
13
IUSE=""
16
IUSE=""
14
17
Lines 27-32 Link Here
27
DEPEND="virtual/ruby"
30
DEPEND="virtual/ruby"
28
RDEPEND="virtual/ruby"
31
RDEPEND="virtual/ruby"
29
32
33
ruby-gnome2_src_unpack() {
34
	if [ -x /usr/bin/install ]; then
35
		cat <<END >${T}/mkmf.rb
36
require 'mkmf'
37
38
puts 'patching mkmf'
39
CONFIG['INSTALL'] = '/usr/bin/install'
40
END
41
		# save it because rubygems needs it (for unsetting RUBYOPT)
42
		export GENTOO_RUBYOPT="-r${T}/mkmf.rb"
43
		export RUBYOPT="${RUBYOPT} ${GENTOO_RUBYOPT}"
44
	fi
45
46
	unpack ${A}
47
	cd ${S}
48
	# apply bulk patches
49
	if [[ -n "${PATCHES}" ]] ; then
50
		for p in ${PATCHES} ; do
51
			epatch $p
52
		done
53
	fi
54
}
55
30
ruby-gnome2_src_compile() {
56
ruby-gnome2_src_compile() {
31
	ruby extconf.rb || die "extconf.rb failed"
57
	ruby extconf.rb || die "extconf.rb failed"
32
	emake CC=${CC:-gcc} CXX=${CXX:-g++} || die "emake failed"
58
	emake CC=${CC:-gcc} CXX=${CXX:-g++} || die "emake failed"

Return to bug 159922