summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2013-06-16 13:29:36 +0000
committerSebastian Pipping <sping@gentoo.org>2013-06-16 13:29:36 +0000
commitdd07f64cf8cda96118ad34b85c2ebf3557df9c6a (patch)
treee7f043e20ebc9a3f2326259b7688e20d56059ac4 /dev-util/gprof2dot
parentFix failed gpg signature (diff)
downloadgentoo-2-dd07f64cf8cda96118ad34b85c2ebf3557df9c6a.tar.gz
gentoo-2-dd07f64cf8cda96118ad34b85c2ebf3557df9c6a.tar.bz2
gentoo-2-dd07f64cf8cda96118ad34b85c2ebf3557df9c6a.zip
dev-util/gprof2dot: xrange patch (bug #473418)
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
Diffstat (limited to 'dev-util/gprof2dot')
-rw-r--r--dev-util/gprof2dot/ChangeLog7
-rw-r--r--dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch10
-rw-r--r--dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild6
3 files changed, 21 insertions, 2 deletions
diff --git a/dev-util/gprof2dot/ChangeLog b/dev-util/gprof2dot/ChangeLog
index 2e791c1472be..61dd999ec476 100644
--- a/dev-util/gprof2dot/ChangeLog
+++ b/dev-util/gprof2dot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/gprof2dot
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gprof2dot/ChangeLog,v 1.5 2013/05/19 21:01:48 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gprof2dot/ChangeLog,v 1.6 2013/06/16 13:29:36 sping Exp $
+
+ 16 Jun 2013; Sebastian Pipping <sping@gentoo.org>
+ gprof2dot-0_p20130517.ebuild, +files/gprof2dot-0_p20130517-py3-xrange.patch:
+ Handle lack of xrange(..) in Python 3, thanks for the patch to Reinis Danne
+ (bug #473418)
*gprof2dot-0_p20130517 (19 May 2013)
diff --git a/dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch b/dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch
new file mode 100644
index 000000000000..228b1d8230d7
--- /dev/null
+++ b/dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch
@@ -0,0 +1,10 @@
+--- gprof2dot.py 2013-05-29 19:18:46.217823810 +0300
++++ gprof2dot.py 2013-06-16 12:12:28.095478734 +0300
+@@ -39,6 +39,7 @@
+ def compat_keys(x): return list(x.keys()) # keys() is a generator in Python 3
+ basestring = str # No class basestring in Python 3
+ unichr = chr # No unichr in Python 3
++ xrange = range # No xrange in Python 3
+ else:
+ PYTHON_3 = False
+ def compat_iteritems(x): return x.iteritems()
diff --git a/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild b/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild
index 72a8b3e96d2e..fee581bf5d84 100644
--- a/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild
+++ b/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild,v 1.1 2013/05/19 21:01:49 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild,v 1.2 2013/06/16 13:29:36 sping Exp $
EAPI="5"
@@ -21,6 +21,10 @@ IUSE=""
DEPEND=""
RDEPEND=""
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-py3-xrange.patch
+}
+
_make_call_script() {
cat <<-EOF >"${D}/$1"
#! /usr/bin/env python