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

(-)/usr/portage/sys-devel/distcc/distcc-3.1.ebuild (-2 / +14 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 95-102 Link Here
95
95
96
	# create the masquerade directory
96
	# create the masquerade directory
97
	dodir "${DCCC_PATH}"
97
	dodir "${DCCC_PATH}"
98
	if use cross-compile; then
99
		exeinto "${DCCC_PATH}"
100
		cat > "${T}/${CTARGET:-${CHOST}}-wrapper" <<-EOF
101
		#!/bin/bash
102
		exec ${DCCC_PATH}/${CTARGET:-${CHOST}}-g\${0:\$[-2]} "\$@"
103
		EOF
104
		doexe "${T}/${CTARGET:-${CHOST}}-wrapper"
105
	fi
98
	for f in cc c++ gcc g++; do
106
	for f in cc c++ gcc g++; do
99
		dosym /usr/bin/distcc "${DCCC_PATH}/${f}"
107
		if use cross-compile; then
108
			dosym "${DCCC_PATH}/${CTARGET:-${CHOST}}-wrapper" "${DCCC_PATH}/${f}"
109
		else
110
			dosym /usr/bin/distcc "${DCCC_PATH}/${f}"
111
		fi
100
		if [ "${f}" != "cc" ]; then
112
		if [ "${f}" != "cc" ]; then
101
			dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}"
113
			dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}"
102
		fi
114
		fi

Return to bug 84942