dev-lang/nim: drop redundant 'insinto'
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 9 Nov 2019 15:55:52 +0000 (15:55 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 9 Nov 2019 15:59:01 +0000 (15:59 +0000)
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
dev-lang/nim/nim-1.0.2.ebuild

index bb41a8721feb89248b18ca221943c1d380e1ace9..160171c5b0953842550056dd8fa22241219fb77c 100644 (file)
@@ -60,8 +60,8 @@ src_test() {
 }
 
 src_install() {
-       PATH="./bin:$PATH" _run ./koch install "${ED%/}"
-       rm -r "${ED%/}/usr/share/nim/doc" || die "failed to remove 'doc'"
+       PATH="./bin:$PATH" _run ./koch install "${ED}"
+       rm -r "${ED}/usr/share/nim/doc" || die "failed to remove 'doc'"
 
        exeinto /usr/bin
 
@@ -73,10 +73,6 @@ src_install() {
                doexe "${bin_exe}"
        done
 
-       if use doc; then
-               insinto /usr/share/doc/${PF}
-               dodoc doc/html/*.html
-       fi
-
+       use doc && dodoc doc/html/*.html
        newbashcomp tools/nim.bash-completion ${PN}
 }