commit:     2a3e0847845f86d33af6b1597dbd5688a09485fd
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Thu Feb 25 17:57:25 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 26 14:26:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a3e0847

net-misc/pyhoca-gui: Port to python 3.{8,9}

Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/pyhoca-gui/pyhoca-gui-0.6.1.1.ebuild | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/net-misc/pyhoca-gui/pyhoca-gui-0.6.1.1.ebuild 
b/net-misc/pyhoca-gui/pyhoca-gui-0.6.1.1.ebuild
index 3d05ef2fc36..671e506e1ff 100644
--- a/net-misc/pyhoca-gui/pyhoca-gui-0.6.1.1.ebuild
+++ b/net-misc/pyhoca-gui/pyhoca-gui-0.6.1.1.ebuild
@@ -1,27 +1,32 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_7 )
+PYTHON_COMPAT=( python3_{7..9} )
 inherit distutils-r1
 
 DESCRIPTION="X2Go graphical client applet"
 HOMEPAGE="http://www.x2go.org";
 SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz";
 
-LICENSE="AGPL-3"
+LICENSE="AGPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
-RDEPEND="dev-python/pycups[${PYTHON_USEDEP}]
+RDEPEND="
+       dev-python/pycups[${PYTHON_USEDEP}]
        dev-python/setproctitle[${PYTHON_USEDEP}]
        dev-python/wxpython[${PYTHON_USEDEP}]
        >=net-misc/python-x2go-0.6.1.1[${PYTHON_USEDEP}]
        x11-libs/libnotify"
-DEPEND="${DEPEND}
-       dev-python/python-distutils-extra[${PYTHON_USEDEP}]"
+BDEPEND="dev-python/python-distutils-extra[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+       # we don't need setuptools at runtime
+       sed -i -e '/install_requires/d' setup.py || die
+       distutils-r1_python_prepare_all
+}
 
 python_install() {
        distutils-r1_python_install

Reply via email to