diff options
author | Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net> | 2011-04-07 17:48:35 +0000 |
---|---|---|
committer | Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net> | 2011-04-07 17:48:35 +0000 |
commit | ed26276e59efe1f765658cf65cff3d1d32c649fa (patch) | |
tree | c27cffe7cbda596011d05966e76de53775b26af3 /www-misc | |
parent | net-analyzer/icinga: moved the space withing the quotes on the if use plugins... (diff) | |
download | sunrise-reviewed-ed26276e59efe1f765658cf65cff3d1d32c649fa.tar.gz sunrise-reviewed-ed26276e59efe1f765658cf65cff3d1d32c649fa.tar.bz2 sunrise-reviewed-ed26276e59efe1f765658cf65cff3d1d32c649fa.zip |
www-misc/reflector: Bump to reflector-2011.04.04.1 (which moves from a perl to a python implementation, so the ebuild is mostly rewritten).
(Portage version: 2.2.0_alpha29-r1/svn/Linux x86_64)
svn path=/sunrise/; revision=11875
Diffstat (limited to 'www-misc')
-rw-r--r-- | www-misc/reflector/ChangeLog | 7 | ||||
-rw-r--r-- | www-misc/reflector/reflector-2011.04.04.1.ebuild (renamed from www-misc/reflector/reflector-2011.01.24.2.ebuild) | 27 |
2 files changed, 29 insertions, 5 deletions
diff --git a/www-misc/reflector/ChangeLog b/www-misc/reflector/ChangeLog index b4d4a75d2..55e5a6b1d 100644 --- a/www-misc/reflector/ChangeLog +++ b/www-misc/reflector/ChangeLog @@ -2,6 +2,13 @@ # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*reflector-2011.04.04.1 (07 Apr 2011) + + 07 Apr 2011; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net> + -reflector-2011.01.24.2.ebuild, +reflector-2011.04.04.1.ebuild: + Bump to reflector-2011.04.04.1 (which moves from a perl to a python + implementation, so the ebuild is mostly rewritten). + *reflector-2011.01.24.2 (15 Mar 2011) 15 Mar 2011; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net> diff --git a/www-misc/reflector/reflector-2011.01.24.2.ebuild b/www-misc/reflector/reflector-2011.04.04.1.ebuild index 5f30536a0..aa4640607 100644 --- a/www-misc/reflector/reflector-2011.01.24.2.ebuild +++ b/www-misc/reflector/reflector-2011.04.04.1.ebuild @@ -2,7 +2,12 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=2 +EAPI=3 + +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES=1 +PYTHON_DEPEND="*" +SUPPORT_PYTHON_ABIS=1 +inherit eutils distutils DESCRIPTION="archlinux's take on mirrorselect" HOMEPAGE="http://xyne.archlinux.ca/projects/reflector/" @@ -13,13 +18,25 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" -RDEPEND="dev-lang/perl - dev-perl/perl-xyne-arch" +RDEPEND="dev-python/argparse" S=${WORKDIR}/${PN} +src_prepare() { + distutils_src_prepare + + my_src_prepare() { + [ "$(python_get_version --major)" == 2 ] && epatch 3to2.patch + : + } + + python_execute_function -s my_src_prepare + + python_convert_shebangs "" reflector +} + src_install() { - dobin ${PN} || die + distutils_src_install - doman man/* || die + dobin ${PN} || die } |