/[gentoo-x86]/app-portage/mirrorselect/mirrorselect-2.2.0-r1.ebuild
Gentoo

Contents of /app-portage/mirrorselect/mirrorselect-2.2.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Dec 16 06:12:56 2012 UTC (23 months ago) by dolsen
Branch: MAIN
Fix bug 373195 and incorrect egg-info version numbering

(Portage version: 2.2.0_alpha144_p1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-portage/mirrorselect/mirrorselect-2.2.0.ebuild,v 1.1 2012/12/15 23:23:46 dolsen Exp $
4
5 EAPI="3"
6 SUPPORT_PYTHON_ABIS="1"
7 RESTRICT_PYTHON_ABIS="2.[45] 3.1"
8 PYTHON_USE_WITH="xml"
9 PYTHON_NONVERSIONED_EXECUTABLES=(".*")
10
11 inherit eutils distutils python prefix
12
13 DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
14 HOMEPAGE="http://www.gentoo.org/proj/en/portage/tools/index.xml"
15 SRC_URI="http://dev.gentoo.org/~dolsen/distfiles/${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 IUSE=""
20
21 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux"
22
23 # Note: dev-lang/python dependencies are so emerge will print a blocker if any
24 # installed slot of python is not built with +xml. This is used since
25 # PYTHON_USE_WITH just dies in the middle of the emerge. See bug 399331.
26 RDEPEND="
27 >=dev-lang/python-2.6[xml]
28 !>=dev-lang/python-2.6[-xml]
29 dev-util/dialog
30 net-analyzer/netselect
31 "
32 # virtual/python-argparse"
33
34 src_prepare() {
35 epatch "${FILESDIR}/2.2.0-Ignore-inaccessible-fsmirrors.patch"
36 epatch "${FILESDIR}/2.2.0-Fix-setup.py-PVR.patch"
37 eprefixify setup.py mirrorselect/main.py
38 }
39
40 distutils_src_compile_pre_hook() {
41 echo Now setting version... VERSION="${PVR}" "$(PYTHON)" setup.py set_version
42 VERSION="${PVR}" "$(PYTHON)" setup.py set_version || die "setup.py set_version failed"
43 }
44
45 src_compile() {
46 distutils_src_compile
47 }
48
49 src_install() {
50 python_convert_shebangs -r "" build-*/scripts-*
51 distutils_src_install
52 }
53
54 pkg_postinst() {
55 distutils_pkg_postinst
56 }

  ViewVC Help
Powered by ViewVC 1.1.20