summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2016-08-02 20:46:32 +0200
committerFabian Groffen <grobian@gentoo.org>2016-08-02 20:46:32 +0200
commitc78f0d0a67010b4f1e69d6282f2d3020c04ab1f3 (patch)
treefaff89d4ee13e16d602ed17c7ffeee202122dd1f /app-admin/diamond/diamond-9999.ebuild
parentgames-board/pysolfc: add missing die() (diff)
downloadgentoo-c78f0d0a67010b4f1e69d6282f2d3020c04ab1f3.tar.gz
gentoo-c78f0d0a67010b4f1e69d6282f2d3020c04ab1f3.tar.bz2
gentoo-c78f0d0a67010b4f1e69d6282f2d3020c04ab1f3.zip
app-admin/diamond: use hprefixify for Prefix
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-admin/diamond/diamond-9999.ebuild')
-rw-r--r--app-admin/diamond/diamond-9999.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/app-admin/diamond/diamond-9999.ebuild b/app-admin/diamond/diamond-9999.ebuild
index cb7f0784091c..656013e519d8 100644
--- a/app-admin/diamond/diamond-9999.ebuild
+++ b/app-admin/diamond/diamond-9999.ebuild
@@ -16,7 +16,7 @@ fi
PYTHON_COMPAT=( python2_7 )
-inherit distutils-r1
+inherit distutils-r1 prefix
DESCRIPTION="Python daemon that collects and publishes system metrics"
HOMEPAGE="https://github.com/python-diamond/Diamond"
@@ -37,10 +37,7 @@ DEPEND="${RDEPEND}
src_prepare() {
# adjust for Prefix
- sed -i \
- -e '/default="\/etc\/diamond\/diamond.conf"/s:=":="'"${EPREFIX}"':' \
- bin/diamond* \
- || die
+ hprefixify bin/diamond*
distutils-r1_src_prepare
}
@@ -57,6 +54,7 @@ python_install() {
sed -i \
-e '/pid_file =/s:/var/run:/run:' \
"${ED}"/etc/diamond/diamond.conf.example || die
+ hprefixify "${ED}"/etc/diamond/diamond.conf.example
}
src_install() {