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

Return to bug 84942