dev-vcs/mercurial: fix double prefix
authorFabian Groffen <grobian@gentoo.org>
Mon, 22 Oct 2018 12:01:37 +0000 (14:01 +0200)
committerFabian Groffen <grobian@gentoo.org>
Mon, 22 Oct 2018 12:01:37 +0000 (14:01 +0200)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

dev-vcs/mercurial/mercurial-4.7.2.ebuild

index 2b7e1bbf0e225817af840f1cc55e45b69194c183..60e5ed59b655a424b26e2b20050aa8f1cf2c84f0 100644 (file)
@@ -93,7 +93,8 @@ python_install_all() {
        doins "${FILESDIR}/cacerts.rc"
 
        # symlink to system zstd
-       dosym ../zstd.so $(python_get_sitedir)/${PN}/zstd.so
+       local sitedir=$(python_get_sitedir)
+       dosym ../zstd.so "${sitedir#${EPREFIX}}"/${PN}/zstd.so
 }
 
 src_test() {