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: Sat, 04 Aug 2018 12:16:12
Message-Id: 1533384954.894b03c45ba2226f46a3f5194720eeeae74a7270.djc@gentoo
1 commit: 894b03c45ba2226f46a3f5194720eeeae74a7270
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 4 12:15:37 2018 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 12:15:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=894b03c4
7
8 dev-lang/rust-bin: remove old versions
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-lang/rust-bin/Manifest | 10 ---
13 dev-lang/rust-bin/rust-bin-1.26.0.ebuild | 125 -----------------------------
14 dev-lang/rust-bin/rust-bin-1.27.0.ebuild | 125 -----------------------------
15 dev-lang/rust-bin/rust-bin-1.27.1.ebuild | 130 -------------------------------
16 4 files changed, 390 deletions(-)
17
18 diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
19 index d16615818d2..1dff0fb6f43 100644
20 --- a/dev-lang/rust-bin/Manifest
21 +++ b/dev-lang/rust-bin/Manifest
22 @@ -3,21 +3,11 @@ DIST rust-1.25.0-arm-unknown-linux-gnueabihf.tar.gz 152774994 BLAKE2B 438fc55edc
23 DIST rust-1.25.0-armv7-unknown-linux-gnueabihf.tar.gz 150376603 BLAKE2B 44aadf00b74d3d35039486289b319db5b1820dfb3b0fdbc03714ae2a8df78e09ee09fa41d9d8ec1377b91fb4a8f67cd7f4cdc99ceb39da4b48ba464ee1b73600 SHA512 a45312bec4c06b04d3c148d87a64aa55e14cc160eaaa6b712ce738590063137c8f9dd1030656071c1ac9a22cb852f34efdb98c435527c7371da381b802fb9104
24 DIST rust-1.25.0-i686-unknown-linux-gnu.tar.gz 169267482 BLAKE2B 8fb18c95adf7edd74cd305683ab2ee33d59cce1a0f515e9ba63dfd105ffaf9150444e281502747856fa5164f24707b4bbbe110a2b1b7a1cf65c96b883a6f2ede SHA512 76bcd978b9b23b0fc6315f91bed153e59616aa62f520aae8e8d3587b5f5fae74fef15f8b0a749b02a69be56fad4df9a413019438135481917bca1fb1a7704de7
25 DIST rust-1.25.0-x86_64-unknown-linux-gnu.tar.gz 178696930 BLAKE2B 0f82e837494d394c86462583f3d65f1ad839a97eda00fbc00476d06255831088cb7e554cc14edbf9dd23fbebf75078dc78204bdbec4795781f7fae0cbb6de63d SHA512 544e85bb69359d8ff6059d0f470b5995822f73e6d361be43f69f87d394b7252a11686f835336930bc257ba4347c0498abf5b1fbd751180d96bd9ca872b76d65c
26 -DIST rust-1.26.0-arm-unknown-linux-gnueabi.tar.xz 98262664 BLAKE2B 1de2aeef6d035f9f5a4238ad0c730baabfa39944a0cc47ab31fb51b1dd7f606688a4e9c7cd323e7a4998601fce4ebd0102e2d011cfff3caa3a20f91579442cd4 SHA512 44fdff800a6da1929ccab717f544add5a0500856b4ae1edbd6202d5d8b9781bd336c75c857ddf40e6f7175916fb026210bc5ec2656f4b564dd69cc9189bda3d6
27 -DIST rust-1.26.0-arm-unknown-linux-gnueabihf.tar.xz 98490960 BLAKE2B ad4210bc39d11974f0a5032f6779b4c8ca04f705da8c15a755d5072d157724896a65fc149c16c6f9a479f0c61a6cb0a70d90e48543f6d72725de6baf25d4a94b SHA512 3822303a7a8c567f3a917f4c934f1411fd606a335d5f6e574dd0be9d463e9fe27ff948c820b25a305e53d83b5d9fa0e1cbfca86451a0b3e11ff84ef7a82f65c8
28 -DIST rust-1.26.0-armv7-unknown-linux-gnueabihf.tar.xz 98788032 BLAKE2B 3727effee1eaf89d979e27f339901ac938acc22d9dd8e664c20941e46db8250f349493f65598243d5234539bb2037e9dabd38f1a047dd8f9bbe20ae2c8270747 SHA512 5766dbba6f4faae3e8dfd1d98ea948e3835d5b1c28b8daf6c734afd7f27301aa857147eb28762462f77c9da539aae2a81319f194154245abd5cdae7067f24d6c
29 -DIST rust-1.26.0-i686-unknown-linux-gnu.tar.xz 143003764 BLAKE2B 4c0b1872196c21bf9bc9d927455b4c8eb379e40281ef9fdd8a440b702b919628a00bf2e7b392084e8f41f30119c93bfa6e57ba47ee1adecb1d5cdda43778f821 SHA512 1257f9edefc49ee1742c3acd666d15f077c4d999a82dfe0d574df5c41981c3f716adf86b23d96cf9a6757508aea92abcbe06ad9e3bec2cb4ac19512d60ebba31
30 -DIST rust-1.26.0-x86_64-unknown-linux-gnu.tar.xz 139246408 BLAKE2B dc386c7b9e016bdcb8b2475d789b100922defc0bcd400476e4e618f51c338338edfc463428c9fa0fdcf8f051465a126d1c61030c5881d5c21888e80b8068bad8 SHA512 457503fea324251a92f25d0d45f1e2ac7d342a6a8f52d1abe93a579c7ae9b7f453a707d353e82614b37790747e8551f9762188ee25ff883495598cbf17b3f97e
31 DIST rust-1.26.2-arm-unknown-linux-gnueabi.tar.xz 98267104 BLAKE2B ae44fcead124e5e3993240be0c8a46e545df5d045d39184cfada86d9a820fa30a771396a2ced86c2454aef224951e85cf0b6965c13ed98a3024e07d4ca1ec6a9 SHA512 a96295ef2d0eca5a682e3b3bcfe3b3ffeb5bbe45bc949f467cfd1e7ac7252d74e86d2d8f25e5722e75e7f537afeb3b0ae9054bd3908916ea461623f8c13ba5bf
32 DIST rust-1.26.2-arm-unknown-linux-gnueabihf.tar.xz 98502692 BLAKE2B 124040a31e93923f66319244dbeba2be5836fb05ea3c1b8d833bdfac796ab1818139651a798ff398c7448958835ea238e9a111899493b992cc25c026a096ae89 SHA512 e23aa8e1167990a61413cdc0c0f336eafee02c90763120a08fdd7fcd7fbf04bbdbe38c59017cfa43ef622cac1b03f0850d5ace15046d384311a9f8af3cbe8b40
33 DIST rust-1.26.2-armv7-unknown-linux-gnueabihf.tar.xz 98828932 BLAKE2B 2f60e65128bd32d97422d82d99f5c5447d1c1e77582028089d52208e3ede4af5e72c278a3fb5001348c864087f3e85af05604a0b6078891c5ed812d745840d93 SHA512 7b8e3f39a62b7b5fdaa6d53e5638de26968799d97b5d53e09bf49456b02f968495cff4757f25d38bc3393ca33dc1b9da353ec290ba9416770e082548aa5079ac
34 DIST rust-1.26.2-i686-unknown-linux-gnu.tar.xz 143090096 BLAKE2B 7871fa4e4d0f320ff949cd31cefa116bc7b741927626958e1d10197f05fc9a662b8d6c21ddd4d2910700e6f7273e4fc18738e6ff58cd85b9af4ed25eceea31d9 SHA512 859b5b72c78cca8cd473012599ca12539ef9a5ee38d1aaaad024019fd84220e344e1cd0efd2b027ef333555b158b23529f35ceb5d59d76c35e7946b5fe4a8a52
35 DIST rust-1.26.2-x86_64-unknown-linux-gnu.tar.xz 138609432 BLAKE2B 54507a8ce3ab2676e6e66852b6d3f1a47ca07ad4b56383f6247149309a0f60f67fbf0a6ba27d968c24340c07d7d5074942c6eaccbc1207c5e75fd9a6f47b2481 SHA512 29e474b0eab4dd2ffa0b964d83f52ffce530e75c4193e307410ef6d20ef9ad2b300a4f467bdf06b3311157340e9295cb9b1efdcf08dafee66979b076c2afba7e
36 -DIST rust-1.27.0-arm-unknown-linux-gnueabi.tar.xz 101002020 BLAKE2B e725b5cd8ec5ec9c035b70c7a45f49e21332846bc4e760afce4abc5d6de3a84029d06e1df0ca430d9b9b1117d4b534146310391254ebad458552d40b152aa56a SHA512 c0924ae1296802d6bed09944cb04b98414dcd4e102387cc1c4810e26793409daf4622300d451d297c9a84890f108dff1bb4ef70381d582b6d26aae0b2c38e476
37 -DIST rust-1.27.0-arm-unknown-linux-gnueabihf.tar.xz 101316444 BLAKE2B f3c2e5f0cd6c75e51c3a25bd9aad34180d04bb97187f1ce240b6682e64026efee3359a71d1aadf9ea2fadf0cffa277daade02703d1e70c2fa43f68624ccf43a8 SHA512 5c374d103377dc94e5a68c46deba22080b374dd652cfc64abc69fbbe69e59b40537208534a15c860fb985abb426468eef33b7d6c9a8fee3f855a447c6c0ced4f
38 -DIST rust-1.27.0-armv7-unknown-linux-gnueabihf.tar.xz 98186744 BLAKE2B add9b9ce125e8e0216579fc4eb9a615396bc6798bd8fe52fc5e02b4eddbca991e227fa1022d5ea86473e4a2f4738fe8e30ad01899bac78b6c2072eead9b9e69d SHA512 034288fd8767f1773b4a5232b26e68a812d0f8084e39dff776d3c8d235f2b3f51c12620a0346851fccbb0ab3cd194938682fa8e9d8641f8ee3c3d9259c96a86f
39 -DIST rust-1.27.0-i686-unknown-linux-gnu.tar.xz 144744880 BLAKE2B ef48cd1b2601868840c59274a776be40e0ac8ce674d0a00712176e28f5e381b95b790d898fdfdae153768b754f87662c581cd5b11752d5d4401aadd9b446fc7b SHA512 66508f09e7a48d72d4a18da209dadd5e11fc1e9811726fdfa8de609359eee6bc1d8d3b578b50ab0b4dcff879e96edd6d60449508eed7d2d44f72b2c8c29e2546
40 -DIST rust-1.27.0-x86_64-unknown-linux-gnu.tar.xz 144343920 BLAKE2B 214530a0724f0fa6e1c4e769787a1c0d56e9a6c13a0cacdb9f639d523915fbd413fe42ccd9073308b14b551804d269061ed9bc03cc6761b817bc556e1837d005 SHA512 e57b60cafec48a396cde1ff62bd01148e0e3c803b9b97d70a7cf477a7d3a4295ca98fa99a1252004751e8529b214c2859cd2134ce722b3336b9640c2aef6f625
41 DIST rust-1.27.1-arm-unknown-linux-gnueabi.tar.xz 101083416 BLAKE2B 2fd3a4b0c8a6cc1e7f7bc11300081183144639c4d02b8bb989154fbad92ad1e30ac8171993d8296ce8f0486dd018df46360693d912b50ca0c299c4c059f79d17 SHA512 7fa376f077abad6e24b81aa98ab7d953b8257388212a509c7a061ebe022cefd5bd042f24fc4444287bc4fb4cb9a6cbb651ae0d8146b5d4fe73d395ebb7192367
42 DIST rust-1.27.1-arm-unknown-linux-gnueabihf.tar.xz 101382108 BLAKE2B 8743930b86b8ac1032afc5ced83f57b0606e9143a9d8e30a8b2ede70abb415fc2f1a904cb4b92adde7f71d54e83384509f02220cea9a9ab189a79815a58bd434 SHA512 be49a245163bef0345cd138fdc8d13a8403bf6b523505666650119eba87921f6a1abb04267bc698da30e5e688d8592fc20d8d3d63aff7ac1fa7397950531d329
43 DIST rust-1.27.1-armv7-unknown-linux-gnueabihf.tar.xz 98288932 BLAKE2B 4794e8c54c8f733de6129829bab9e02644651fd6350db76bdb8c69f32fcff0a61e4992241431fea2b871e04a6f28607810918c5161a5a8a0b3fe756a37b619e3 SHA512 405bd579e69ec73de384487c4cd77eefcbc6c537ca3421f38ce2d35b8cd911def82fb9006b788a8aa6cdef69f620a5b1f2a2f7364bf7ddd0452d80b33315fa43
44
45 diff --git a/dev-lang/rust-bin/rust-bin-1.26.0.ebuild b/dev-lang/rust-bin/rust-bin-1.26.0.ebuild
46 deleted file mode 100644
47 index d9614aad8ef..00000000000
48 --- a/dev-lang/rust-bin/rust-bin-1.26.0.ebuild
49 +++ /dev/null
50 @@ -1,125 +0,0 @@
51 -# Copyright 1999-2018 Gentoo Foundation
52 -# Distributed under the terms of the GNU General Public License v2
53 -
54 -EAPI=5
55 -
56 -inherit eutils bash-completion-r1 versionator toolchain-funcs
57 -
58 -MY_P="rust-${PV}"
59 -
60 -DESCRIPTION="Systems programming language from Mozilla"
61 -HOMEPAGE="https://www.rust-lang.org/"
62 -SRC_URI="amd64? ( https://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.xz )
63 - arm? (
64 - https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabi.tar.xz
65 - https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabihf.tar.xz
66 - https://static.rust-lang.org/dist/${MY_P}-armv7-unknown-linux-gnueabihf.tar.xz
67 - )
68 - x86? ( https://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.xz )"
69 -
70 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
71 -SLOT="stable"
72 -KEYWORDS="~amd64 ~x86"
73 -IUSE="doc"
74 -
75 -CARGO_DEPEND_VERSION="0.$(($(get_version_component_range 2) + 1)).0"
76 -
77 -DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
78 - !dev-lang/rust:0
79 -"
80 -RDEPEND="${DEPEND}"
81 -PDEPEND=">=dev-util/cargo-${CARGO_DEPEND_VERSION}"
82 -
83 -QA_PREBUILT="
84 - opt/${P}/bin/rustc-bin-${PV}
85 - opt/${P}/bin/rustdoc-bin-${PV}
86 - opt/${P}/lib/*.so
87 - opt/${P}/lib/rustlib/*/lib/*.so
88 - opt/${P}/lib/rustlib/*/lib/*.rlib*
89 -"
90 -
91 -pkg_pretend () {
92 - if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
93 - die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
94 - fi
95 -}
96 -
97 -src_unpack() {
98 - default
99 -
100 - local postfix
101 - use amd64 && postfix=x86_64-unknown-linux-gnu
102 -
103 - if use arm && [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv6* ]]; then
104 - postfix=arm-unknown-linux-gnueabi
105 - elif use arm && [[ ${CHOST} == armv6*h* ]]; then
106 - postfix=arm-unknown-linux-gnueabihf
107 - elif use arm && [[ ${CHOST} == armv7*h* ]]; then
108 - postfix=armv7-unknown-linux-gnueabihf
109 - fi
110 -
111 - use x86 && postfix=i686-unknown-linux-gnu
112 - mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
113 -}
114 -
115 -src_install() {
116 - local std=$(grep 'std' ./components)
117 - local components="rustc,${std}"
118 - use doc && components="${components},rust-docs"
119 - ./install.sh \
120 - --components="${components}" \
121 - --disable-verify \
122 - --prefix="${D}/opt/${P}" \
123 - --mandir="${D}/usr/share/${P}/man" \
124 - --disable-ldconfig \
125 - || die
126 -
127 - local rustc=rustc-bin-${PV}
128 - local rustdoc=rustdoc-bin-${PV}
129 - local rustgdb=rust-gdb-bin-${PV}
130 -
131 - mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
132 - mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
133 - mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
134 -
135 - dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
136 - dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
137 - dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
138 -
139 - cat <<-EOF > "${T}"/50${P}
140 - LDPATH="/opt/${P}/lib"
141 - MANPATH="/usr/share/${P}/man"
142 - EOF
143 - doenvd "${T}"/50${P}
144 -
145 - cat <<-EOF > "${T}/provider-${P}"
146 - /usr/bin/rustdoc
147 - /usr/bin/rust-gdb
148 - EOF
149 - dodir /etc/env.d/rust
150 - insinto /etc/env.d/rust
151 - doins "${T}/provider-${P}"
152 -}
153 -
154 -pkg_postinst() {
155 - eselect rust update --if-unset
156 -
157 - elog "Rust installs a helper script for calling GDB now,"
158 - elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
159 -
160 - if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
161 - elog "install app-emacs/rust-mode to get emacs support for rust."
162 - fi
163 -
164 - if has_version app-editors/gvim || has_version app-editors/vim; then
165 - elog "install app-vim/rust-vim to get vim support for rust."
166 - fi
167 -
168 - if has_version 'app-shells/zsh'; then
169 - elog "install app-shells/rust-zshcomp to get zsh completion for rust."
170 - fi
171 -}
172 -
173 -pkg_postrm() {
174 - eselect rust unset --if-invalid
175 -}
176
177 diff --git a/dev-lang/rust-bin/rust-bin-1.27.0.ebuild b/dev-lang/rust-bin/rust-bin-1.27.0.ebuild
178 deleted file mode 100644
179 index 0eea0a7d10c..00000000000
180 --- a/dev-lang/rust-bin/rust-bin-1.27.0.ebuild
181 +++ /dev/null
182 @@ -1,125 +0,0 @@
183 -# Copyright 1999-2018 Gentoo Foundation
184 -# Distributed under the terms of the GNU General Public License v2
185 -
186 -EAPI=6
187 -
188 -inherit eutils bash-completion-r1 versionator toolchain-funcs
189 -
190 -MY_P="rust-${PV}"
191 -
192 -DESCRIPTION="Systems programming language from Mozilla"
193 -HOMEPAGE="https://www.rust-lang.org/"
194 -SRC_URI="amd64? ( https://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.xz )
195 - arm? (
196 - https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabi.tar.xz
197 - https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabihf.tar.xz
198 - https://static.rust-lang.org/dist/${MY_P}-armv7-unknown-linux-gnueabihf.tar.xz
199 - )
200 - x86? ( https://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.xz )"
201 -
202 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
203 -SLOT="stable"
204 -KEYWORDS="~amd64 ~x86"
205 -IUSE="doc"
206 -
207 -CARGO_DEPEND_VERSION="0.$(($(get_version_component_range 2) + 1)).0"
208 -
209 -DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
210 - !dev-lang/rust:0
211 -"
212 -RDEPEND="${DEPEND}"
213 -PDEPEND=">=dev-util/cargo-${CARGO_DEPEND_VERSION}"
214 -
215 -QA_PREBUILT="
216 - opt/${P}/bin/rustc-bin-${PV}
217 - opt/${P}/bin/rustdoc-bin-${PV}
218 - opt/${P}/lib/*.so
219 - opt/${P}/lib/rustlib/*/lib/*.so
220 - opt/${P}/lib/rustlib/*/lib/*.rlib*
221 -"
222 -
223 -pkg_pretend () {
224 - if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
225 - die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
226 - fi
227 -}
228 -
229 -src_unpack() {
230 - default
231 -
232 - local postfix
233 - use amd64 && postfix=x86_64-unknown-linux-gnu
234 -
235 - if use arm && [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv6* ]]; then
236 - postfix=arm-unknown-linux-gnueabi
237 - elif use arm && [[ ${CHOST} == armv6*h* ]]; then
238 - postfix=arm-unknown-linux-gnueabihf
239 - elif use arm && [[ ${CHOST} == armv7*h* ]]; then
240 - postfix=armv7-unknown-linux-gnueabihf
241 - fi
242 -
243 - use x86 && postfix=i686-unknown-linux-gnu
244 - mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
245 -}
246 -
247 -src_install() {
248 - local std=$(grep 'std' ./components)
249 - local components="rustc,${std}"
250 - use doc && components="${components},rust-docs"
251 - ./install.sh \
252 - --components="${components}" \
253 - --disable-verify \
254 - --prefix="${D}/opt/${P}" \
255 - --mandir="${D}/usr/share/${P}/man" \
256 - --disable-ldconfig \
257 - || die
258 -
259 - local rustc=rustc-bin-${PV}
260 - local rustdoc=rustdoc-bin-${PV}
261 - local rustgdb=rust-gdb-bin-${PV}
262 -
263 - mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
264 - mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
265 - mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
266 -
267 - dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
268 - dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
269 - dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
270 -
271 - cat <<-EOF > "${T}"/50${P}
272 - LDPATH="/opt/${P}/lib"
273 - MANPATH="/usr/share/${P}/man"
274 - EOF
275 - doenvd "${T}"/50${P}
276 -
277 - cat <<-EOF > "${T}/provider-${P}"
278 - /usr/bin/rustdoc
279 - /usr/bin/rust-gdb
280 - EOF
281 - dodir /etc/env.d/rust
282 - insinto /etc/env.d/rust
283 - doins "${T}/provider-${P}"
284 -}
285 -
286 -pkg_postinst() {
287 - eselect rust update --if-unset
288 -
289 - elog "Rust installs a helper script for calling GDB now,"
290 - elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
291 -
292 - if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
293 - elog "install app-emacs/rust-mode to get emacs support for rust."
294 - fi
295 -
296 - if has_version app-editors/gvim || has_version app-editors/vim; then
297 - elog "install app-vim/rust-vim to get vim support for rust."
298 - fi
299 -
300 - if has_version 'app-shells/zsh'; then
301 - elog "install app-shells/rust-zshcomp to get zsh completion for rust."
302 - fi
303 -}
304 -
305 -pkg_postrm() {
306 - eselect rust unset --if-invalid
307 -}
308
309 diff --git a/dev-lang/rust-bin/rust-bin-1.27.1.ebuild b/dev-lang/rust-bin/rust-bin-1.27.1.ebuild
310 deleted file mode 100644
311 index c1554f3d217..00000000000
312 --- a/dev-lang/rust-bin/rust-bin-1.27.1.ebuild
313 +++ /dev/null
314 @@ -1,130 +0,0 @@
315 -# Copyright 1999-2018 Gentoo Foundation
316 -# Distributed under the terms of the GNU General Public License v2
317 -
318 -EAPI=6
319 -
320 -inherit eutils bash-completion-r1 versionator toolchain-funcs
321 -
322 -MY_P="rust-${PV}"
323 -
324 -DESCRIPTION="Systems programming language from Mozilla"
325 -HOMEPAGE="https://www.rust-lang.org/"
326 -SRC_URI="amd64? ( https://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.xz )
327 - arm? (
328 - https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabi.tar.xz
329 - https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabihf.tar.xz
330 - https://static.rust-lang.org/dist/${MY_P}-armv7-unknown-linux-gnueabihf.tar.xz
331 - )
332 - x86? ( https://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.xz )"
333 -
334 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
335 -SLOT="stable"
336 -KEYWORDS="~amd64 ~x86"
337 -IUSE="cargo doc"
338 -
339 -CARGO_DEPEND_VERSION="0.$(($(get_version_component_range 2) + 1)).0"
340 -
341 -DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
342 - !dev-lang/rust:0
343 - cargo? ( !dev-util/cargo )
344 -"
345 -RDEPEND="${DEPEND}"
346 -PDEPEND=">=dev-util/cargo-${CARGO_DEPEND_VERSION}"
347 -
348 -QA_PREBUILT="
349 - opt/${P}/bin/rustc-bin-${PV}
350 - opt/${P}/bin/rustdoc-bin-${PV}
351 - opt/${P}/lib/*.so
352 - opt/${P}/lib/rustlib/*/lib/*.so
353 - opt/${P}/lib/rustlib/*/lib/*.rlib*
354 -"
355 -
356 -pkg_pretend () {
357 - if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
358 - die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
359 - fi
360 -}
361 -
362 -src_unpack() {
363 - default
364 -
365 - local postfix
366 - use amd64 && postfix=x86_64-unknown-linux-gnu
367 -
368 - if use arm && [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv6* ]]; then
369 - postfix=arm-unknown-linux-gnueabi
370 - elif use arm && [[ ${CHOST} == armv6*h* ]]; then
371 - postfix=arm-unknown-linux-gnueabihf
372 - elif use arm && [[ ${CHOST} == armv7*h* ]]; then
373 - postfix=armv7-unknown-linux-gnueabihf
374 - fi
375 -
376 - use x86 && postfix=i686-unknown-linux-gnu
377 - mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
378 -}
379 -
380 -src_install() {
381 - local std=$(grep 'std' ./components)
382 - local components="rustc,${std}"
383 - use doc && components="${components},rust-docs"
384 - use cargo && components="${components},cargo"
385 - ./install.sh \
386 - --components="${components}" \
387 - --disable-verify \
388 - --prefix="${D}/opt/${P}" \
389 - --mandir="${D}/usr/share/${P}/man" \
390 - --disable-ldconfig \
391 - || die
392 -
393 - local rustc=rustc-bin-${PV}
394 - local rustdoc=rustdoc-bin-${PV}
395 - local rustgdb=rust-gdb-bin-${PV}
396 - local cargo=cargo-${PV}
397 -
398 - mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
399 - mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
400 - mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
401 - use cargo && mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
402 -
403 - dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
404 - dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
405 - dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
406 - use cargo && dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
407 -
408 - cat <<-EOF > "${T}"/50${P}
409 - LDPATH="/opt/${P}/lib"
410 - MANPATH="/usr/share/${P}/man"
411 - EOF
412 - doenvd "${T}"/50${P}
413 -
414 - cat <<-EOF > "${T}/provider-${P}"
415 - /usr/bin/rustdoc
416 - /usr/bin/rust-gdb
417 - EOF
418 - dodir /etc/env.d/rust
419 - insinto /etc/env.d/rust
420 - doins "${T}/provider-${P}"
421 -}
422 -
423 -pkg_postinst() {
424 - eselect rust update --if-unset
425 -
426 - elog "Rust installs a helper script for calling GDB now,"
427 - elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
428 -
429 - if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
430 - elog "install app-emacs/rust-mode to get emacs support for rust."
431 - fi
432 -
433 - if has_version app-editors/gvim || has_version app-editors/vim; then
434 - elog "install app-vim/rust-vim to get vim support for rust."
435 - fi
436 -
437 - if has_version 'app-shells/zsh'; then
438 - elog "install app-shells/rust-zshcomp to get zsh completion for rust."
439 - fi
440 -}
441 -
442 -pkg_postrm() {
443 - eselect rust unset --if-invalid
444 -}