From e3434bacca4d97a40700dc7828efb1f05414ca8b Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Mon, 10 Feb 2020 22:40:16 +0300 Subject: [PATCH] corscanner: migrate to PYTHON_MULTI_USEDEP --- .../corscanner/corscanner-99999999.ebuild | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/net-misc/corscanner/corscanner-99999999.ebuild b/net-misc/corscanner/corscanner-99999999.ebuild index 893c8197a..b1a1b2f84 100644 --- a/net-misc/corscanner/corscanner-99999999.ebuild +++ b/net-misc/corscanner/corscanner-99999999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{5,6} ) +PYTHON_COMPAT=( python3_{6,7} ) inherit eutils python-single-r1 @@ -28,11 +28,17 @@ SLOT=0 IUSE="" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} - dev-python/requests[${PYTHON_USEDEP}] - dev-python/gevent[${PYTHON_USEDEP}] - dev-python/tldextract[${PYTHON_USEDEP}] - dev-python/argparse[${PYTHON_USEDEP}] - dev-python/colorama[${PYTHON_USEDEP}]" + $(python_gen_cond_dep ' + dev-python/requests[${PYTHON_MULTI_USEDEP}] + dev-python/gevent[${PYTHON_MULTI_USEDEP}] + dev-python/tldextract[${PYTHON_MULTI_USEDEP}] + dev-python/argparse[${PYTHON_MULTI_USEDEP}] + dev-python/colorama[${PYTHON_MULTI_USEDEP}] + ')" + +pkg_setup() { + python-single-r1_pkg_setup +} src_install() { insinto "/usr/share/${PN}" @@ -44,7 +50,7 @@ src_install() { python_optimize "${D}/usr/share/${PN}" make_wrapper "cors_scan" \ - "python3 /usr/share/${PN}/cors_scan.py" + "${EPYTHON} /usr/share/${PN}/cors_scan.py" dodoc *.md }