1 |
commit: 692645a4b3092a051a812c0326d64c1f4e765887 |
2 |
Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 1 21:20:01 2016 +0000 |
4 |
Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 21:26:20 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=692645a4 |
7 |
|
8 |
dev-lang/rust-bin: version bump, sync with gentoo-rust overlay |
9 |
|
10 |
Gentoo-Bug: 566148 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
dev-lang/rust-bin/Manifest | 2 + |
15 |
dev-lang/rust-bin/rust-bin-1.5.0.ebuild | 102 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 104 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest |
19 |
index db670bf..796530a 100644 |
20 |
--- a/dev-lang/rust-bin/Manifest |
21 |
+++ b/dev-lang/rust-bin/Manifest |
22 |
@@ -1,3 +1,5 @@ |
23 |
+DIST rust-1.5.0-i686-unknown-linux-gnu.tar.gz 97897323 SHA256 ee45a91c5b1b3542fc349c743667216dec52ea924166ced90675500baf2c42cd SHA512 1fdbb197fc2f28c846da2099e5c671fd165236a0e611eadd9faf07cdd8a3312f0085d992e97da1f97e1e10fb3d9f4d06215208242349a7d7857008d003495eb2 WHIRLPOOL d3a4dd5e002cd85d71648822274e8d4e1085618c38efdda602ab2afe647ad0415360c84fd18a5e1cda544ae54d18daa3a6e6ecd92b7529fb5263a8edcd3577c3 |
24 |
+DIST rust-1.5.0-x86_64-unknown-linux-gnu.tar.gz 97177085 SHA256 60b83f74d882ce2ba5bc979b5b0589dca56659f215b3259e7188fed8c50aac9d SHA512 2ccb6fcb7479ce6d7a5c9a55b3dde7dacc723012a8d8065f431492c7060aeb3dcf3c5df120a583aa890c659b08cbd9cb6df0846e936fdb808afb5efb2410e3b6 WHIRLPOOL bd20965ba143ef95ea7da378f8b312bc1f6340635fcbc9ef8c351bf2f5488825d4f96f3b43d5f88dba8587273ea73586e69c5f5adaf88f32fe01f5ffe5100abb |
25 |
DIST rustc-1.2.0-i686-unknown-linux-gnu.tar.gz 89840371 SHA256 f4c1692479314d63ee67914ec2065778c39ca4912f191a7894caf5264802b4fa SHA512 c89e6fac05c79755db7c15a275ac2a11d781fda10f6851ff13f0dce314f9a373bd5b79d0e1da0780071ce959693d4f08c33e3d18abbabe802922679d1e25a6b6 WHIRLPOOL 56c0636ecdc745fcdb41b77037486ba04c11b6a08568a0ada962687ead31bbd2c8f360894e629428fde4e5e3204d355e402d4a3651c4b13d0422e16beaec9f60 |
26 |
DIST rustc-1.2.0-x86_64-unknown-linux-gnu.tar.gz 88888977 SHA256 32fb262ba9da26a6d5ad9b2ca420fb56d97af8f86acb5cda2e85b7e7c33f6dcc SHA512 ea87a2c0e05d3f7e7c738320fd08b53055f76703526846b87b885e7abbd320b2f393b9328daa1ca04e9cb545e906c5750b6dcede2ede23323aeab8a8b096ccfd WHIRLPOOL e82ed578218ce19b4a7ca5b9d4c842c5546b5daa6aa3be162393fc0ca7148cf245bb7a79719b10ea7bf43952f8908a6355eea9070f027fcd5f1d70caa37c9931 |
27 |
DIST rustc-1.3.0-i686-unknown-linux-gnu.tar.gz 90445379 SHA256 7a3add3d229047bc68b929ba7b5f5d5796333f29e160c18c2a0ff24f643fab6b SHA512 afd001c1c285f12c13c0a9ecf0788f47ab72f069c1e1c5ec568973691ef2223c075fb99324e8245012e8a21003ea4fc63d874de99b95065aa9d09081798e09d5 WHIRLPOOL d273387d6eea540bf3a4bff96b5f754537ed265348661d412d37280f6d89fc726ed46fa03995b26eb444ac18e6c41f07d23c3c6844c7aaa00d2cc3970bad2f40 |
28 |
|
29 |
diff --git a/dev-lang/rust-bin/rust-bin-1.5.0.ebuild b/dev-lang/rust-bin/rust-bin-1.5.0.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..aef5ebe |
32 |
--- /dev/null |
33 |
+++ b/dev-lang/rust-bin/rust-bin-1.5.0.ebuild |
34 |
@@ -0,0 +1,102 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+inherit eutils bash-completion-r1 |
42 |
+ |
43 |
+MY_P="rust-${PV}" |
44 |
+ |
45 |
+DESCRIPTION="Systems programming language from Mozilla" |
46 |
+HOMEPAGE="http://www.rust-lang.org/" |
47 |
+SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz ) |
48 |
+ x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )" |
49 |
+ |
50 |
+LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
51 |
+SLOT="stable" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="doc" |
54 |
+ |
55 |
+DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 |
56 |
+ !dev-lang/rust:0 |
57 |
+" |
58 |
+RDEPEND="${DEPEND}" |
59 |
+ |
60 |
+QA_PREBUILT=" |
61 |
+ opt/${P}/bin/rustc-bin-${PV} |
62 |
+ opt/${P}/bin/rustdoc-bin-${PV} |
63 |
+ opt/${P}/lib/*.so |
64 |
+ opt/${P}/lib/rustlib/*/lib/*.so |
65 |
+" |
66 |
+ |
67 |
+src_unpack() { |
68 |
+ default |
69 |
+ |
70 |
+ local postfix |
71 |
+ use amd64 && postfix=x86_64-unknown-linux-gnu |
72 |
+ use x86 && postfix=i686-unknown-linux-gnu |
73 |
+ mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ local std=$(grep 'std' ./components) |
78 |
+ local components="rustc,${std}" |
79 |
+ use doc && components="${components},rust-docs" |
80 |
+ ./install.sh \ |
81 |
+ --components="${components}" \ |
82 |
+ --disable-verify \ |
83 |
+ --prefix="${D}/opt/${P}" \ |
84 |
+ --mandir="${D}/usr/share/${P}/man" \ |
85 |
+ --disable-ldconfig \ |
86 |
+ || die |
87 |
+ |
88 |
+ local rustc=rustc-bin-${PV} |
89 |
+ local rustdoc=rustdoc-bin-${PV} |
90 |
+ local rustgdb=rust-gdb-bin-${PV} |
91 |
+ |
92 |
+ mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die |
93 |
+ mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die |
94 |
+ mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die |
95 |
+ |
96 |
+ dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" |
97 |
+ dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" |
98 |
+ dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}" |
99 |
+ |
100 |
+ cat <<-EOF > "${T}"/50${P} |
101 |
+ LDPATH="/opt/${P}/lib" |
102 |
+ MANPATH="/usr/share/${P}/man" |
103 |
+ EOF |
104 |
+ doenvd "${T}"/50${P} |
105 |
+ |
106 |
+ cat <<-EOF > "${T}/provider-${P}" |
107 |
+ /usr/bin/rustdoc |
108 |
+ /usr/bin/rust-gdb |
109 |
+ EOF |
110 |
+ dodir /etc/env.d/rust |
111 |
+ insinto /etc/env.d/rust |
112 |
+ doins "${T}/provider-${P}" |
113 |
+} |
114 |
+ |
115 |
+pkg_postinst() { |
116 |
+ eselect rust update --if-unset |
117 |
+ |
118 |
+ elog "Rust installs a helper script for calling GDB now," |
119 |
+ elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}," |
120 |
+ |
121 |
+ if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
122 |
+ elog "install app-emacs/rust-mode to get emacs support for rust." |
123 |
+ fi |
124 |
+ |
125 |
+ if has_version app-editors/gvim || has_version app-editors/vim; then |
126 |
+ elog "install app-vim/rust-mode to get vim support for rust." |
127 |
+ fi |
128 |
+ |
129 |
+ if has_version 'app-shells/zsh'; then |
130 |
+ elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
131 |
+ fi |
132 |
+} |
133 |
+ |
134 |
+pkg_postrm() { |
135 |
+ eselect rust unset --if-invalid |
136 |
+} |