1 |
commit: 87cfc5fea23ab2d75e290c8e86b7202b5905644d |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 26 22:05:54 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 26 22:06:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87cfc5fe |
7 |
|
8 |
dev-lang/rust-bin: bump to 1.38.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
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.38.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 a10db59cc2f..2c7f675cd1a 100644 |
19 |
--- a/dev-lang/rust-bin/Manifest |
20 |
+++ b/dev-lang/rust-bin/Manifest |
21 |
@@ -50,3 +50,16 @@ DIST rust-1.37.0-powerpc64-unknown-linux-gnu.tar.xz 128662180 BLAKE2B 0df1def64d |
22 |
DIST rust-1.37.0-powerpc64le-unknown-linux-gnu.tar.xz 131763436 BLAKE2B 76b9120e98da09344ce5af39a9b333c6ca8917516ae7108d6cc129fdda4d4d6c21e2ca4c41533e202f63b992bcede5390ec986a262ea216c1340a82c5ba798e8 SHA512 366c8920448000bfb4baa3a47588a1c7bc81e18afb8d40f0efc824e429e9e6900efbdb4c9003fb45b9d8595328bd612bd63f390a7d3dedbb30b7dc57fc12abf3 |
23 |
DIST rust-1.37.0-s390x-unknown-linux-gnu.tar.xz 141808296 BLAKE2B 73825a004be81cca4dfff1301ea0ef45c9f55ab8d9a9a0343585377d83c4bdc03d3c027622f18e144c9355afe6f5236a6273f84b43b01a221066d3c395f71017 SHA512 14f403d3ce9df2a2baba1db13c9f039d7118d7e0c8285ca19ea0284c32e80c3f786660dedef4d1758b2227f91732b8e7deccbf3f38c2b3491738c1408d6bfd0e |
24 |
DIST rust-1.37.0-x86_64-unknown-linux-gnu.tar.xz 165034364 BLAKE2B 3047fff28da00e01179d3a648cb4e5636fa15ac7f4cb9ddc14e1df86d045b69ff3e41691b4a6ef4227c4cb58137524c5e029ba21a2c3a3a171fdb6f46b44f4ff SHA512 c4d48aa12cb929d6600f9cce81bb612c504aa1b3b3f8e76352af3a76b737dcbe0d31e8d139c17884b11aef9f12a55c4908fb8f3ff63dfa92533e4bd0a729914f |
25 |
+DIST rust-1.38.0-aarch64-unknown-linux-gnu.tar.xz 235231988 BLAKE2B 03ee6ab2c928134f8dd7e5812b60185b934c2f792b64d6271bff4fb714a9acd0f52a6aee291cc22e7f263cb52173568f5ccfb36edd0eb0dbcd567240beeb1372 SHA512 c9dea8907d05af938c1936139c1fb8673d0db90503552f53645d71637bb7248263fd20b1c16db140694b2d467a12c474015a2077d9b26c782b44e965a01544c6 |
26 |
+DIST rust-1.38.0-arm-unknown-linux-gnueabi.tar.xz 241780224 BLAKE2B ec362bc67d7b4f3e3d4ba2e19b46af61322b3f8284bf7fd66ac1eb006975c6d6aaa12be8b827147ac8ab42cc11d6c540161fc15c8233a2943a078ce89a300c17 SHA512 4ea00aa2b8bccae4fb595c687058af0c82905cbeef93b3d90f5224657bec0f269d0e75af2be6b97b2043442190dbe2df4aeacfafd6cc8916b0fe2ef28908e987 |
27 |
+DIST rust-1.38.0-arm-unknown-linux-gnueabihf.tar.xz 242107656 BLAKE2B 9c43dbe34d99925f34cec339adcedbf71d72515f08ac456293a17dc602ea027b90c552ef891908661f20c2ef07cd7915b9d8936206c65be9e8ae493c699e4265 SHA512 99726beb670af6411ed8dcfbd0eddbce3b964703492686226815f7c0a5c57fd3d0593925345d4f311cd9f5cb2eb9089e80cbb6c62ba767a901e5c5f099e6ebad |
28 |
+DIST rust-1.38.0-armv7-unknown-linux-gnueabihf.tar.xz 243411104 BLAKE2B 19c9f2daa81170822ec23049945500a2a6c7342d6c03d50627dcc11766f31b592c40773777583b04666c75320f3953404c55c0b5aa213d771136afb3c4638fa6 SHA512 ddbb2c8d2e7112c5871155890c8308080ac800795c685c4b4d06b9dd8c5abd28ee13961686c9be465d1bbd33d476c6478b90af8de0ca5a451f8b07eaff42f97d |
29 |
+DIST rust-1.38.0-i686-unknown-linux-gnu.tar.xz 298169160 BLAKE2B 93181072784885cbc23efe12e5511de9dcd564610169990e3d7617413a9073e06efa743b3c95d87fb3065c036ff4b4656e1d2a52571ca55b62a3364479fd87da SHA512 ffdea264378510c6df687a173211427f4cb5930553c9d14e33c5776b0e15d435d1be719bba8a1db50f50a3171a38802e090451dc92a6ea764cc8fdca24651f24 |
30 |
+DIST rust-1.38.0-mips-unknown-linux-gnu.tar.xz 242052876 BLAKE2B 323587aab4bb1d70795664efbc5ec61cf7dfc3d33f1e9831d6a2e0d591a4dc60c1d5bf305a4b7f767858ac33d296155c4baf8e2db23c48114f0ae72ba823ef83 SHA512 5bd8faff88ac35431087ee33520c92a52e64262774ea899d610137e51a71efa25403b1e026e509fc0593f6da65c68b561c051feadf482f0ee25875b526992109 |
31 |
+DIST rust-1.38.0-mips64-unknown-linux-gnuabi64.tar.xz 237741316 BLAKE2B d1f758013d53853d4713400e383cb443dae5187156a54ea39d4bd79f60b60e7322785613456a64c1d00e28b575ff528ba01d608cc234e23ead5156ac855b1ad0 SHA512 05884f678b31d7af0f54d8d31ef6d09d1a3a3e9d6d5245583e4ef5a2db47c3aa9e4a226b55678077b759156e41473e8ff9fa8b12c21276882a0bcb53b45d5811 |
32 |
+DIST rust-1.38.0-mipsel-unknown-linux-gnu.tar.xz 244454148 BLAKE2B a20f2ad0bcbf52e61a997271147161c7eed0dadd795ed16d2f0078924b8be9d132f464d5eefbe9c41a1cdb5ae18005e8d82b3b5ef703d5a7a86e4f940b847bcb SHA512 3eed9fa45a8a9e5f67282053933375f862860f6a68032a62fcd286ec39276610914689c83d9bd95302d15d61433304e2aca6f10b87d7eb762950f7574379e426 |
33 |
+DIST rust-1.38.0-powerpc-unknown-linux-gnu.tar.xz 239750464 BLAKE2B 202475f8035504a3d8a81b498c4461cbe4a25d29284dc504a5db2d52740ad8fb35dadbb83ac0fbfce14cefed1209431c16e10a91608b6a90633d8c3a08e03ae4 SHA512 3cc93f76a2e2defdfeb4c18b84a3c950716bdb6fe68446d4dd97d6b5a0ad53b2fc5e97f220a5f205ab07428f5d5a048a3a9de36f90d9685be8551b4be3188a36 |
34 |
+DIST rust-1.38.0-powerpc64-unknown-linux-gnu.tar.xz 240082008 BLAKE2B d15d508397cb4e7b8b8fdd13d6825e05d093b90250c8e261f86fd4588f1f338489c725506b3a1db8bc7a3b2df4979f18854d360ec2de6580e411572d216c1a59 SHA512 26240976834e510fa5a47c35b747b42db4651ea8decdb5498704432c9a21563e603046994fcc2b070d06361bf2c36fe02a15c7f02d88161b299a410f1995983a |
35 |
+DIST rust-1.38.0-powerpc64le-unknown-linux-gnu.tar.xz 244407488 BLAKE2B 79ca67230dc4d16518421f08554bbc0093f2423469426d1f6f0a925a7bd01b059875ce1a1af29a516dd1cff745524702a8f37e8cb9b43398a32eb78a55e0c3ca SHA512 5f3e1dd233ef17d8a296dcb55738fa119e40c32b154a7575f149bf1475b64e34f7e805f206b9862dc6499be470f179290d8abb7ad8d2b5cb355cef03d95ae374 |
36 |
+DIST rust-1.38.0-s390x-unknown-linux-gnu.tar.xz 291685528 BLAKE2B 1d7678b68c5296fed276eb10a07ffd906cfe569b93b6872872c8aae10fa6f30f0ef4023e55256ee8d2e9f6935fc3391421f0f7758aaad60a0dac15b34074fcbc SHA512 7af64849236e0173d2aea723f3462682fde7d2e1e04d61c28d215163415e1b15cfb8cac57010ce55bdd928ea74076506ef50376d7550999e0fb00f9d20c4f5ff |
37 |
+DIST rust-1.38.0-x86_64-unknown-linux-gnu.tar.xz 279859784 BLAKE2B 40dab0ac1e800d7c095052800505220019154d40741d7c8872932948d5df62863fe9d1e43596a43411e959c2ddc4fb8d9b4e74525aa1a35352efec781054fc37 SHA512 0b25c3049a7a213e9151c898979ec9b5b45e46a9072f9853d8f048cf401ef7ac343526d6919e68607a490e3e7bd0375b12ed9fb253caed26bb60f46473d3699b |
38 |
|
39 |
diff --git a/dev-lang/rust-bin/rust-bin-1.38.0.ebuild b/dev-lang/rust-bin/rust-bin-1.38.0.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..180b335fff9 |
42 |
--- /dev/null |
43 |
+++ b/dev-lang/rust-bin/rust-bin-1.38.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 |
+} |