1 |
commit: e1d63dce4997462efeaada7048d7a33579469908 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 26 09:01:08 2016 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 26 09:05:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1d63dce |
7 |
|
8 |
dev-util/gprof2dot: Prefix support. |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild | 9 +++++---- |
13 |
1 file changed, 5 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild b/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild |
16 |
index 014cd42..da46262 100644 |
17 |
--- a/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild |
18 |
+++ b/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2014 Gentoo Foundation |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
@@ -28,7 +28,7 @@ src_prepare() { |
26 |
} |
27 |
|
28 |
_make_call_script() { |
29 |
- cat <<-EOF >"${D}/$1" |
30 |
+ cat <<-EOF >"${ED}/$1" |
31 |
#! /usr/bin/env python |
32 |
from gprof2dot import Main |
33 |
Main().main() |
34 |
@@ -39,7 +39,8 @@ _make_call_script() { |
35 |
|
36 |
src_install() { |
37 |
abi_specific_install() { |
38 |
- insinto "$(python_get_sitedir)" |
39 |
+ local sitedir="$(python_get_sitedir)" |
40 |
+ insinto ${sitedir#"${EPREFIX}"} |
41 |
doins ${PN}.py || die |
42 |
python_optimize || die |
43 |
} |
44 |
@@ -47,5 +48,5 @@ src_install() { |
45 |
|
46 |
dodir /usr/bin || die |
47 |
_make_call_script /usr/bin/${PN} || die |
48 |
- python_replicate_script "${D}"/usr/bin/${PN} || die |
49 |
+ python_replicate_script "${ED}"/usr/bin/${PN} || die |
50 |
} |