]> Pileus Git - ~andy/sunrise/commitdiff
www-misc/reflector: Bump to reflector-2011.04.04.1 (which moves from a perl to a...
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Thu, 7 Apr 2011 17:48:35 +0000 (17:48 +0000)
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Thu, 7 Apr 2011 17:48:35 +0000 (17:48 +0000)
(Portage version: 2.2.0_alpha29-r1/svn/Linux x86_64)

svn path=/sunrise/; revision=11875

www-misc/reflector/ChangeLog
www-misc/reflector/reflector-2011.04.04.1.ebuild [moved from www-misc/reflector/reflector-2011.01.24.2.ebuild with 50% similarity]

index b4d4a75d24cb87d53b224dc8026621b3de3c71b1..55e5a6b1d9ca66e42286079b4377f43d3ac4d47c 100644 (file)
@@ -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>
similarity index 50%
rename from www-misc/reflector/reflector-2011.01.24.2.ebuild
rename to www-misc/reflector/reflector-2011.04.04.1.ebuild
index 5f30536a008985baa795659101697890d5bea1f3..aa4640607cc3c4cfc5382d46780f5b37f34eb765 100644 (file)
@@ -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
 }