1 |
commit: ea62e779486ae9b1b84d13f8c249f3b007d9ad36 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Dec 14 04:36:36 2017 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Dec 14 04:36:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=ea62e779 |
7 |
|
8 |
dev-lang/rust: documentation tweaks |
9 |
|
10 |
dev-lang/rust/rust-1.21.0.ebuild | 9 ++++++++- |
11 |
1 file changed, 8 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/dev-lang/rust/rust-1.21.0.ebuild b/dev-lang/rust/rust-1.21.0.ebuild |
14 |
index b10900c..d6c1fe1 100644 |
15 |
--- a/dev-lang/rust/rust-1.21.0.ebuild |
16 |
+++ b/dev-lang/rust/rust-1.21.0.ebuild |
17 |
@@ -69,7 +69,6 @@ SRC_URI="https://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.xz |
18 |
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
19 |
|
20 |
IUSE="debug doc jemalloc system-llvm" |
21 |
-REQUIRED_USE="" |
22 |
|
23 |
RDEPEND=" |
24 |
system-llvm? ( sys-devel/llvm:4 ) |
25 |
@@ -192,6 +191,14 @@ src_install() { |
26 |
mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
27 |
mv "${D}/usr/bin/rust-lldb" "${D}/usr/bin/rust-lldb-${PV}" || die |
28 |
|
29 |
+ if use doc; then |
30 |
+ rm "${D}/usr/$(get_libdir)/${P}/rustlib/manifest-rust-docs" || die |
31 |
+ fi |
32 |
+ |
33 |
+ rm "${D}/usr/share/doc/${P}/LICENSE-MIT" || die |
34 |
+ rm "${D}/usr/share/doc/${P}/LICENSE-APACHE" || die |
35 |
+ |
36 |
+ docompress "${D}/usr/share/${P}/man" |
37 |
dodoc COPYRIGHT |
38 |
|
39 |
cat <<-EOF > "${T}"/50${P} |