diff options
author | Benda Xu <heroxbd@gentoo.org> | 2016-07-26 18:01:08 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2016-07-26 18:05:45 +0900 |
commit | e1d63dce4997462efeaada7048d7a33579469908 (patch) | |
tree | f481b71b9569844fdddde59097bf083c9b38f7cd /dev-util/gprof2dot | |
parent | dev-lang/ghc: Prefixify STAGE0_AR. (diff) | |
download | gentoo-e1d63dce4997462efeaada7048d7a33579469908.tar.gz gentoo-e1d63dce4997462efeaada7048d7a33579469908.tar.bz2 gentoo-e1d63dce4997462efeaada7048d7a33579469908.zip |
dev-util/gprof2dot: Prefix support.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-util/gprof2dot')
-rw-r--r-- | dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild b/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild index 014cd42af1f7..da462620cf82 100644 --- a/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild +++ b/dev-util/gprof2dot/gprof2dot-0_p20130517.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -28,7 +28,7 @@ src_prepare() { } _make_call_script() { - cat <<-EOF >"${D}/$1" + cat <<-EOF >"${ED}/$1" #! /usr/bin/env python from gprof2dot import Main Main().main() @@ -39,7 +39,8 @@ _make_call_script() { src_install() { abi_specific_install() { - insinto "$(python_get_sitedir)" + local sitedir="$(python_get_sitedir)" + insinto ${sitedir#"${EPREFIX}"} doins ${PN}.py || die python_optimize || die } @@ -47,5 +48,5 @@ src_install() { dodir /usr/bin || die _make_call_script /usr/bin/${PN} || die - python_replicate_script "${D}"/usr/bin/${PN} || die + python_replicate_script "${ED}"/usr/bin/${PN} || die } |