From f9da663374a97d02afc16bb3d350b432c8152da8 Mon Sep 17 00:00:00 2001 From: Ben Kohler Date: Sat, 20 Feb 2021 09:22:11 -0600 Subject: app-portage/mirrorselect: add python3_9 support Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Ben Kohler --- .../mirrorselect/mirrorselect-2.2.6-r1.ebuild | 50 ---------------------- .../mirrorselect/mirrorselect-2.2.6-r2.ebuild | 50 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 app-portage/mirrorselect/mirrorselect-2.2.6-r1.ebuild create mode 100644 app-portage/mirrorselect/mirrorselect-2.2.6-r2.ebuild (limited to 'app-portage') diff --git a/app-portage/mirrorselect/mirrorselect-2.2.6-r1.ebuild b/app-portage/mirrorselect/mirrorselect-2.2.6-r1.ebuild deleted file mode 100644 index 7dda1fef15da..000000000000 --- a/app-portage/mirrorselect/mirrorselect-2.2.6-r1.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -PYTHON_COMPAT=( python3_{7,8} ) -PYTHON_REQ_USE="xml" -DISTUTILS_USE_SETUPTOOLS=no - -inherit eutils distutils-r1 prefix - -DESCRIPTION="Tool to help select distfiles mirrors for Gentoo" -HOMEPAGE="https://wiki.gentoo.org/wiki/Mirrorselect" -SRC_URI="https://dev.gentoo.org/~zmedico/dist/${P}.tar.gz - https://dev.gentoo.org/~dolsen/releases/mirrorselect/mirrorselect-test - " - -LICENSE="GPL-2" -SLOT="0" -IUSE="ipv6" - -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86" - -RDEPEND=" - dev-util/dialog - >=net-analyzer/netselect-0.4[ipv6(+)?] - >=dev-python/ssl-fetch-0.3[${PYTHON_USEDEP}] - " - -python_prepare_all() { - python_setup - eprefixify setup.py mirrorselect/main.py - echo Now setting version... VERSION="${PVR}" "${PYTHON}" setup.py set_version - VERSION="${PVR}" "${PYTHON}" setup.py set_version || die "setup.py set_version failed" - if use ipv6; then - # The netselect --ipv4 and --ipv6 options are supported only - # with >=net-analyzer/netselect-0.4[ipv6(+)] (bug 688214). - sed -e '/^NETSELECT_SUPPORTS_IPV4_IPV6 =/s|False|True|' \ - -i mirrorselect/selectors.py || die - fi - - # Apply e69ec2d046626fa2079d460aab469d04256182cd for bug 698470. - sed -e 's|key = lex.get_token()|\0\n\t\t\tif key is None:\n\t\t\t\tbreak|' -i mirrorselect/configs.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - esetup.py test || die "tests failed under ${EPYTHON}" -} diff --git a/app-portage/mirrorselect/mirrorselect-2.2.6-r2.ebuild b/app-portage/mirrorselect/mirrorselect-2.2.6-r2.ebuild new file mode 100644 index 000000000000..ca385ae2c309 --- /dev/null +++ b/app-portage/mirrorselect/mirrorselect-2.2.6-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_REQ_USE="xml" +DISTUTILS_USE_SETUPTOOLS=no + +inherit eutils distutils-r1 prefix + +DESCRIPTION="Tool to help select distfiles mirrors for Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Mirrorselect" +SRC_URI="https://dev.gentoo.org/~zmedico/dist/${P}.tar.gz + https://dev.gentoo.org/~dolsen/releases/mirrorselect/mirrorselect-test + " + +LICENSE="GPL-2" +SLOT="0" +IUSE="ipv6" + +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86" + +RDEPEND=" + dev-util/dialog + >=net-analyzer/netselect-0.4[ipv6(+)?] + >=dev-python/ssl-fetch-0.3[${PYTHON_USEDEP}] + " + +python_prepare_all() { + python_setup + eprefixify setup.py mirrorselect/main.py + echo Now setting version... VERSION="${PVR}" "${PYTHON}" setup.py set_version + VERSION="${PVR}" "${PYTHON}" setup.py set_version || die "setup.py set_version failed" + if use ipv6; then + # The netselect --ipv4 and --ipv6 options are supported only + # with >=net-analyzer/netselect-0.4[ipv6(+)] (bug 688214). + sed -e '/^NETSELECT_SUPPORTS_IPV4_IPV6 =/s|False|True|' \ + -i mirrorselect/selectors.py || die + fi + + # Apply e69ec2d046626fa2079d460aab469d04256182cd for bug 698470. + sed -e 's|key = lex.get_token()|\0\n\t\t\tif key is None:\n\t\t\t\tbreak|' -i mirrorselect/configs.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test || die "tests failed under ${EPYTHON}" +} -- cgit v1.2.3-65-gdbad