sys-apps/etckeeper: fix Prefix runtime directories.
authorBenda Xu <heroxbd@gentoo.org>
Mon, 1 Oct 2018 03:47:14 +0000 (11:47 +0800)
committerBenda Xu <heroxbd@gentoo.org>
Mon, 1 Oct 2018 03:53:41 +0000 (11:53 +0800)
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

sys-apps/etckeeper/etckeeper-1.18.7.ebuild

index f18078fe62db2cbd174d0033ecd2b12cdaa8d222..100d1c4de5110b32bb784a802894eda471d12952 100644 (file)
@@ -32,6 +32,11 @@ RESTRICT="!test? ( test )"
 
 PATCHES=( "${FILESDIR}"/${PN}-1.18.6-gentoo.patch )
 
+src_prepare() {
+       default
+       hprefixify *.d/* etckeeper
+}
+
 src_compile() {
        :
 }
@@ -45,10 +50,7 @@ src_install(){
        }
        use bazaar && python_foreach_impl bzr_install
 
-       if use prefix; then
-               doenvd "${FILESDIR}"/99${PN}
-               eprefixify "${ED%/}"/etc/env.d/99${PN}
-       fi
+       doenvd "$(prefixify_ro "${FILESDIR}"/99${PN})"
 
        newbashcomp bash_completion ${PN}
        dodoc doc/README.mdwn