commit: edb664cb587703559a05d2f9e6a75236b85834db
Author: Doug Goldstein <cardoe <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 12 22:52:44 2017 +0000
Commit: Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Sun Feb 12 22:53:34 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edb664cb
cargo.eclass: ensure man pages are installed
If man pages are shipped with a crate, let's install them.
Signed-off-by: Doug Goldstein <cardoe <AT> gentoo.org>
eclass/cargo.eclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 8089227a15..d2140dc99b 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -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