*/*: Clean PYTHON_COMPAT of obsolete impls
[gentoo.git] / app-portage / mirrorselect / mirrorselect-2.2.4-r1.ebuild
1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI="7"
5
6 PYTHON_COMPAT=( python3_{6,7} )
7 PYTHON_REQ_USE="xml"
8
9 inherit eutils distutils-r1 prefix
10
11 DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
12 HOMEPAGE="https://wiki.gentoo.org/wiki/Mirrorselect"
13 SRC_URI="https://dev.gentoo.org/~zmedico/dist/${P}.tar.gz
14         https://dev.gentoo.org/~dolsen/releases/mirrorselect/mirrorselect-test
15         "
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 IUSE=""
20
21 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~x86"
22
23 RDEPEND="
24         dev-util/dialog
25         net-analyzer/netselect
26         >=dev-python/ssl-fetch-0.3[${PYTHON_USEDEP}]
27         "
28
29 python_prepare_all()  {
30         python_setup
31         eprefixify setup.py mirrorselect/main.py
32         echo Now setting version... VERSION="${PVR}" "${PYTHON}" setup.py set_version
33         VERSION="${PVR}" "${PYTHON}" setup.py set_version || die "setup.py set_version failed"
34         distutils-r1_python_prepare_all
35 }