blob: 6eb0ec28ea51155deae32f0eac2e5262c6b7145b (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python{2_7,3_4} )
PYTHON_REQ_USE="xml"
inherit eutils distutils-r1 prefix
DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
HOMEPAGE="https://www.gentoo.org/proj/en/portage/tools/index.xml"
SRC_URI="https://dev.gentoo.org/~dolsen/distfiles/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux"
RDEPEND="
dev-util/dialog
net-analyzer/netselect
"
python_prepare_all() {
python_export_best
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"
distutils-r1_python_prepare_all
}
|