Diff distcc-3.4-r6 with a distcc-3.4-r9

/usr/portage/sys-devel/distcc/distcc-3.4-r9.ebuild 2025-11-18 18:18:07.561421347 +0300
5 5

  
6 6
PYTHON_COMPAT=( python3_{10..13} )
7 7

  
8
inherit autotools flag-o-matic prefix python-single-r1 systemd
8
inherit autotools flag-o-matic prefix python-single-r1 systemd xdg
9 9

  
10 10
DESCRIPTION="Distribute compilation of C code across several machines on a network"
11 11
HOMEPAGE="https://github.com/distcc/distcc"
......
13 13

  
14 14
LICENSE="GPL-2+"
15 15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
17
IUSE="gssapi gtk hardened ipv6 selinux xinetd zeroconf"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
17
IUSE="gssapi gui hardened ipv6 selinux xinetd zeroconf"
18 18
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19 19

  
20 20
RDEPEND="
21 21
	${PYTHON_DEPS}
22 22
	dev-libs/popt
23 23
	gssapi? ( net-libs/libgssglue )
24
	gtk? ( x11-libs/gtk+:3 )
24
	gui? ( x11-libs/gtk+:3 )
25 25
	zeroconf? ( >=net-dns/avahi-0.6[dbus] )
26 26
"
27 27
DEPEND="
......
75 75
		--disable-Werror
76 76
		--libdir="${EPREFIX}"/usr/lib
77 77
		$(use_enable ipv6 rfc2553)
78
		$(use_with gtk)
78
		$(use_with gui gtk)
79 79
		--without-gnome
80 80
		$(use_with gssapi auth)
81 81
		$(use_with zeroconf avahi)
......
138 138

  
139 139
	dobin "${T}/distcc-config"
140 140

  
141
	if use gtk; then
142
		einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui"
143
		einfo "This is to have a little sensability in naming schemes between distccmon programs"
144
		mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die
145
		dosym distccmon-gui /usr/bin/distccmon-gnome
146
	fi
147

  
148 141
	if use xinetd; then
149 142
		insinto /etc/xinetd.d
150 143
		newins "doc/example/xinetd" distcc
......
159 152
}
160 153

  
161 154
pkg_preinst() {
155
	if use gui; then
156
		xdg_pkg_preinst
157
	fi
162 158
	# Compatibility symlink for Portage
163 159
	dosym . /usr/lib/distcc/bin
164 160
	if [[ -e ${EROOT}/usr/lib/distcc/bin && ! -L ${EROOT}/usr/lib/distcc/bin ]]; then
......
186 182
	elog "To use the distccmon programs with Gentoo you should use this command:"
187 183
	elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5"
188 184

  
189
	if use gtk; then
185
	if use gui; then
190 186
		elog "Or:"
191 187
		elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-gnome"
188
		elog
189
		xdg_pkg_postinst
192 190
	fi
193 191
}
194 192

  
Thank you!