1 |
commit: e8796d0c8fe620ce781001cb9c666290b7ee2222 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 7 21:07:09 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 7 22:54:35 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8796d0c |
7 |
|
8 |
dev-lang/rust-bin: bump to 1.39.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-lang/rust-bin/Manifest | 13 +++ |
14 |
dev-lang/rust-bin/rust-bin-1.39.0.ebuild | 158 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 171 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest |
18 |
index 2c7f675cd1a..219dcb002f0 100644 |
19 |
--- a/dev-lang/rust-bin/Manifest |
20 |
+++ b/dev-lang/rust-bin/Manifest |
21 |
@@ -63,3 +63,16 @@ DIST rust-1.38.0-powerpc64-unknown-linux-gnu.tar.xz 240082008 BLAKE2B d15d508397 |
22 |
DIST rust-1.38.0-powerpc64le-unknown-linux-gnu.tar.xz 244407488 BLAKE2B 79ca67230dc4d16518421f08554bbc0093f2423469426d1f6f0a925a7bd01b059875ce1a1af29a516dd1cff745524702a8f37e8cb9b43398a32eb78a55e0c3ca SHA512 5f3e1dd233ef17d8a296dcb55738fa119e40c32b154a7575f149bf1475b64e34f7e805f206b9862dc6499be470f179290d8abb7ad8d2b5cb355cef03d95ae374 |
23 |
DIST rust-1.38.0-s390x-unknown-linux-gnu.tar.xz 291685528 BLAKE2B 1d7678b68c5296fed276eb10a07ffd906cfe569b93b6872872c8aae10fa6f30f0ef4023e55256ee8d2e9f6935fc3391421f0f7758aaad60a0dac15b34074fcbc SHA512 7af64849236e0173d2aea723f3462682fde7d2e1e04d61c28d215163415e1b15cfb8cac57010ce55bdd928ea74076506ef50376d7550999e0fb00f9d20c4f5ff |
24 |
DIST rust-1.38.0-x86_64-unknown-linux-gnu.tar.xz 279859784 BLAKE2B 40dab0ac1e800d7c095052800505220019154d40741d7c8872932948d5df62863fe9d1e43596a43411e959c2ddc4fb8d9b4e74525aa1a35352efec781054fc37 SHA512 0b25c3049a7a213e9151c898979ec9b5b45e46a9072f9853d8f048cf401ef7ac343526d6919e68607a490e3e7bd0375b12ed9fb253caed26bb60f46473d3699b |
25 |
+DIST rust-1.39.0-aarch64-unknown-linux-gnu.tar.xz 238165960 BLAKE2B c3e14a7b57d904d0882cb224e2390087cca5a3b4a6246e52e6d064c554721efe7b5542e694a3b6d2115f9914214a94200e0ff31008a5c8df1448b667b0fdb34e SHA512 ad37a8454acb8985a5c2b42d7f8bc4212651a16fb5af6b4314dd97faa47de79893f2f74b516af89cd7e77ef3db64247c4764585eb0a17ac328c9cba5e5b9c407 |
26 |
+DIST rust-1.39.0-arm-unknown-linux-gnueabi.tar.xz 244091604 BLAKE2B 9d09dbd18cfdad062705ee3c1726cee7d4c25dd9a739be451e1bcbd7e6d36316a113f93c0f8309bec3a825435d6245d195fd5da7b35fb51f2cf61f6f638c415d SHA512 1d51d47650cf11bf16b21df0b759de9ae23d96d4b14b5107f062bd240d02d5793542efbf0feaa09403cd35ca38af3e85f1abbd5083b645d40cdb1189d02a8099 |
27 |
+DIST rust-1.39.0-arm-unknown-linux-gnueabihf.tar.xz 244501036 BLAKE2B a6ea74a0249e9c7509e21d20b9c04e59af93f78dde92557b6d449fb51776fb6e31d5baa19419547d9baf10768423642a0489c828c5919c055981876ef2282603 SHA512 291d9963f67708b5b14f1f27bb9e7d374fcd7a5d24d932db02203aaf89d06db8178305eb18e4dcd56cce81dc5eb80d2fb019ca94a99c06b548f0588ae560b7ac |
28 |
+DIST rust-1.39.0-armv7-unknown-linux-gnueabihf.tar.xz 246114456 BLAKE2B e412273d164fae3f7c1702601a4f518b15acdd8f75746de7fa0af63a67a7873ce27b7e5bdf9d1354508ca0b0d20705dfd26659c6355a12c6a2cc59ad8d2a2a2a SHA512 db2b001a5587e2d5c8cdcb53c974f2332e76f58e362cba55fc971d7244754f1fa0b7e708ad7e73e7250652b442f06929dc1e8981536d7d76850b45ade275d406 |
29 |
+DIST rust-1.39.0-i686-unknown-linux-gnu.tar.xz 297665804 BLAKE2B 0024993e80174c0dd71c5f781ea466690fb18e3b760b11382613cad10e6112122d90c54b2a7451c049711c13e0f3da979bf8e8d2e79723e7a484352303bf0337 SHA512 930546e79c0b1105eb0604ae33ccdbd8b00b56e56d069f19f0d802093a052fd3f940eaf1390cdecd79833b0c70457ebfee2ce3b9674fff72df1367076584394a |
30 |
+DIST rust-1.39.0-mips-unknown-linux-gnu.tar.xz 242857808 BLAKE2B a2484913ce31ebae0be04f13dd24972a34206b00d5e141f3c5f8e43ab852547b149bc1002053276557d3dd18d231c2772d5817137fd7f615f155c742f0379af8 SHA512 ab9862a55fe0550c4d19c8fe4fa912661594b56f5f05b21c3ee660734a2d119b5b2dc70b9606af2ba91bd2911fe84c847480a828fb3f0a9d30132a70514d26d7 |
31 |
+DIST rust-1.39.0-mips64-unknown-linux-gnuabi64.tar.xz 238468588 BLAKE2B bb48de21d7a45ebb2464159b09974530572e08cf7adfee4d90b5280ed49867a591f9d3e21069868fecc14242649a9d68041baf07d9fb6c40ef8b3780ed8ab70f SHA512 93531394a9a8ed5edf3853f0d5c8faa795982e9c6a5a0a92832c2809c8baade736eafb8c0626ba6e543b05f693753c256b1d6290d5c41162d6129168ef1b5702 |
32 |
+DIST rust-1.39.0-mipsel-unknown-linux-gnu.tar.xz 246030532 BLAKE2B bfece8ee21b8bf0df389331ebbde98dc81810e4fb4c82e21c7fe2a85dcc27465f9a49e599bfdedf99a15cf479ff6c5baf27cc36e77afc90f281ac535ac0a92e0 SHA512 74536b1a1ce15f27ab8a1be7c9a7edb0638edf862c8f1464c98942287da1e7d64abec83be21634ddba2e88c0f9cf1456c000adc4360712aeab214ad87a44c9a7 |
33 |
+DIST rust-1.39.0-powerpc-unknown-linux-gnu.tar.xz 240597272 BLAKE2B a338ed495504d7aa290cfff3af37acc846b066921d0b84ae552ac4c127d24c645290098a711d3f2d17bf2a20f24356f24d67ece5aea7582dcc8a74cb6533209c SHA512 fa4ee683655d96c7ee1df12a39d50b1486c1e34cf4f10c09c6eecfb33b6f67b526dbcd02e1846d3e16db7103c04ee7f388a419ccfdf68ccc908b511b1fb8b7bd |
34 |
+DIST rust-1.39.0-powerpc64-unknown-linux-gnu.tar.xz 242170220 BLAKE2B 3a5ec3b57c3611efb97f4f849cea3519f0bf4f0dd92d135b82603b10d0f1fe3b2832194ee989e38134c75a9c98a1402fc14382d4976d4f34680fbbba8de279cf SHA512 ff99ad6b120631346af8afac092f8b620e50fb8e118ef1e0ff5668103c01f4b9f082fae72e31a767be35d0647fd9fecc7e6b7b215bb1906e06b20bf3e2685619 |
35 |
+DIST rust-1.39.0-powerpc64le-unknown-linux-gnu.tar.xz 247026740 BLAKE2B 90269aa78eded26c7d54c2e38a08af5f2a5cc3bfb86c268a12050315ba48f232f324b1fcc8e4abae49489cfd9df83edf6d04424ba14fb77f15daea1f6b5c242e SHA512 e15585150370514e580e171faa749218aeef04ce0493f5ad3928a0cb6cd0bddbf7c75ba8ed0783a2c954bbd7166e0445b4c33be4ab48479b0104f032b3d4b0af |
36 |
+DIST rust-1.39.0-s390x-unknown-linux-gnu.tar.xz 298119784 BLAKE2B 82f64163929c129e2aaee8909401c4f302496f63f8d9d366d6f7460b4546d7657ea38bcd864ecd0f58a5995e47f7f5890e4523dcbcbc51e3bf4085536b07de5f SHA512 d2b588f802d4fbe153dbd88cb745d34d1f5434cb3134cc9e091ebfb336a48b4c886cd80311cf92b5e1c6a16374302853a67e8a0576b02a89dbcf61d27919a045 |
37 |
+DIST rust-1.39.0-x86_64-unknown-linux-gnu.tar.xz 284967620 BLAKE2B c5d2c2a11c4f66105ece51e7ca45ca6a9e0d70215f94ce52f6e61b20995ceb611e45bad1e5e9f33fd444bb0a58a2edb691f1a65a1caf36ad892c034e00104383 SHA512 02ca6c821877379d8bd0bcc38281a87e6f86bdbae1270da19e41336cc3a812d9c11c1e976655c192c39153f92cda90ddbd7b4b0bcb4f6787d6d354d2be827a8a |
38 |
|
39 |
diff --git a/dev-lang/rust-bin/rust-bin-1.39.0.ebuild b/dev-lang/rust-bin/rust-bin-1.39.0.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..180b335fff9 |
42 |
--- /dev/null |
43 |
+++ b/dev-lang/rust-bin/rust-bin-1.39.0.ebuild |
44 |
@@ -0,0 +1,158 @@ |
45 |
+# Copyright 1999-2019 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=7 |
49 |
+ |
50 |
+inherit bash-completion-r1 rust-toolchain 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 ~ppc64 ~x86" |
61 |
+IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt" |
62 |
+ |
63 |
+DEPEND="" |
64 |
+RDEPEND=">=app-eselect/eselect-rust-20190311 |
65 |
+ sys-libs/zlib |
66 |
+ !libressl? ( dev-libs/openssl:0= ) |
67 |
+ libressl? ( dev-libs/libressl:0= ) |
68 |
+ net-libs/libssh2 |
69 |
+ net-misc/curl[ssl] |
70 |
+ !dev-lang/rust:0 |
71 |
+ !dev-util/cargo |
72 |
+ rustfmt? ( !dev-util/rustfmt )" |
73 |
+REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )" |
74 |
+ |
75 |
+QA_PREBUILT=" |
76 |
+ opt/${P}/bin/*-${PV} |
77 |
+ opt/${P}/lib/*.so |
78 |
+ opt/${P}/lib/rustlib/*/bin/* |
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="${ED}/opt/${P}" \ |
104 |
+ --mandir="${ED}/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 rustgdbgui=rust-gdbgui-bin-${PV} |
112 |
+ local rustlldb=rust-lldb-bin-${PV} |
113 |
+ |
114 |
+ mv "${ED}/opt/${P}/bin/rustc" "${ED}/opt/${P}/bin/${rustc}" || die |
115 |
+ mv "${ED}/opt/${P}/bin/rustdoc" "${ED}/opt/${P}/bin/${rustdoc}" || die |
116 |
+ mv "${ED}/opt/${P}/bin/rust-gdb" "${ED}/opt/${P}/bin/${rustgdb}" || die |
117 |
+ mv "${ED}/opt/${P}/bin/rust-gdbgui" "${ED}/opt/${P}/bin/${rustgdbgui}" || die |
118 |
+ mv "${ED}/opt/${P}/bin/rust-lldb" "${ED}/opt/${P}/bin/${rustlldb}" || die |
119 |
+ |
120 |
+ dosym "${rustc}" "/opt/${P}/bin/rustc" |
121 |
+ dosym "${rustdoc}" "/opt/${P}/bin/rustdoc" |
122 |
+ dosym "${rustgdb}" "/opt/${P}/bin/rust-gdb" |
123 |
+ dosym "${rustgdbgui}" "/opt/${P}/bin/rust-gdbgui" |
124 |
+ dosym "${rustlldb}" "/opt/${P}/bin/rust-lldb" |
125 |
+ |
126 |
+ dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" |
127 |
+ dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" |
128 |
+ dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}" |
129 |
+ dosym "../../opt/${P}/bin/${rustgdbgui}" "/usr/bin/${rustgdbgui}" |
130 |
+ dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}" |
131 |
+ |
132 |
+ local cargo=cargo-bin-${PV} |
133 |
+ mv "${ED}/opt/${P}/bin/cargo" "${ED}/opt/${P}/bin/${cargo}" || die |
134 |
+ dosym "${cargo}" "/opt/${P}/bin/cargo" |
135 |
+ dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}" |
136 |
+ |
137 |
+ if use clippy; then |
138 |
+ local clippy_driver=clippy-driver-bin-${PV} |
139 |
+ local cargo_clippy=cargo-clippy-bin-${PV} |
140 |
+ mv "${ED}/opt/${P}/bin/clippy-driver" "${ED}/opt/${P}/bin/${clippy_driver}" || die |
141 |
+ mv "${ED}/opt/${P}/bin/cargo-clippy" "${ED}/opt/${P}/bin/${cargo_clippy}" || die |
142 |
+ dosym "${clippy_driver}" "/opt/${P}/bin/clippy-driver" |
143 |
+ dosym "${cargo_clippy}" "/opt/${P}/bin/cargo-clippy" |
144 |
+ dosym "../../opt/${P}/bin/${clippy_driver}" "/usr/bin/${clippy_driver}" |
145 |
+ dosym "../../opt/${P}/bin/${cargo_clippy}" "/usr/bin/${cargo_clippy}" |
146 |
+ fi |
147 |
+ if use rustfmt; then |
148 |
+ local rustfmt=rustfmt-bin-${PV} |
149 |
+ local cargo_fmt=cargo-fmt-bin-${PV} |
150 |
+ mv "${ED}/opt/${P}/bin/rustfmt" "${ED}/opt/${P}/bin/${rustfmt}" || die |
151 |
+ mv "${ED}/opt/${P}/bin/cargo-fmt" "${ED}/opt/${P}/bin/${cargo_fmt}" || die |
152 |
+ dosym "${rustfmt}" "/opt/${P}/bin/rustfmt" |
153 |
+ dosym "${cargo_fmt}" "/opt/${P}/bin/cargo-fmt" |
154 |
+ dosym "../../opt/${P}/bin/${rustfmt}" "/usr/bin/${rustfmt}" |
155 |
+ dosym "../../opt/${P}/bin/${cargo_fmt}" "/usr/bin/${cargo_fmt}" |
156 |
+ fi |
157 |
+ |
158 |
+ cat <<-EOF > "${T}"/50${P} |
159 |
+ LDPATH="/opt/${P}/lib" |
160 |
+ MANPATH="/usr/share/${P}/man" |
161 |
+ EOF |
162 |
+ doenvd "${T}"/50${P} |
163 |
+ |
164 |
+ # note: eselect-rust adds EROOT to all paths below |
165 |
+ cat <<-EOF > "${T}/provider-${P}" |
166 |
+ /usr/bin/rustdoc |
167 |
+ /usr/bin/rust-gdb |
168 |
+ /usr/bin/rust-gdbgui |
169 |
+ /usr/bin/rust-lldb |
170 |
+ EOF |
171 |
+ echo /usr/bin/cargo >> "${T}/provider-${P}" |
172 |
+ if use clippy; then |
173 |
+ echo /usr/bin/clippy-driver >> "${T}/provider-${P}" |
174 |
+ echo /usr/bin/cargo-clippy >> "${T}/provider-${P}" |
175 |
+ fi |
176 |
+ if use rustfmt; then |
177 |
+ echo /usr/bin/rustfmt >> "${T}/provider-${P}" |
178 |
+ echo /usr/bin/cargo-fmt >> "${T}/provider-${P}" |
179 |
+ fi |
180 |
+ dodir /etc/env.d/rust |
181 |
+ insinto /etc/env.d/rust |
182 |
+ doins "${T}/provider-${P}" |
183 |
+} |
184 |
+ |
185 |
+pkg_postinst() { |
186 |
+ eselect rust update --if-unset |
187 |
+ |
188 |
+ elog "Rust installs a helper script for calling GDB now," |
189 |
+ elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}," |
190 |
+ |
191 |
+ if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
192 |
+ elog "install app-emacs/rust-mode to get emacs support for rust." |
193 |
+ fi |
194 |
+ |
195 |
+ if has_version app-editors/gvim || has_version app-editors/vim; then |
196 |
+ elog "install app-vim/rust-vim to get vim support for rust." |
197 |
+ fi |
198 |
+} |
199 |
+ |
200 |
+pkg_postrm() { |
201 |
+ eselect rust cleanup |
202 |
+} |