Gentoo Archives: gentoo-commits

From: Dirkjan Ochtman <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust-bin/
Date: Tue, 27 Dec 2016 15:46:01
Message-Id: 1482853549.c9bbcf3b0cda0a36dd3ac11a6a5ec19fd8cecbfb.djc@gentoo
1 commit: c9bbcf3b0cda0a36dd3ac11a6a5ec19fd8cecbfb
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 27 15:45:36 2016 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 27 15:45:49 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9bbcf3b
7
8 dev-lang/rust-bin: version bump to 1.14.0
9
10 Package-Manager: Portage-2.3.0, Repoman-2.3.1
11
12 dev-lang/rust-bin/Manifest | 2 +
13 dev-lang/rust-bin/rust-bin-1.14.0.ebuild | 102 +++++++++++++++++++++++++++++++
14 2 files changed, 104 insertions(+)
15
16 diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
17 index 0698f54..46da440 100644
18 --- a/dev-lang/rust-bin/Manifest
19 +++ b/dev-lang/rust-bin/Manifest
20 @@ -2,3 +2,5 @@ DIST rust-1.12.1-i686-unknown-linux-gnu.tar.gz 123818795 SHA256 ede9b9d14d1ddbc2
21 DIST rust-1.12.1-x86_64-unknown-linux-gnu.tar.gz 120844880 SHA256 9e546aec13e389429ba2d86c8f4e67eba5af146c979e4faa16ffb40ddaf9984c SHA512 888ad195b9d4b8d1d7ccaffd460e6fe0f6003461a6818937b4b6f80a92462eb96095888729188421f21e6bd0e21fa558a7ea81327b78eab5c3b70807c5069492 WHIRLPOOL 309c0dfbf25a20bf8a48609d83212e29d409b21f51fcc228b2f83242df1486cd65a9fb884e5b3737fbc90db0a59e6b155528b445412466a84988a77b3999bcdc
22 DIST rust-1.13.0-i686-unknown-linux-gnu.tar.gz 94614521 SHA256 239734113f6750d31085c7a08c260d492991cc1ef10817b6d44154515f3f9439 SHA512 acea228b6c17cddfc6b1db1ab7d9e71ef852e7137bd992eaef69fa051f9d6f1b449d91b3f0984c3c64de274f246b5c37f9dc9cd5457d797be01beb3357d3c557 WHIRLPOOL 893c733313da95041d40d689a9f871ead8462b77c6062623c24e97f8ddd97ff8a7f58ed2c7595631752469018e850cd0db52949ad25365fb460489613e554a29
23 DIST rust-1.13.0-x86_64-unknown-linux-gnu.tar.gz 91007029 SHA256 95f4c372b1b81ac1038161e87e932dd7ab875d25c167a861c3949b0f6a65516d SHA512 b5d217aef6e20ed159506d2b46df2003de09c212794725693bc09fa4bcd7e527fed23969e62121591601749ec161de4d90b2c261807f83e2c0114727659b4f6e WHIRLPOOL 60d9cc1c365e44b554211b47fe89dd076d04a96f876574d2eecff9416aa43f3233470acb1607406d7298d40769900a6b9cda93645e2b1eeeca9fe8067442b607
24 +DIST rust-1.14.0-i686-unknown-linux-gnu.tar.gz 126452488 SHA256 8d5c75728b44468216f99651dfae9d60ae0696a77105dd2b02942d75f3256840 SHA512 2e1cd7cb1c9a1c147fcfe16f5eac3876b88a5a04bc1a6d2386756181986046b8636c317fb76834ca75aec99f0bcf9e5ce760eacf74b4b9811210db4a59fdb66f WHIRLPOOL 9f2a6a0462b9494566c5be7475ca15280b35229756789e3dda01ba7eefe5ae3eab6c804fd7183641890efa16aa22ff0e9153ef6c8b8379f76d0c44b98027a483
25 +DIST rust-1.14.0-x86_64-unknown-linux-gnu.tar.gz 122820395 SHA256 c71325cfea1b6f0bdc5189fa4c50ff96f828096ff3f7b5056367f9685d6a4d04 SHA512 6ec7155a2ac95718d1c28ffada0d365ca46cca7b1879b4533a662a4e63140fd2a70a9647a4b4d57e12d0d20dd46b7aba18365db0ed0cfd870b0a0394d4266b8c WHIRLPOOL f6c1c67806974cd39e68e2c111803a9ba7e858a93bfb8c8939747d253f119ae6667a21e3cba385015f27f9395fb2982d2a0c26f423b5d784fdc395e680da803b
26
27 diff --git a/dev-lang/rust-bin/rust-bin-1.14.0.ebuild b/dev-lang/rust-bin/rust-bin-1.14.0.ebuild
28 new file mode 100644
29 index 00000000..444dc27
30 --- /dev/null
31 +++ b/dev-lang/rust-bin/rust-bin-1.14.0.ebuild
32 @@ -0,0 +1,102 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +inherit eutils bash-completion-r1
40 +
41 +MY_P="rust-${PV}"
42 +
43 +DESCRIPTION="Systems programming language from Mozilla"
44 +HOMEPAGE="http://www.rust-lang.org/"
45 +SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
46 + x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
47 +
48 +LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
49 +SLOT="stable"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="doc"
52 +
53 +DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
54 + !dev-lang/rust:0
55 +"
56 +RDEPEND="${DEPEND}"
57 +
58 +QA_PREBUILT="
59 + opt/${P}/bin/rustc-bin-${PV}
60 + opt/${P}/bin/rustdoc-bin-${PV}
61 + opt/${P}/lib/*.so
62 + opt/${P}/lib/rustlib/*/lib/*.so
63 +"
64 +
65 +src_unpack() {
66 + default
67 +
68 + local postfix
69 + use amd64 && postfix=x86_64-unknown-linux-gnu
70 + use x86 && postfix=i686-unknown-linux-gnu
71 + mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
72 +}
73 +
74 +src_install() {
75 + local std=$(grep 'std' ./components)
76 + local components="rustc,${std}"
77 + use doc && components="${components},rust-docs"
78 + ./install.sh \
79 + --components="${components}" \
80 + --disable-verify \
81 + --prefix="${D}/opt/${P}" \
82 + --mandir="${D}/usr/share/${P}/man" \
83 + --disable-ldconfig \
84 + || die
85 +
86 + local rustc=rustc-bin-${PV}
87 + local rustdoc=rustdoc-bin-${PV}
88 + local rustgdb=rust-gdb-bin-${PV}
89 +
90 + mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
91 + mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
92 + mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
93 +
94 + dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
95 + dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
96 + dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
97 +
98 + cat <<-EOF > "${T}"/50${P}
99 + LDPATH="/opt/${P}/lib"
100 + MANPATH="/usr/share/${P}/man"
101 + EOF
102 + doenvd "${T}"/50${P}
103 +
104 + cat <<-EOF > "${T}/provider-${P}"
105 + /usr/bin/rustdoc
106 + /usr/bin/rust-gdb
107 + EOF
108 + dodir /etc/env.d/rust
109 + insinto /etc/env.d/rust
110 + doins "${T}/provider-${P}"
111 +}
112 +
113 +pkg_postinst() {
114 + eselect rust update --if-unset
115 +
116 + elog "Rust installs a helper script for calling GDB now,"
117 + elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
118 +
119 + if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
120 + elog "install app-emacs/rust-mode to get emacs support for rust."
121 + fi
122 +
123 + if has_version app-editors/gvim || has_version app-editors/vim; then
124 + elog "install app-vim/rust-vim to get vim support for rust."
125 + fi
126 +
127 + if has_version 'app-shells/zsh'; then
128 + elog "install app-shells/rust-zshcomp to get zsh completion for rust."
129 + fi
130 +}
131 +
132 +pkg_postrm() {
133 + eselect rust unset --if-invalid
134 +}