Diff nut-2.7.4-r4 with a nut-2.7.4-r5

/usr/portage/sys-power/nut/nut-2.7.4-r5.ebuild 2020-02-19 21:39:00.000000000 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
PYTHON_COMPAT=( python2_7 )
7
inherit autotools bash-completion-r1 desktop fixheadtails flag-o-matic python-single-r1 systemd toolchain-funcs user
6
inherit autotools bash-completion-r1 desktop fixheadtails flag-o-matic systemd toolchain-funcs user
8 7

  
9 8
MY_P=${P/_/-}
10 9

  
......
13 12
SRC_URI="https://networkupstools.org/source/${PV%.*}/${MY_P}.tar.gz"
14 13
LICENSE="GPL-2"
15 14
SLOT="0"
16
KEYWORDS="amd64 arm ppc ppc64 x86"
15
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
17 16

  
18
IUSE="cgi gui ipmi snmp +usb selinux split-usr ssl tcpd xml zeroconf"
19
REQUIRED_USE="gui? ( ${PYTHON_REQUIRED_USE} )"
17
IUSE="cgi ipmi snmp +usb selinux split-usr ssl tcpd xml zeroconf"
20 18

  
21 19
DEPEND="
22 20
	dev-libs/libltdl:*
23 21
	net-libs/libnsl
24 22
	virtual/udev
25 23
	cgi? ( >=media-libs/gd-2[png] )
26
	gui? ( ${PYTHON_DEPS}
27
		$(python_gen_cond_dep '
28
			dev-python/pygtk[${PYTHON_MULTI_USEDEP}]
29
		')
30
	)
31 24
	ipmi? ( sys-libs/freeipmi )
32 25
	snmp? ( net-analyzer/net-snmp )
33 26
	ssl? ( >=dev-libs/openssl-1:= )
......
97 90
	# in some cases on old systems it wasn't in the nut group either!
98 91
	gpasswd -a nut nut 2>/dev/null
99 92
	warningmsg ewarn
100
	use gui && python-single-r1_pkg_setup
101 93
}
102 94

  
103 95
src_prepare() {
......
115 107
	sed -e 's:@LIBSSL_LDFLAGS@:@LIBSSL_LIBS@:' \
116 108
		-i lib/libupsclient{.pc,-config}.in || die #361685
117 109

  
118
	use gui && eapply "${FILESDIR}"/NUT-Monitor-1.3-paths.patch
119

  
120 110
	eautoreconf
121 111
}
122 112

  
......
180 170
		elog "If you use lighttpd, see lighttpd_nut.conf in the documentation."
181 171
	fi
182 172

  
183
	if use gui; then
184
		python_fix_shebang scripts/python/app
185
		python_domodule scripts/python/module/PyNUT.py
186
		python_doscript scripts/python/app/NUT-Monitor
187

  
188
		insinto /usr/share/nut
189
		doins scripts/python/app/gui-1.3.glade
190

  
191
		dodir /usr/share/nut/pixmaps
192
		insinto /usr/share/nut/pixmaps
193
		doins scripts/python/app/pixmaps/*
194

  
195
		sed -i -e 's/nut-monitor.png/nut-monitor/' -e 's/Application;//' \
196
			scripts/python/app/${PN}-monitor.desktop || die
197

  
198
		doicon scripts/python/app/${PN}-monitor.png
199
		domenu scripts/python/app/${PN}-monitor.desktop
200
	fi
201

  
202 173
	# this must be done after all of the install phases
203 174
	for i in "${D}"/etc/nut/*.sample ; do
204 175
		mv "${i}" "${i/.sample/}" || die
Thank you!