Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 258223
Collapse All | Expand All

(-)ruby-gnome2.eclass (-4 / +4 lines)
Lines 32-38 Link Here
32
32
33
ruby-gnome2_src_unpack() {
33
ruby-gnome2_src_unpack() {
34
	if [ ! -x /bin/install -a -x /usr/bin/install ]; then
34
	if [ ! -x /bin/install -a -x /usr/bin/install ]; then
35
		cat <<END >${T}/mkmf.rb
35
		cat <<END >"${T}"/mkmf.rb
36
require 'mkmf'
36
require 'mkmf'
37
37
38
STDERR.puts 'patching mkmf'
38
STDERR.puts 'patching mkmf'
Lines 44-50 Link Here
44
	fi
44
	fi
45
45
46
	unpack ${A}
46
	unpack ${A}
47
	cd ${S}
47
	cd "${S}"
48
	# apply bulk patches
48
	# apply bulk patches
49
	if [[ ${#PATCHES[@]} -gt 1 ]]; then
49
	if [[ ${#PATCHES[@]} -gt 1 ]]; then
50
		for x in "${PATCHES[@]}"; do
50
		for x in "${PATCHES[@]}"; do
Lines 64-75 Link Here
64
64
65
ruby-gnome2_src_install() {
65
ruby-gnome2_src_install() {
66
	dodir $(ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
66
	dodir $(ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
67
	make DESTDIR=${D} install || die "make install failed"
67
	make DESTDIR="${D}" install || die "make install failed"
68
	for doc in ../AUTHORS ../NEWS ChangeLog README; do
68
	for doc in ../AUTHORS ../NEWS ChangeLog README; do
69
		[ -s "$doc" ] && dodoc $doc
69
		[ -s "$doc" ] && dodoc $doc
70
	done
70
	done
71
	if [[ -d sample ]]; then
71
	if [[ -d sample ]]; then
72
		dodir /usr/share/doc/${PF}
72
		dodir /usr/share/doc/${PF}
73
		cp -a sample ${D}/usr/share/doc/${PF} || die "cp failed"
73
		cp -a sample "${D}"/usr/share/doc/${PF} || die "cp failed"
74
	fi
74
	fi
75
}
75
}

Return to bug 258223