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

Collapse All | Expand All

(-)distcc-3.0-r4.ebuild.orig (-2 / +16 lines)
Lines 11-17 Link Here
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
13
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
14
IUSE="avahi gnome gtk hardened ipv6 selinux xinetd"
14
IUSE="avahi gnome gtk hardened ipv6 selinux xinetd cross-compile"
15
15
16
RESTRICT="test"
16
RESTRICT="test"
17
17
Lines 105-112 Link Here
105
105
106
	# create the masquerade directory
106
	# create the masquerade directory
107
	dodir "${DCCC_PATH}"
107
	dodir "${DCCC_PATH}"
108
		if use cross-compile; then
109
		exeinto "${DCCC_PATH}"
110
		cat > "${T}/${CTARGET:-${CHOST}}-wrapper" <<-EOF
111
		#!/bin/bash
112
		exec ${DCCC_PATH}/${CTARGET:-${CHOST}}-g\${0:\$[-2]} "\$@"
113
		EOF
114
		doexe "${T}/${CTARGET:-${CHOST}}-wrapper"
115
	fi
116
108
	for f in cc c++ gcc g++; do
117
	for f in cc c++ gcc g++; do
109
		dosym /usr/bin/distcc "${DCCC_PATH}/${f}"
118
  		if use cross-compile; then
119
				dosym "${DCCC_PATH}/${CTARGET:-${CHOST}}-wrapper" "${DCCC_PATH}/${f}"
120
			else
121
				dosym /usr/bin/distcc "${DCCC_PATH}/${f}"
122
		fi
123
110
		if [ "${f}" != "cc" ]; then
124
		if [ "${f}" != "cc" ]; then
111
			dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}"
125
			dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}"
112
		fi
126
		fi

Return to bug 84942