blob: 7bfb3b6cf4ecdcd5d683afe080f4e5d9d315efc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
DISTUTILS_USE_SETUPTOOLS=no
PYTHON_COMPAT=( python3_{10..11} )
PYTHON_REQ_USE="xml(+)"
inherit edo distutils-r1 prefix
DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
HOMEPAGE="https://wiki.gentoo.org/wiki/Mirrorselect"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/mirrorselect.git"
inherit git-r3
SSL_FETCH_VER=9999
else
SRC_URI="
https://gitweb.gentoo.org/proj/mirrorselect.git/snapshot/${P}.tar.gz
https://dev.gentoo.org/~dolsen/releases/mirrorselect/${P}.tar.gz
https://dev.gentoo.org/~dolsen/releases/mirrorselect/mirrorselect-test
"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
SSL_FETCH_VER=0.3
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="ipv6"
RDEPEND="
dev-util/dialog
>=net-analyzer/netselect-0.4[ipv6(+)?]
>=dev-python/ssl-fetch-${SSL_FETCH_VER}[${PYTHON_USEDEP}]
"
distutils_enable_tests setup.py
python_prepare_all() {
python_setup
local -x VERSION="${PVR}"
eprefixify setup.py mirrorselect/main.py
edo "${PYTHON}" setup.py set_version
distutils-r1_python_prepare_all
}
|