|
Lines 39-65
Link Here
|
| 39 |
mv "${WORKDIR}/rust-nightly-${postfix}" "${S}" || die |
39 |
mv "${WORKDIR}/rust-nightly-${postfix}" "${S}" || die |
| 40 |
} |
40 |
} |
| 41 |
|
41 |
|
| 42 |
src_prepare() { |
|
|
| 43 |
epatch "${FILESDIR}/${PN}-0.12.0-no-ldconfig.patch" |
| 44 |
} |
| 45 |
|
| 46 |
src_install() { |
42 |
src_install() { |
| 47 |
./install.sh \ |
43 |
./install.sh \ |
|
|
44 |
--disable-ldconfig \ |
| 48 |
--disable-verify \ |
45 |
--disable-verify \ |
| 49 |
--prefix="${D}/opt/${P}" \ |
46 |
--prefix="${D}/opt/${P}" \ |
| 50 |
--mandir="${D}/usr/share/${P}/man" |
47 |
--mandir="${D}/usr/share/${P}/man" |
| 51 |
|
48 |
|
| 52 |
local rustc=rustc-bin-${PV} |
49 |
local rustc=rustc-bin-${PV} |
| 53 |
local rustdoc=rustdoc-bin-${PV} |
50 |
local rustdoc=rustdoc-bin-${PV} |
| 54 |
local rustlldb=rust-lldb-bin-${PV} |
51 |
local rustgdb=rust-gdb |
| 55 |
|
52 |
|
| 56 |
mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die |
53 |
mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die |
| 57 |
mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die |
54 |
mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die |
| 58 |
mv "${D}/opt/${P}/bin/rust-lldb" "${D}/opt/${P}/bin/${rustlldb}" || die |
|
|
| 59 |
|
55 |
|
| 60 |
dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" |
56 |
dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" |
| 61 |
dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" |
57 |
dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" |
| 62 |
dosym "/opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}" |
58 |
dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}" |
|
|
59 |
dosym "/opt/${P}/bin/cargo" "/usr/bin/cargo" |
| 63 |
|
60 |
|
| 64 |
cat <<-EOF > "${T}"/50${P} |
61 |
cat <<-EOF > "${T}"/50${P} |
| 65 |
LDPATH="/opt/${P}/lib" |
62 |
LDPATH="/opt/${P}/lib" |
|
Lines 78-88
Link Here
|
| 78 |
elog "and 'eselect rust set' to list and set rust version." |
75 |
elog "and 'eselect rust set' to list and set rust version." |
| 79 |
elog "For more information see 'eselect rust help'" |
76 |
elog "For more information see 'eselect rust help'" |
| 80 |
elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide" |
77 |
elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide" |
| 81 |
|
|
|
| 82 |
elog "Rust installs a helper script for calling LLDB now," |
| 83 |
elog "for your convenience it is installed under /usr/bin/rust-lldb-bin-${PV}," |
| 84 |
elog "but note, that there is no LLDB ebuild in the tree currently," |
| 85 |
elog "so you are on your own if you want to use it." |
| 86 |
} |
78 |
} |
| 87 |
|
79 |
|
| 88 |
pkg_postrm() { |
80 |
pkg_postrm() { |