cargo.eclass: ensure man pages are installed
authorDoug Goldstein <cardoe@gentoo.org>
Sun, 12 Feb 2017 22:52:44 +0000 (16:52 -0600)
committerDoug Goldstein <cardoe@gentoo.org>
Sun, 12 Feb 2017 22:53:34 +0000 (16:53 -0600)
If man pages are shipped with a crate, let's install them.

Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
eclass/cargo.eclass

index 8089227a159feb515282dd365dcca20e633bbbd3..d2140dc99bc04584c0d9f4d219004f07a705616a 100644 (file)
@@ -125,6 +125,8 @@ cargo_src_install() {
        cargo install --root="${D}/usr" $(usex debug --debug "") \
                || die "cargo install failed"
        rm -f "${D}/usr/.crates.toml"
+
+       [ -d "${S}/man" ] && doman "${S}/man"
 }
 
 fi