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: Wed, 14 Nov 2018 16:16:43
Message-Id: 1542212182.be62941af158204626112a6bfcd8dbde9b9b7436.djc@gentoo
1 commit: be62941af158204626112a6bfcd8dbde9b9b7436
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 14 16:14:31 2018 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 14 16:16:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be62941a
7
8 dev-lang/rust-bin: version bump to 1.30.1
9
10 Signed-off-by: Dirkjan Ochtman <djc <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-lang/rust-bin/Manifest | 13 +++
14 dev-lang/rust-bin/rust-bin-1.30.1.ebuild | 145 +++++++++++++++++++++++++++++++
15 2 files changed, 158 insertions(+)
16
17 diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
18 index aa3305c60d3..961c1354640 100644
19 --- a/dev-lang/rust-bin/Manifest
20 +++ b/dev-lang/rust-bin/Manifest
21 @@ -17,3 +17,16 @@ DIST rust-1.29.2-powerpc64-unknown-linux-gnu.tar.xz 103432092 BLAKE2B ed700d2987
22 DIST rust-1.29.2-powerpc64le-unknown-linux-gnu.tar.xz 106607384 BLAKE2B de19f341dcc1cc580e68865d3b0034f781ed4ca0ac1b07c89352409684670c7d0fd5c95ea6018fc7de4fbfacf4f7d0ebeec34c036c0062ca7f776403511df7dd SHA512 b9181da601a467f46713f2f438fc7ad69c46fc310e62a8d45f665744c8578491d832b8624ff454c19c94f1694fa406846a82289250241030a70b2cb4b88913d1
23 DIST rust-1.29.2-s390x-unknown-linux-gnu.tar.xz 99114900 BLAKE2B 08e9251bd8e9c9ac6352ab81735b720052b3288b5fd344f6ba69205c7971f362270f0acce7dbd3763b20d3b1e976ff5404151253acb9c29708f36038d23299f1 SHA512 f76a030257edbdd993d7a4e83da895c8b4749904fb2252a125b3e4ef4331a1cb2c389ec54a372bea413718e3dad987e4b17eb29d301c29ba330222502e6b9b75
24 DIST rust-1.29.2-x86_64-unknown-linux-gnu.tar.xz 148275708 BLAKE2B bd7c974f5c8cf78a1fbfc73544ecdab97b7f9ab28ed9ab66759eca3e0fa085fdb2689ba5dfc6dccc6746bab91b6b0b544c44cb729e493dddde2f9ed84c96a247 SHA512 8bc05942a72b186ea1765831bea6921f734e2dd58790a8e427a6d63a2db0d9064937d3198ca3febffeba73b1cc3bef716155ef6cb32127ddeef29ac884cde4b8
25 +DIST rust-1.30.1-aarch64-unknown-linux-gnu.tar.xz 114223904 BLAKE2B ca3f93d8cb59f5ecc8680ab018f8666a5c0df1bf671af4220c39178a946ce77a05588d91709facd42a1d693120c46c472c4d6dc0b6a5e7d3330b9f0807ff3fcc SHA512 5fb9cb0281cd76b1995bcd6c4dd824f8a4d4c1ffc61a0a54f62b45340b98a7b41cf5ec3d4a8ec370c2603c14f9dc5451ae1a47ea96ebbd520770dfd22cf0ffdc
26 +DIST rust-1.30.1-arm-unknown-linux-gnueabi.tar.xz 120865688 BLAKE2B 18934c592882ad3608b82ab9aac68412790d02c148c2af0a37a5027ebe059ff697a8556c4dcbf0ac5cf37c6fbd37c51abbf88a3f0ce274742ff1d7ec94f96f04 SHA512 871e0b036273ec62e28712fe1d5d1c74b061eabb59f9cc852e8924df1aaa3797af28d51dde643010920321fa71382ddd70f2d97d25c06999d5663f5209ffc6b7
27 +DIST rust-1.30.1-arm-unknown-linux-gnueabihf.tar.xz 121114868 BLAKE2B 6410c16e3019b67d2e299b06527db6d7291a1426c4606012234bd8e93b3e3738dda5907aa6d9e48ac25f2a7e06a441f7e42095ec81de01408c235577e0df2df5 SHA512 73ac63f81a86b70ea0378e859b6a913f3f6e2044f1ddcb056c53a18d3f32011a47abf29bf2a84f3a9d6732bec348741662448104e320bcaebf2a3667209fcedb
28 +DIST rust-1.30.1-armv7-unknown-linux-gnueabihf.tar.xz 122390768 BLAKE2B 39c38b9bf96e94023b9c6d81fce8c341e789f182b59bf1b540a6d22be24e0498c638d0d3aa1433f49e52048795f91f5f4ca707dd8fcb998ea51caa932537b74e SHA512 88f9f23f431cc34d6b7ddc51c2321905df03dc714aab0b3a5e067390de5092b472f8092ba25a5c09666ad9b138efc2f4b625ca86dbe10ddeea213b8e9d70c9b3
29 +DIST rust-1.30.1-i686-unknown-linux-gnu.tar.xz 143689500 BLAKE2B 0b654570e295c785b074625c8fe7649e1841327fba790e38e08e912ad0602440e08a205318e637c903989bd19bab4c0a726583f2ab457d75ff71e96524251aa0 SHA512 66c56107fd8c83f9c1948137aee09c67633f6f472823696719a22b5f0b0e28925b0a6b6545b8fe4d741b8473ddc49db30fe112fc5b0e6fc63439901ff5462a86
30 +DIST rust-1.30.1-mips-unknown-linux-gnu.tar.xz 112662912 BLAKE2B ded8631f76ac5fc16cae298f5a7afdb8c451ff95af03c827959bd19484d513066ac387e956577f5ee42369fc5d68c1e2cbf4cfc72c364739eea31643844ba936 SHA512 8a1681f054a57d62050a2d11ae3109e7be4f6638319b059d10612f0be073de63f2dffea79bb29452763fad8a64274367d9bbe5ca0636e78c34a6cdce542118a0
31 +DIST rust-1.30.1-mips64-unknown-linux-gnuabi64.tar.xz 117355424 BLAKE2B fcc583d99a6b17e1d38d26a48d39768b09c52e6a6fa3cd36d9513bd9385fd4560d06c3a737b69c396b5bb465ae261321dbbaf7bda4378d7e4be165bc889d8b2d SHA512 c18cd513021753d2b8e1a9ea2bf0bd73817e2c81dcf246993b52c7055b3b18d9f20c935dec4281acbd2792a6964dbfb0c05b5cb2075703aaa444352ef8f06d50
32 +DIST rust-1.30.1-mipsel-unknown-linux-gnu.tar.xz 114622708 BLAKE2B 5d62f6744cb1bf69d7047bb18e246623ee98c94bfa083fd5269bdcf8dd1c2c0824747dd641f703931f0b22fd513ee8a65a4dec103bf479f6a00e72098541a1aa SHA512 3d084c5c986ba379a3213c9662bc6a0e24c9d3a1c4ae4e28c3f807841eacb15dd8fb42bcb190967ba4a9e8e5397b63e6bbd3990bd9826d52a127bd71ac5b361e
33 +DIST rust-1.30.1-powerpc-unknown-linux-gnu.tar.xz 110375696 BLAKE2B 6ffa7b6b7ae569c7ebf6b0ab43287421e4a5e2ea8654638902e61df42f7e3de7f14c14f2e585d7b3e140f2ebc7a0e1149b814fd5a6d6c0374f9d8059ff3369c3 SHA512 ebbd2c2b160e6e36a03eee205a333cddf0a36cd0ce42135a7e4119469be41b76cedda143cf9e9491ae0d9aaf65e2e927550e2e0358401fc5f657ee02b37959b4
34 +DIST rust-1.30.1-powerpc64-unknown-linux-gnu.tar.xz 118698168 BLAKE2B 58905ab6c62d4b7fca8954fc507f9105537cdfc2a55a6585b4784a41ce721046c41606eae6066a173a548c4d065db497e187b2e8c9c6cbc0ee589e7731c8f106 SHA512 7eddabec2e1e01ddbc8c7b0c55f2753e506786867f78e79e47d4f273e7c02170caa24470e0f2ecf6c473cfc8c023e189017454e2ad0f3faa96465fdd22bdfd6d
35 +DIST rust-1.30.1-powerpc64le-unknown-linux-gnu.tar.xz 121569444 BLAKE2B d4d390ea24298cd88d224efe3c1a1dc3a802b678d977bc0aa26197e291547a6ca823a0fe5e35491204a649cb6a5419343a825ef32408aa2638d057b209b1c15c SHA512 b4595f031a006335ac778ec6a07c398fd6cce78ed3c0ed5730a5c06fa3a390dbab1afda0468756330783baa86dafb2f0c7ca7c75b735eb532c268027e22975e6
36 +DIST rust-1.30.1-s390x-unknown-linux-gnu.tar.xz 124025168 BLAKE2B b4a8df333b093ae111136a6b9005aca7f424f209d629041c4fce1efc7e19b176f6e6325bf3552e8de93faa311ebf065ad4b9f104de3ee412b2a3fda70156c2b0 SHA512 592764d3d5b4d8a2a7628f4969ba5204da4ea63ca92efc17d4f9339274fce00aecc4d1ebb1f4d0499da8559375ad205054b26e12775af622a7112b20b8c8d4fb
37 +DIST rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz 145148116 BLAKE2B e70d667d880656209c036b72f619b1bd29679878ff4b8865f0453c064c4a8a53a96e73994509637312032e1260eeb0e53f7372ca1526760b1631846ed6a4c571 SHA512 05238b65b5184e3df81dbcf1cc1035a03054ef09a8563fe60877e4f078d0d2cad71aec73c1451196171f39f8e729059e91c7eed7b1402e03801c0b7e81815885
38
39 diff --git a/dev-lang/rust-bin/rust-bin-1.30.1.ebuild b/dev-lang/rust-bin/rust-bin-1.30.1.ebuild
40 new file mode 100644
41 index 00000000000..14b883f5781
42 --- /dev/null
43 +++ b/dev-lang/rust-bin/rust-bin-1.30.1.ebuild
44 @@ -0,0 +1,145 @@
45 +# Copyright 1999-2018 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=6
49 +
50 +inherit eutils bash-completion-r1 rust-toolchain versionator toolchain-funcs
51 +
52 +MY_P="rust-${PV}"
53 +
54 +DESCRIPTION="Systems programming language from Mozilla"
55 +HOMEPAGE="https://www.rust-lang.org/"
56 +SRC_URI="$(rust_all_arch_uris ${MY_P})"
57 +
58 +LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
59 +SLOT="stable"
60 +KEYWORDS="~amd64 ~arm64 ~x86"
61 +IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
62 +
63 +DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
64 + !dev-lang/rust:0
65 + !dev-util/cargo
66 + rustfmt? ( !dev-util/rustfmt )
67 +"
68 +RDEPEND="${DEPEND}
69 + sys-libs/zlib
70 + !libressl? ( dev-libs/openssl:0= )
71 + libressl? ( dev-libs/libressl:0= )
72 + net-libs/libssh2
73 + net-misc/curl[ssl]"
74 +REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )"
75 +
76 +QA_PREBUILT="
77 + opt/${P}/bin/*-${PV}
78 + opt/${P}/lib/*.so
79 + opt/${P}/lib/rustlib/*/lib/*.so
80 + opt/${P}/lib/rustlib/*/lib/*.rlib*
81 +"
82 +
83 +pkg_pretend () {
84 + if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
85 + die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
86 + fi
87 +}
88 +
89 +src_unpack() {
90 + default
91 + mv "${WORKDIR}/${MY_P}-$(rust_abi)" "${S}" || die
92 +}
93 +
94 +src_install() {
95 + local std=$(grep 'std' ./components)
96 + local components="rustc,cargo,${std}"
97 + use doc && components="${components},rust-docs"
98 + use clippy && components="${components},clippy-preview"
99 + use rustfmt && components="${components},rustfmt-preview"
100 + ./install.sh \
101 + --components="${components}" \
102 + --disable-verify \
103 + --prefix="${D}/opt/${P}" \
104 + --mandir="${D}/usr/share/${P}/man" \
105 + --disable-ldconfig \
106 + || die
107 +
108 + local rustc=rustc-bin-${PV}
109 + local rustdoc=rustdoc-bin-${PV}
110 + local rustgdb=rust-gdb-bin-${PV}
111 + local rustlldb=rust-lldb-bin-${PV}
112 +
113 + mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
114 + mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
115 + mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
116 + mv "${D}/opt/${P}/bin/rust-lldb" "${D}/opt/${P}/bin/${rustlldb}" || die
117 +
118 + dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
119 + dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
120 + dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
121 + dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
122 +
123 + local cargo=cargo-bin-${PV}
124 + mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
125 + dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
126 + if use clippy; then
127 + local clippy_driver=clippy-driver-bin-${PV}
128 + local cargo_clippy=cargo-clippy-bin-${PV}
129 + mv "${D}/opt/${P}/bin/clippy-driver" "${D}/opt/${P}/bin/${clippy_driver}" || die
130 + mv "${D}/opt/${P}/bin/cargo-clippy" "${D}/opt/${P}/bin/${cargo_clippy}" || die
131 + dosym "../../opt/${P}/bin/${clippy_driver}" "/usr/bin/${clippy_driver}"
132 + dosym "../../opt/${P}/bin/${cargo_clippy}" "/usr/bin/${cargo_clippy}"
133 + fi
134 + if use rustfmt; then
135 + local rustfmt=rustfmt-bin-${PV}
136 + local cargo_fmt=cargo-fmt-bin-${PV}
137 + mv "${D}/opt/${P}/bin/rustfmt" "${D}/opt/${P}/bin/${rustfmt}" || die
138 + mv "${D}/opt/${P}/bin/cargo-fmt" "${D}/opt/${P}/bin/${cargo_fmt}" || die
139 + dosym "../../opt/${P}/bin/${rustfmt}" "/usr/bin/${rustfmt}"
140 + dosym "../../opt/${P}/bin/${cargo_fmt}" "/usr/bin/${cargo_fmt}"
141 + fi
142 +
143 + cat <<-EOF > "${T}"/50${P}
144 + LDPATH="/opt/${P}/lib"
145 + MANPATH="/usr/share/${P}/man"
146 + EOF
147 + doenvd "${T}"/50${P}
148 +
149 + cat <<-EOF > "${T}/provider-${P}"
150 + /usr/bin/rustdoc
151 + /usr/bin/rust-gdb
152 + /usr/bin/rust-lldb
153 + EOF
154 + echo /usr/bin/cargo >> "${T}/provider-${P}"
155 + if use clippy; then
156 + echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
157 + echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
158 + fi
159 + if use rustfmt; then
160 + echo /usr/bin/rustfmt >> "${T}/provider-${P}"
161 + echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
162 + fi
163 + dodir /etc/env.d/rust
164 + insinto /etc/env.d/rust
165 + doins "${T}/provider-${P}"
166 +}
167 +
168 +pkg_postinst() {
169 + eselect rust update --if-unset
170 +
171 + elog "Rust installs a helper script for calling GDB now,"
172 + elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
173 +
174 + if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
175 + elog "install app-emacs/rust-mode to get emacs support for rust."
176 + fi
177 +
178 + if has_version app-editors/gvim || has_version app-editors/vim; then
179 + elog "install app-vim/rust-vim to get vim support for rust."
180 + fi
181 +
182 + if has_version 'app-shells/zsh'; then
183 + elog "install app-shells/rust-zshcomp to get zsh completion for rust."
184 + fi
185 +}
186 +
187 +pkg_postrm() {
188 + eselect rust unset --if-invalid
189 +}