Gentoo Archives: gentoo-commits

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