summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-08-13 16:17:31 -0400
committerRick Farina <zerochaos@gentoo.org>2020-08-13 16:17:42 -0400
commite37135178ec5ef66a94014bb4e26435418c5946a (patch)
tree6a6c6d7ebddcb13d51a13728ac558aff63d59ea4
parentwww-plugins/chrome-binary-plugins: automated update (diff)
downloadgentoo-e37135178ec5ef66a94014bb4e26435418c5946a.tar.gz
gentoo-e37135178ec5ef66a94014bb4e26435418c5946a.tar.bz2
gentoo-e37135178ec5ef66a94014bb4e26435418c5946a.zip
net-wireless/chirp: prep for python3
Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
-rw-r--r--net-wireless/chirp/chirp-99999999.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/net-wireless/chirp/chirp-99999999.ebuild b/net-wireless/chirp/chirp-99999999.ebuild
index 77faba828a0..48f9b1a7787 100644
--- a/net-wireless/chirp/chirp-99999999.ebuild
+++ b/net-wireless/chirp/chirp-99999999.ebuild
@@ -3,10 +3,13 @@
EAPI=7
PYTHON_COMPAT=( python2_7 )
+#PYTHON_COMPAT=( python3_7 )
+#DISTUTILS_SINGLE_IMPL=1
if [[ ${PV} == "99999999" ]] ; then
SCM=mercurial
EHG_REPO_URI="http://d-rats.com/hg/chirp.hg"
+ #EHG_REVISION="py3"
else
RESTRICT="test"
KEYWORDS="~amd64 ~x86"
@@ -24,11 +27,15 @@ SLOT="0"
IUSE="radioreference"
DEPEND="${PYTHON_DEPS}
+ $(python_gen_cond_dep '
dev-python/pyserial[${PYTHON_USEDEP}]
- dev-libs/libxml2[python]"
+ dev-libs/libxml2[python]')"
RDEPEND="${DEPEND}
- dev-python/pygtk[${PYTHON_USEDEP}]
- radioreference? ( dev-python/suds[${PYTHON_USEDEP}] )"
+ $(python_gen_cond_dep '
+ python_targets_python2_7? ( dev-python/pygtk[${PYTHON_USEDEP}] )
+ !python_targets_python2_7? ( dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+:3[introspection] )
+ radioreference? ( dev-python/suds[${PYTHON_USEDEP}] )')"
src_prepare() {
sed -i -e "/share\/doc\/chirp/d" setup.py || die