/[gentoo-x86]/app-portage/mirrorselect/mirrorselect-2.1.0-r3.ebuild
Gentoo

Contents of /app-portage/mirrorselect/mirrorselect-2.1.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon May 21 04:49:48 2012 UTC (2 years, 3 months ago) by darkside
Branch: MAIN
Changes since 1.6: +2 -2 lines
fix patch spelling, typo

(Portage version: 2.1.10.60/cvs/Linux x86_64)

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.1.0-r3.ebuild,v 1.6 2012/02/22 17:17:25 zmedico Exp $
4
5 EAPI="3"
6 SUPPORT_PYTHON_ABIS="1"
7 PYTHON_DEPEND=2
8 PYTHON_USE_WITH="xml"
9
10 inherit eutils python
11
12 DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
13 HOMEPAGE="http://www.gentoo.org/"
14 SRC_URI="mirror://gentoo/${P}.tar.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
19 IUSE=""
20
21 RDEPEND="
22 dev-util/dialog
23 net-analyzer/netselect"
24
25 RESTRICT_PYTHON_ABIS="3*"
26
27 src_prepare() {
28 # bug 312753
29 epatch "${FILESDIR}/0001-Fix-rsync-mirror-selection.patch"
30 # bug 330611
31 epatch "${FILESDIR}/0002-Check-for-a-valid-mirrorselect-test-file.patch"
32
33 python_convert_shebangs 2 main.py mirrorselect/mirrorparser3.py
34 }
35
36 src_install() {
37 newsbin main.py ${PN} || die
38
39 installation() {
40 insinto $(python_get_sitedir)
41 doins -r ${PN}/
42 }
43 python_execute_function installation
44
45 doman ${PN}.8 || die
46 }
47
48 pkg_postinst() {
49 python_mod_optimize ${PN}
50 }
51
52 pkg_postrm() {
53 python_mod_cleanup ${PN}
54 }

  ViewVC Help
Powered by ViewVC 1.1.20