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

(-)a/sys-devel/distcc/distcc-3.3.3.ebuild (-11 / +22 lines)
Lines 15-25 SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" Link Here
15
LICENSE="GPL-2+"
15
LICENSE="GPL-2+"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86"
17
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86"
18
IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf"
18
IUSE="gnome gssapi gtk hardened ipv6 pump selinux xinetd zeroconf"
19
19
20
RESTRICT="test"
20
RESTRICT="test"
21
21
22
CDEPEND="${PYTHON_DEPS}
22
CDEPEND="
23
	dev-libs/popt
23
	dev-libs/popt
24
	gnome? (
24
	gnome? (
25
		>=gnome-base/libgnome-2
25
		>=gnome-base/libgnome-2
Lines 29-34 CDEPEND="${PYTHON_DEPS} Link Here
29
	)
29
	)
30
	gssapi? ( net-libs/libgssglue )
30
	gssapi? ( net-libs/libgssglue )
31
	gtk? ( x11-libs/gtk+:2 )
31
	gtk? ( x11-libs/gtk+:2 )
32
	pump? ( ${PYTHON_DEPS} )
32
	zeroconf? ( >=net-dns/avahi-0.6[dbus] )
33
	zeroconf? ( >=net-dns/avahi-0.6[dbus] )
33
"
34
"
34
DEPEND="${CDEPEND}
35
DEPEND="${CDEPEND}
Lines 42-48 RDEPEND="${CDEPEND} Link Here
42
	selinux? ( sec-policy/selinux-distcc )
43
	selinux? ( sec-policy/selinux-distcc )
43
	xinetd? ( sys-apps/xinetd )"
44
	xinetd? ( sys-apps/xinetd )"
44
45
45
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
46
REQUIRED_USE="pump? ( ${PYTHON_REQUIRED_USE} )"
46
47
47
pkg_setup() {
48
pkg_setup() {
48
	enewuser distcc 240 -1 -1 daemon
49
	enewuser distcc 240 -1 -1 daemon
Lines 60-69 src_prepare() { Link Here
60
	# Bugs #120001, #167844 and probably more. See patch for description.
61
	# Bugs #120001, #167844 and probably more. See patch for description.
61
	use hardened && eapply "${FILESDIR}/distcc-hardened.patch"
62
	use hardened && eapply "${FILESDIR}/distcc-hardened.patch"
62
63
63
	sed -i \
64
	if use pump; then
64
		-e "/PATH/s:\$distcc_location:${EPREFIX}/usr/lib/distcc/bin:" \
65
		sed -i \
65
		-e "s:@PYTHON@:${EPYTHON}:" \
66
			-e "/PATH/s:\$distcc_location:${EPREFIX}/usr/lib/distcc/bin:" \
66
		pump.in || die "sed failed"
67
			-e "s:@PYTHON@:${EPYTHON}:" \
68
			pump.in || die "sed failed"
69
	else
70
		sed -i \
71
			-e '/^install:/,/^$/ s/install-include-server\s//' \
72
			Makefile.in || die "sed failed"
73
	fi
67
74
68
	sed \
75
	sed \
69
		-e "s:@EPREFIX@:${EPREFIX:-/}:" \
76
		-e "s:@EPREFIX@:${EPREFIX:-/}:" \
Lines 80-85 src_configure() { Link Here
80
		--disable-Werror
87
		--disable-Werror
81
		--libdir=/usr/lib
88
		--libdir=/usr/lib
82
		$(use_enable ipv6 rfc2553)
89
		$(use_enable ipv6 rfc2553)
90
		$(use_enable pump pump-mode)
83
		$(use_with gtk)
91
		$(use_with gtk)
84
		$(use_with gnome)
92
		$(use_with gnome)
85
		$(use_with gssapi auth)
93
		$(use_with gssapi auth)
Lines 165-173 pkg_postinst() { Link Here
165
	elog
173
	elog
166
	elog "Tips on using distcc with Gentoo can be found at"
174
	elog "Tips on using distcc with Gentoo can be found at"
167
	elog "https://wiki.gentoo.org/wiki/Distcc"
175
	elog "https://wiki.gentoo.org/wiki/Distcc"
168
	elog
176
169
	elog "distcc-pump is known to cause breakage with multiple packages."
177
	if use pump; then
170
	elog "Do NOT enable it globally."
178
		elog
179
		elog "distcc-pump is known to cause breakage with multiple packages."
180
		elog "Do NOT enable it globally."
181
	fi
182
171
	elog
183
	elog
172
	elog "To use the distccmon programs with Gentoo you should use this command:"
184
	elog "To use the distccmon programs with Gentoo you should use this command:"
173
	elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5"
185
	elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5"
174
-

Return to bug 702646