Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust-bin/
Date: Tue, 13 Oct 2020 04:02:58
Message-Id: 1602561673.475318d2e214aa6b2b991c5a165b4578a6be321f.gyakovlev@gentoo
1 commit: 475318d2e214aa6b2b991c5a165b4578a6be321f
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 13 03:36:32 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 13 04:01:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=475318d2
7
8 dev-lang/rust-bin: drop old
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 dev-lang/rust-bin/Manifest | 14 ---
14 dev-lang/rust-bin/rust-bin-1.44.1.ebuild | 187 -------------------------------
15 2 files changed, 201 deletions(-)
16
17 diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
18 index 6d2359d0d37..793f47cabc4 100644
19 --- a/dev-lang/rust-bin/Manifest
20 +++ b/dev-lang/rust-bin/Manifest
21 @@ -1,17 +1,3 @@
22 -DIST rust-1.44.1-aarch64-unknown-linux-gnu.tar.xz 101259004 BLAKE2B c00274660698c5e980a6fe28839f96783989bc5f102025a5e2b63466928f697afc3c70ff8efd00b525ea4b88823585e801690e6c05b246abf5600af80f911a07 SHA512 97a67addb5995f504d7326a500d1b40c52cc6e6e6f6e946adabcf825ce9b64272232a24bc30ce36e3ea63ccda4b980f3b7b61b0e88a8554f021b731ad79a35f1
23 -DIST rust-1.44.1-arm-unknown-linux-gnueabi.tar.xz 107474900 BLAKE2B 1b21f28b12507cba83ede592670b715365b1ca1fa311dc70108404bc7fa199914716cf7e5560a682ccf4f37bfaf91357f547456a032b4914e75543fdb7e8e84f SHA512 5bb406cc999317a15988b434c3de53d11e3823359fd3dd798de8195fc2e7e7b32830c7cceb1cb7089f47b333346c42fd4153ba1b441799d89fa27207383b7043
24 -DIST rust-1.44.1-arm-unknown-linux-gnueabihf.tar.xz 105267436 BLAKE2B 6e4c13028dc1751970b04b99db64be6e1ddbbc3b754318e3eabe03e7ae65031c4a5ed87582ec0ffa605a7ac69bee32c5fd48c6dcd84f298d73199a7f7d1c731f SHA512 fffadfc6d8317512ed50df97785a7d0094f59b9465ce5e762c45d6a3a484cdb3c04a72ac49c3d61abad898503378d841ed6abaa16a072aa6adc9069619e26a49
25 -DIST rust-1.44.1-armv7-unknown-linux-gnueabihf.tar.xz 109724880 BLAKE2B b53eb6441c18c98c12c6e181b499b7e482c9f4eb5e244f6a1fc694371800fe94ec15a9a60ee5e0695e488d3a9d925bc6ef946c23d084e01b43c2bc659874b713 SHA512 6a7bafba9c4d60bb13fac2a7683702352d3a04df24674f993952e9d872b9def47b5f8070925798343f5fd2f83775377ba2ddcf188b8500ec518fe44eb67483eb
26 -DIST rust-1.44.1-i686-unknown-linux-gnu.tar.xz 124915068 BLAKE2B 5de966d60f8e58e435e29aa63b906e117e7d73897ccdcfa692d0e582cf096c200b8c4f9a6ba76397f6ad29cfafaa4841503cf22764ac9517860bf46172539605 SHA512 fc6259c7b55a1ee457e444885c9604d2bcbe937833bdca9bb70fbfb230032c1e497ea04aa5edd761eefe5b48d34928998c6935563e76c82eccb7a03b1d5aaa45
27 -DIST rust-1.44.1-mips-unknown-linux-gnu.tar.xz 94537064 BLAKE2B 39a829ad9cea0303599cf8de2654f5fc7291af0a41d03c72cc0f1472162347b7ebf4a2cb7b2ad6e64bbca3b7d39ac7d2843d16a9ad205b8b14be48139b84b34f SHA512 e2284a0cfe38b85e41e5c712ca89b2099617a8836695628c509075772d23314b234730bcbeae060c1fc664bf193286493dcd546f672a6053428304e099acd41d
28 -DIST rust-1.44.1-mips64-unknown-linux-gnuabi64.tar.xz 102649752 BLAKE2B bc57e6a532c7806b6e302ab31f2dde7b88496bbadfec7185b8c389fa9cfd4a2baf18dccfe4c1b69d0914b7f481813dc4db72ad5944a9d67000493122228505bf SHA512 ef69913b8f448a41b3454bfda2e120ae58233349b215b9419e6f0bf6e41528521cd7904b02c97ed55fef029c7687d8cf9d3ce21fbd09ef771e961e24d3f2547f
29 -DIST rust-1.44.1-mipsel-unknown-linux-gnu.tar.xz 100002200 BLAKE2B 5befcaab66a965dd9c2dcc5636050099a461270d70102a0a1c489c3a1b721c432d337dec514b685f2710ea4c9e4fe2b9250cd88c55034c82da9b970b8ebdedb6 SHA512 4fef660c68a265da12863b07bcaa1f0fc19d4e377e2404c504047ea1f407e9b47f29f8947f707cfb0fc75216fa44d123c86ed07e261db70d48017cf93b54dfdb
30 -DIST rust-1.44.1-powerpc-unknown-linux-gnu.tar.xz 97722508 BLAKE2B 98a9ae4dc0c0df087bee8bd5c875e63a54b2ca71465386e19f425a9c35108abe9f04b222ef51f8cbeba3d781ae85f9fb4c612b86f263773ff868ae24866c7df7 SHA512 011dcbdfc8847f6a6004349665207ba89ec84a37d649c082588a1256ff992e374f4bad3d1930270a89d35c2386a16c18be301725b44e46dcc8501f0a98d761f5
31 -DIST rust-1.44.1-powerpc64-unknown-linux-gnu.tar.xz 107393564 BLAKE2B e3c2d6ae58585e020c4d1129ce26b19441b7f7e5df14d80290855f2931febdf4d2b4c30c4bcdc1747b61b4d1263194777ef7193bdc7c7dc4ce3eab91b137f0a0 SHA512 ff6b96b34b9b7dff362f6f2dcdf3b55fe7f2f349692434de5a11b8ca9956e06dbc6531c2457b4d43d5d19851ecbdbb0108e9f7eb449d9c965ed308ddbd0775a2
32 -DIST rust-1.44.1-powerpc64le-unknown-linux-gnu.tar.xz 112429740 BLAKE2B 10252623cd291c0e95238ac038544b989d94affd2edf173dce4f10847910aaabec99f8574f3141d4af4115ab6e9ed0536b87c8e8c6c899641e585efc9a3c516d SHA512 cf54b52581d393c2694fbefab90c62aa1f57ece8b200bfd656000950005554fda6fc0145af3aca0c526b8e43b100b8efe632929b6c0c1a4c4f4ce6dde4097283
33 -DIST rust-1.44.1-s390x-unknown-linux-gnu.tar.xz 119312728 BLAKE2B f5e3209990d3cc0181a200448e4bcbf1f6754847cfc36d7355e191fd49e239d3e0c002310743fd063241c5dec47da3a0776c361241facbcc4a1f1e9254eb805d SHA512 84c6ed736bb7d0c10aaceeb2c2c3c97f6188fd7d7f4466c8ef35ffc591d6bde3b273a0d62d50e60f184ccd81c96a31ed2e610e82fb9ed9efd574e4c5a5f25d26
34 -DIST rust-1.44.1-x86_64-unknown-linux-gnu.tar.xz 112133992 BLAKE2B c0af6bf1417bbb69be9f552f60805eb0a5f530b667ca2bbd04db9d567f1eb467a9e72912062a3c22d3922c29809258637dd7568c29e461dbeb5d17aa0699dd45 SHA512 540761fd5246f4a48a7606ac0220f0d61963473b57ef703696871dc23fda8154d45351b8e81018d15899c386b44e43b05028cc797d495e9dc46f127fbea7f093
35 -DIST rust-1.44.1-x86_64-unknown-linux-musl.tar.xz 117456616 BLAKE2B fd2752cf867e1ff701e624caf602fe7a29b47c64e633508e91da1a1b2321f5531441b84cc9f0ad159ef399d38628d60e59f8b7a99e5427df928abceb24f937f2 SHA512 05ca3e07001746511c5fcb5122f487205ffaee771805b0219db018b350d67945f5ab4b0b2cf98b7e7832b53365e3932fef37506a65ecaaf624d0bb8d43cf8427
36 DIST rust-1.45.2-aarch64-unknown-linux-gnu.tar.xz 110433136 BLAKE2B e2aa575c71757ea54b361940ca0813728bc6ef63db491a6891c05ff91d6fb6e2bf49aaebd05daf648cf2ae07b5937e142ab26fd243665bbac202e1237b20900c SHA512 b4b3fb198bf85192563fb8b6017cf07f92b9c26d6e590efa9476aa878871839315db935e3353c664e635a229f17b0979bcfd31488e29e02ce0dc266d252b9e41
37 DIST rust-1.45.2-arm-unknown-linux-gnueabi.tar.xz 114729036 BLAKE2B 8169a3827e8192de80bb654a667bcaa01c5f1bb49f2882b781d7d46bd20d5531204a477317c743c772e6067b225b1a3f78d333e2864e4dfcadb18777618d2811 SHA512 ecd79ba14feed330f81555854a7eadd894b9926482a2aad376c1f04aee16df01a3d929ec071e69b0f531466bbe00021c902bbb6b0ea4374c8ea5e2941d09d806
38 DIST rust-1.45.2-arm-unknown-linux-gnueabihf.tar.xz 114488160 BLAKE2B 69ee32914d75a0d3f1e84bcf760177d5125e0d989b023cc8f5499c37894949d05b1d5e61340832d248b3a305ba1dcd670280a0e5ed0439984815e5c8e46b8d09 SHA512 e18e53016417ea0d9ae5bee90a3fcf75dc2b7b8b5dd0c71426e353b9ad162353bdb2dd1b071c63bf91342eb803a9eb7fdf348ef15d678d91e6d221a911a3770e
39
40 diff --git a/dev-lang/rust-bin/rust-bin-1.44.1.ebuild b/dev-lang/rust-bin/rust-bin-1.44.1.ebuild
41 deleted file mode 100644
42 index 83070baf70e..00000000000
43 --- a/dev-lang/rust-bin/rust-bin-1.44.1.ebuild
44 +++ /dev/null
45 @@ -1,187 +0,0 @@
46 -# Copyright 1999-2020 Gentoo Authors
47 -# Distributed under the terms of the GNU General Public License v2
48 -
49 -EAPI=7
50 -
51 -inherit bash-completion-r1 rust-toolchain toolchain-funcs multilib-minimal
52 -
53 -MY_P="rust-${PV}"
54 -
55 -DESCRIPTION="Systems programming language from Mozilla"
56 -HOMEPAGE="https://www.rust-lang.org/"
57 -SRC_URI="$(rust_all_arch_uris ${MY_P})"
58 -
59 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
60 -SLOT="stable"
61 -KEYWORDS="amd64 arm arm64 ppc64 x86"
62 -IUSE="clippy cpu_flags_x86_sse2 doc rls rustfmt"
63 -
64 -DEPEND=""
65 -RDEPEND=">=app-eselect/eselect-rust-20190311"
66 -
67 -REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )"
68 -
69 -QA_PREBUILT="
70 - opt/${P}/bin/*-${PV}
71 - opt/${P}/lib/*.so
72 - opt/${P}/lib/rustlib/*/bin/*
73 - opt/${P}/lib/rustlib/*/lib/*.so
74 - opt/${P}/lib/rustlib/*/lib/*.rlib*
75 -"
76 -
77 -pkg_pretend() {
78 - if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
79 - die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
80 - fi
81 -}
82 -
83 -src_unpack() {
84 - default
85 - mv "${WORKDIR}/${MY_P}-$(rust_abi)" "${S}" || die
86 -}
87 -
88 -multilib_src_install() {
89 - if multilib_is_native_abi; then
90 -
91 - # start native abi install
92 - pushd "${S}" >/dev/null || die
93 - local analysis std
94 - analysis="$(grep 'analysis' ./components)"
95 - 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 rls && components="${components},rls-preview,${analysis}"
100 - use rustfmt && components="${components},rustfmt-preview"
101 - ./install.sh \
102 - --components="${components}" \
103 - --disable-verify \
104 - --prefix="${ED}/opt/${P}" \
105 - --mandir="${ED}/opt/${P}/man" \
106 - --disable-ldconfig \
107 - || die
108 -
109 - local rustc=rustc-bin-${PV}
110 - local rustdoc=rustdoc-bin-${PV}
111 - local rustgdb=rust-gdb-bin-${PV}
112 - local rustgdbgui=rust-gdbgui-bin-${PV}
113 - local rustlldb=rust-lldb-bin-${PV}
114 -
115 - mv "${ED}/opt/${P}/bin/rustc" "${ED}/opt/${P}/bin/${rustc}" || die
116 - mv "${ED}/opt/${P}/bin/rustdoc" "${ED}/opt/${P}/bin/${rustdoc}" || die
117 - mv "${ED}/opt/${P}/bin/rust-gdb" "${ED}/opt/${P}/bin/${rustgdb}" || die
118 - mv "${ED}/opt/${P}/bin/rust-gdbgui" "${ED}/opt/${P}/bin/${rustgdbgui}" || die
119 - mv "${ED}/opt/${P}/bin/rust-lldb" "${ED}/opt/${P}/bin/${rustlldb}" || die
120 -
121 - dosym "${rustc}" "/opt/${P}/bin/rustc"
122 - dosym "${rustdoc}" "/opt/${P}/bin/rustdoc"
123 - dosym "${rustgdb}" "/opt/${P}/bin/rust-gdb"
124 - dosym "${rustgdbgui}" "/opt/${P}/bin/rust-gdbgui"
125 - dosym "${rustlldb}" "/opt/${P}/bin/rust-lldb"
126 -
127 - dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
128 - dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
129 - dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
130 - dosym "../../opt/${P}/bin/${rustgdbgui}" "/usr/bin/${rustgdbgui}"
131 - dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
132 -
133 - local cargo=cargo-bin-${PV}
134 - mv "${ED}/opt/${P}/bin/cargo" "${ED}/opt/${P}/bin/${cargo}" || die
135 - dosym "${cargo}" "/opt/${P}/bin/cargo"
136 - dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
137 -
138 - if use clippy; then
139 - local clippy_driver=clippy-driver-bin-${PV}
140 - local cargo_clippy=cargo-clippy-bin-${PV}
141 - mv "${ED}/opt/${P}/bin/clippy-driver" "${ED}/opt/${P}/bin/${clippy_driver}" || die
142 - mv "${ED}/opt/${P}/bin/cargo-clippy" "${ED}/opt/${P}/bin/${cargo_clippy}" || die
143 - dosym "${clippy_driver}" "/opt/${P}/bin/clippy-driver"
144 - dosym "${cargo_clippy}" "/opt/${P}/bin/cargo-clippy"
145 - dosym "../../opt/${P}/bin/${clippy_driver}" "/usr/bin/${clippy_driver}"
146 - dosym "../../opt/${P}/bin/${cargo_clippy}" "/usr/bin/${cargo_clippy}"
147 - fi
148 - if use rls; then
149 - local rls=rls-bin-${PV}
150 - mv "${ED}/opt/${P}/bin/rls" "${ED}/opt/${P}/bin/${rls}" || die
151 -
152 - dosym "${rls}" "/opt/${P}/bin/rls"
153 - dosym "../../opt/${P}/bin/${rls}" "/usr/bin/${rls}"
154 - fi
155 - if use rustfmt; then
156 - local rustfmt=rustfmt-bin-${PV}
157 - local cargo_fmt=cargo-fmt-bin-${PV}
158 - mv "${ED}/opt/${P}/bin/rustfmt" "${ED}/opt/${P}/bin/${rustfmt}" || die
159 - mv "${ED}/opt/${P}/bin/cargo-fmt" "${ED}/opt/${P}/bin/${cargo_fmt}" || die
160 - dosym "${rustfmt}" "/opt/${P}/bin/rustfmt"
161 - dosym "${cargo_fmt}" "/opt/${P}/bin/cargo-fmt"
162 - dosym "../../opt/${P}/bin/${rustfmt}" "/usr/bin/${rustfmt}"
163 - dosym "../../opt/${P}/bin/${cargo_fmt}" "/usr/bin/${cargo_fmt}"
164 - fi
165 -
166 - cat <<-EOF > "${T}"/50${P}
167 - LDPATH="/opt/${P}/lib"
168 - MANPATH="/opt/${P}/man"
169 - EOF
170 - doenvd "${T}"/50${P}
171 -
172 - # note: eselect-rust adds EROOT to all paths below
173 - cat <<-EOF > "${T}/provider-${P}"
174 - /usr/bin/rustdoc
175 - /usr/bin/rust-gdb
176 - /usr/bin/rust-gdbgui
177 - /usr/bin/rust-lldb
178 - EOF
179 - echo /usr/bin/cargo >> "${T}/provider-${P}"
180 - if use clippy; then
181 - echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
182 - echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
183 - fi
184 - if use rls; then
185 - echo /usr/bin/rls >> "${T}/provider-${P}"
186 - fi
187 - if use rustfmt; then
188 - echo /usr/bin/rustfmt >> "${T}/provider-${P}"
189 - echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
190 - fi
191 -
192 - insinto /etc/env.d/rust
193 - doins "${T}/provider-${P}"
194 - popd >/dev/null || die
195 - #end native abi install
196 -
197 - else
198 - local rust_target
199 - rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
200 - dodir "/opt/${P}/lib/rustlib"
201 - cp -vr "${WORKDIR}/rust-${PV}-${rust_target}/rust-std-${rust_target}/lib/rustlib/${rust_target}"\
202 - "${ED}/opt/${P}/lib/rustlib" || die
203 - fi
204 -}
205 -
206 -pkg_postinst() {
207 - eselect rust update --if-unset
208 -
209 - elog "Rust installs a helper script for calling GDB now,"
210 - elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
211 -
212 - if has_version app-editors/emacs; then
213 - elog "install app-emacs/rust-mode to get emacs support for rust."
214 - fi
215 -
216 - if has_version app-editors/gvim || has_version app-editors/vim; then
217 - elog "install app-vim/rust-vim to get vim support for rust."
218 - fi
219 -
220 - if use elibc_musl; then
221 - ewarn "${PN} on *-musl targets is configured with crt-static"
222 - ewarn ""
223 - ewarn "you will need to set RUSTFLAGS=\"-C target-feature=-crt-static\" in make.conf"
224 - ewarn "to use it with portage, otherwise you may see failures like"
225 - ewarn "error: cannot produce proc-macro for serde_derive as the target "
226 - ewarn "x86_64-unknown-linux-musl does not support these crate types"
227 - fi
228 -}
229 -
230 -pkg_postrm() {
231 - eselect rust cleanup
232 -}