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/
Date: Fri, 30 Sep 2016 09:32:25
Message-Id: 1475227922.365a2be5eaf895121e48bcc51b8b3495b0951856.djc@gentoo
1 commit: 365a2be5eaf895121e48bcc51b8b3495b0951856
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 09:32:02 2016 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 09:32:02 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=365a2be5
7
8 dev-lang/rust: remove old versions
9
10 Package-Manager: portage-2.3.0
11
12 dev-lang/rust/Manifest | 6 --
13 dev-lang/rust/rust-1.10.0.ebuild | 154 -------------------------------------
14 dev-lang/rust/rust-1.9.0.ebuild | 159 ---------------------------------------
15 3 files changed, 319 deletions(-)
16
17 diff --git a/dev-lang/rust/Manifest b/dev-lang/rust/Manifest
18 index 292d2b8..0c6defe 100644
19 --- a/dev-lang/rust/Manifest
20 +++ b/dev-lang/rust/Manifest
21 @@ -1,12 +1,6 @@
22 -DIST rust-stage0-2016-03-18-235d774-linux-i386-0e0e4448b80d0a12b75485795244bb3857a0a7ef.tar.bz2 18489693 SHA256 36958fcd55387d7b1b86618111fa8660c1d488fe191e85ad9659c6470874322b SHA512 3e729e7c9340060c5eaa13b0420cc3b10eb968312bfceb4d072e5e16673a393c1b51b34b2c43f91953a2b44f0b0fe549215e5c284695d5a3626a3dc703693fd6 WHIRLPOOL 9a7064933b4387de6c6158c5a9645be1b3cd05d1cbd66c8e30a5efb63d08fd8aed8c5695e850fb3e3f92577b59fd2243b467d9ed509b913f652abddd206f68db
23 -DIST rust-stage0-2016-03-18-235d774-linux-x86_64-1273b6b6aed421c9e40c59f366d0df6092ec0397.tar.bz2 17950752 SHA256 a8ca657d78162a9f0a69a1ec8b0460e97259cdf2e6353ee256ae206876c9637e SHA512 77694229b9aca58eab866acf6d52f381d9b4faa8c7698c17b2de90fa396eba17f3e12411b2cc4639607f7418d1382365e15039fb4ed247158a7d5542ce3b8b59 WHIRLPOOL a58f3d9e8e319b4852513e4c172dc733f5080032eb6f2c33ddd9b336891586318761db0e6dcc3ff54113cc32ee256fd356a672cb50ae316ca4d1a7be3d5591d6
24 DIST rustc-1.10.0-i686-unknown-linux-gnu.tar.gz 47134530 SHA256 019ee36468b92846691f96b56d980a4099f12cf1c5f74534a9d37e13122eb869 SHA512 0af9edc08d34189d99247169787133c78935cfae46489d4c42732d96a67878c221c9f2ad44a8ccf82781aecc4988e019fbb2825950eb08295d9c68a1d3c4a368 WHIRLPOOL aa8f36a3eeea4dbf24a6cbdc6ae402417b609279a445ffcaffc554c8c58559cd7390063d89accbab0acc874598c865ced420397e5002c9a5b4c15b462317f3f1
25 -DIST rustc-1.10.0-src.tar.gz 25967780 SHA256 a4015aacf4f6d8a8239253c4da46e7abaa8584f8214d1828d2ff0a8f56176869 SHA512 fdef0a4c458ce687ab2921fb879cf6f68ae7ec4d780e407fea80cb751d70d80e621fc37756358d8336383c24646d9e2869215b3591b2240904206df2e58a7e45 WHIRLPOOL daa9775e515f6466c7344518e2afff96d01f62bb15cb01e6d4889ec338189b9584f7f9b5d6d340e00aa995490a09eecad1c4db0d98e068e4256081724c668644
26 DIST rustc-1.10.0-x86_64-unknown-linux-gnu.tar.gz 46533773 SHA256 4301f9a09f2b88ac1238d886dfa14d864be7401f4d8a31277303eebe0c7a56c3 SHA512 3b6c61c8c970c5244984df0c7d646d84984c8c1aaf804eda18820154cf09c5fea7fa77ac4cf779656ef4472029fe221b788a277a764de985bf5a0dc95a72f8c9 WHIRLPOOL f6f7ccc2ff9dd707d29f33a7252a41ec103914e016cfc383f1c7f37e6823fb32354ba599c7dd5f24f09ecd1436b40b16b6a23be44950fb2738b5cfa20d3dfcb9
27 DIST rustc-1.11.0-i686-unknown-linux-gnu.tar.gz 45977053 SHA256 16273afc0540b4353e54faab6b73e16310ae724f3dc941938bf09129b08bed03 SHA512 d8bdee97e3ea4bf768571db94be66a5988cb2a87d99f54362210dce9d36952748c253bccf1db9c58935e7a7d2e2465daba051778200f798497bd77ba0f4f4712 WHIRLPOOL 8d7cf1396b7f4f058af63f23eee8a804b346e21816a130de6af4d7f3aecebe82ed3e3877d0faf2eedbfe309ac97e07252e392bb0ff28aa29c6d861f25332ffa8
28 DIST rustc-1.11.0-src.tar.gz 26126471 SHA256 3685034a78e70637bdfa3117619f759f2481002fd9abbc78cc0f737c9974de6a SHA512 6ad050a02e3a3b48f205f5d5ed9393fd2a1a2237e5c78b3e51af8162f410b93a831ebe5980ce78c4d38c5a692395c7fec8442956497a5d21e9f7157404c6b5aa WHIRLPOOL f57ea2f42c97256427964f3a553207a2b587b1e4f1c2636c66d9c47f92a9de508a64ba8288ab3a80444d9dba1c59d545be876448a1f80f283c69a4cc3356da25
29 DIST rustc-1.11.0-x86_64-unknown-linux-gnu.tar.gz 45436770 SHA256 e9d27a72900da33c1bbd0e59dd42fd6414c6bcdfa33593fb7c7360068406394a SHA512 a7565f00761cd4b2bd1e873bc9a75f52f3ba12379b4e1055e8aaf7c1818fb6357a4270630365fc8d7fb73816aa6f5520e6ac6e667105a4e0459d3755852d8d51 WHIRLPOOL fc708585b5ab6e1c62052b77ab08ebd560f8f1861a004653fb3636feb0f4fd33d01e1c793dc428d7172d2005050809f24321820c4d48503eea59a686e172f2d6
30 DIST rustc-1.12.0-src.tar.gz 27501444 SHA256 ac5907d6fa96c19bd5901d8d99383fb8755127571ead3d4070cce9c1fb5f337a SHA512 0bd98c3a8c37420877e8e71b80e376d3b34c35a7bea9a986b7f332ab1885d76d456dbcbae6bf52e1155231bbf93284699ddc0d5297cc19b74d97bdfd8b804adc WHIRLPOOL 17cb131bd60bc8bb8abf882006367b992fb563c2a7df9bc19821dfa93cb5d01c83c7c057fabb13534492a686e331ad913c5dc08d186ef1c68c9161f81f2680a4
31 -DIST rustc-1.9.0-i686-unknown-linux-gnu.tar.gz 45887218 SHA256 2951dec835827974d03c7aafbf2c969f39bb530e1c200fd46f90bc01772fae39 SHA512 6d799a464f93aecb24ded4e9af634d7852f9930968814700e90353888657f9f556dda156455cb8cabca0e5f42c8d0f7864d43294687c8ce57518e21bebad99f7 WHIRLPOOL da145280c6558cd36d40450203fc61081282a64a2145b75998806964be731e91378e571a9c9b6b7fe1b488c6dd303105a9f47c0b1c6c77a6426ed1aaa0756df4
32 -DIST rustc-1.9.0-src.tar.gz 25859714 SHA256 b19b21193d7d36039debeaaa1f61cbf98787e0ce94bd85c5cbe2a59462d7cfcd SHA512 bb23d529daaea17cd6358057ad7c219b1bf2206331a9813520f9e3a519698f6d274a6c25f579dab9e8e48fe0c6e51e7eb473885cb1fb65128e715e06778b62f7 WHIRLPOOL 23393e5842d2af5bffaca34909be5293198a2ceedb3d6db55920e375e3860411cf51f5148264d9e172ec088f26706529f24ed05d97ca09387f0d25f90c23ed85
33 -DIST rustc-1.9.0-x86_64-unknown-linux-gnu.tar.gz 45246956 SHA256 d0704d10237c66c3efafa6f7e5570c59a1d3fe5c6d99487540f90ebb37cd84c4 SHA512 37a4c62f09e2b49cf7a898eeefd3843ef17f3dc433a4f55cb5c3d5c315effb9e0750c275bb0fc91e5ada6c42924af5c7f890874c5917d41a4723c60b209d1c0d WHIRLPOOL f3aeaaf9c93a177c2a944eaae994b5d3c6d2c31923d468bda16cce845e3ae87ac3747c2f025ec1e78054cc001d3c3abf629534f7b6b454e394192ead8e614d3d
34
35 diff --git a/dev-lang/rust/rust-1.10.0.ebuild b/dev-lang/rust/rust-1.10.0.ebuild
36 deleted file mode 100644
37 index 58775d2..00000000
38 --- a/dev-lang/rust/rust-1.10.0.ebuild
39 +++ /dev/null
40 @@ -1,154 +0,0 @@
41 -# Copyright 1999-2016 Gentoo Foundation
42 -# Distributed under the terms of the GNU General Public License v2
43 -# $Id$
44 -
45 -EAPI=6
46 -
47 -PYTHON_COMPAT=( python2_7 )
48 -
49 -inherit python-any-r1 versionator toolchain-funcs
50 -
51 -if [[ ${PV} = *beta* ]]; then
52 - betaver=${PV//*beta}
53 - BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}"
54 - MY_P="rustc-beta"
55 - SLOT="beta/${PV}"
56 - SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.gz"
57 - KEYWORDS=""
58 -else
59 - ABI_VER="$(get_version_component_range 1-2)"
60 - SLOT="stable/${ABI_VER}"
61 - MY_P="rustc-${PV}"
62 - SRC="${MY_P}-src.tar.gz"
63 - KEYWORDS="~amd64 ~x86"
64 -fi
65 -
66 -STAGE0_VERSION="1.$(($(get_version_component_range 2) - 1)).0"
67 -RUST_STAGE0_amd64="rustc-${STAGE0_VERSION}-x86_64-unknown-linux-gnu"
68 -RUST_STAGE0_x86="rustc-${STAGE0_VERSION}-i686-unknown-linux-gnu"
69 -
70 -DESCRIPTION="Systems programming language from Mozilla"
71 -HOMEPAGE="http://www.rust-lang.org/"
72 -
73 -SRC_URI="https://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.gz
74 - amd64? ( https://static.rust-lang.org/dist/${RUST_STAGE0_amd64}.tar.gz )
75 - x86? ( https://static.rust-lang.org/dist/${RUST_STAGE0_x86}.tar.gz )
76 -"
77 -
78 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
79 -
80 -IUSE="clang debug doc libcxx +system-llvm"
81 -REQUIRED_USE="libcxx? ( clang )"
82 -
83 -RDEPEND="libcxx? ( sys-libs/libcxx )
84 - system-llvm? ( >=sys-devel/llvm-3.7.1-r1:=[multitarget]
85 - <sys-devel/llvm-3.9.0:=[multitarget] )
86 -"
87 -
88 -DEPEND="${RDEPEND}
89 - ${PYTHON_DEPS}
90 - >=dev-lang/perl-5.0
91 - clang? ( sys-devel/clang )
92 -"
93 -
94 -PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425"
95 -
96 -S="${WORKDIR}/${MY_P}"
97 -
98 -src_unpack() {
99 - unpack "rustc-${PV}-src.tar.gz" || die
100 - mkdir "${MY_P}/dl" || die
101 - local stagename="RUST_STAGE0_${ARCH}"
102 - local stage0="${!stagename}"
103 - cp "${DISTDIR}/${stage0}.tar.gz" "${MY_P}/dl/" || die "cp stage0"
104 -}
105 -
106 -src_prepare() {
107 - find mk -name '*.mk' -exec \
108 - sed -i -e "s/-Werror / /g" {} \; || die
109 -
110 - eapply_user
111 -}
112 -
113 -src_configure() {
114 - export CFG_DISABLE_LDCONFIG="notempty"
115 -
116 - "${ECONF_SOURCE:-.}"/configure \
117 - --prefix="${EPREFIX}/usr" \
118 - --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \
119 - --mandir="${EPREFIX}/usr/share/${P}/man" \
120 - --release-channel=${SLOT%%/*} \
121 - --disable-manage-submodules \
122 - --default-linker=$(tc-getBUILD_CC) \
123 - --default-ar=$(tc-getBUILD_AR) \
124 - --python=${EPYTHON} \
125 - --disable-rpath \
126 - $(use_enable clang) \
127 - $(use_enable debug) \
128 - $(use_enable debug llvm-assertions) \
129 - $(use_enable !debug optimize) \
130 - $(use_enable !debug optimize-cxx) \
131 - $(use_enable !debug optimize-llvm) \
132 - $(use_enable !debug optimize-tests) \
133 - $(use_enable doc docs) \
134 - $(use_enable libcxx libcpp) \
135 - $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \
136 - || die
137 -}
138 -
139 -src_compile() {
140 - emake VERBOSE=1
141 -}
142 -
143 -src_install() {
144 - unset SUDO_USER
145 -
146 - default
147 -
148 - mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die
149 - mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die
150 - mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die
151 -
152 - dodoc COPYRIGHT
153 -
154 - dodir "/usr/share/doc/rust-${PV}/"
155 - mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die
156 - rmdir "${D}/usr/share/doc/rust/" || die
157 -
158 - cat <<-EOF > "${T}"/50${P}
159 - LDPATH="/usr/$(get_libdir)/${P}"
160 - MANPATH="/usr/share/${P}/man"
161 - EOF
162 - doenvd "${T}"/50${P}
163 -
164 - cat <<-EOF > "${T}/provider-${P}"
165 - /usr/bin/rustdoc
166 - /usr/bin/rust-gdb
167 - EOF
168 - dodir /etc/env.d/rust
169 - insinto /etc/env.d/rust
170 - doins "${T}/provider-${P}"
171 -}
172 -
173 -pkg_postinst() {
174 - eselect rust update --if-unset
175 -
176 - elog "Rust installs a helper script for calling GDB now,"
177 - elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}."
178 -
179 - if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
180 - elog "install app-emacs/rust-mode to get emacs support for rust."
181 - fi
182 -
183 - if has_version app-editors/gvim || has_version app-editors/vim; then
184 - elog "install app-vim/rust-vim to get vim support for rust."
185 - fi
186 -
187 - if has_version 'app-shells/zsh'; then
188 - elog "install app-shells/rust-zshcomp to get zsh completion for rust."
189 - fi
190 -}
191 -
192 -pkg_postrm() {
193 - eselect rust unset --if-invalid
194 -}
195
196 diff --git a/dev-lang/rust/rust-1.9.0.ebuild b/dev-lang/rust/rust-1.9.0.ebuild
197 deleted file mode 100644
198 index cf89a41..00000000
199 --- a/dev-lang/rust/rust-1.9.0.ebuild
200 +++ /dev/null
201 @@ -1,159 +0,0 @@
202 -# Copyright 1999-2016 Gentoo Foundation
203 -# Distributed under the terms of the GNU General Public License v2
204 -# $Id$
205 -
206 -EAPI=6
207 -
208 -PYTHON_COMPAT=( python2_7 )
209 -
210 -inherit python-any-r1 versionator toolchain-funcs
211 -
212 -if [[ ${PV} = *beta* ]]; then
213 - betaver=${PV//*beta}
214 - BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}"
215 - MY_P="rustc-beta"
216 - SLOT="beta/${PV}"
217 - SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.gz"
218 - KEYWORDS=""
219 -else
220 - ABI_VER="$(get_version_component_range 1-2)"
221 - SLOT="stable/${ABI_VER}"
222 - MY_P="rustc-${PV}"
223 - SRC="${MY_P}-src.tar.gz"
224 - KEYWORDS="~amd64 ~x86"
225 -fi
226 -
227 -# from src/snapshots.txt
228 -RUST_SNAPSHOT_DATE="2016-03-18"
229 -RUST_SNAPSHOT_SRCHASH="235d774"
230 -RUST_SNAPSHOT_HASH_amd64="1273b6b6aed421c9e40c59f366d0df6092ec0397"
231 -RUST_SNAPSHOT_HASH_x86="0e0e4448b80d0a12b75485795244bb3857a0a7ef"
232 -RUST_STAGE0="rust-stage0-${RUST_SNAPSHOT_DATE}-${RUST_SNAPSHOT_SRCHASH}"
233 -RUST_STAGE0_amd64="${RUST_STAGE0}-linux-x86_64-${RUST_SNAPSHOT_HASH_amd64}"
234 -RUST_STAGE0_x86="${RUST_STAGE0}-linux-i386-${RUST_SNAPSHOT_HASH_x86}"
235 -
236 -DESCRIPTION="Systems programming language from Mozilla"
237 -HOMEPAGE="http://www.rust-lang.org/"
238 -
239 -SRC_URI="http://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.gz
240 - amd64? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_amd64}.tar.bz2 )
241 - x86? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_x86}.tar.bz2 )
242 -"
243 -
244 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
245 -
246 -IUSE="clang debug doc libcxx +system-llvm"
247 -REQUIRED_USE="libcxx? ( clang )"
248 -
249 -RDEPEND="libcxx? ( sys-libs/libcxx )
250 - system-llvm? ( >=sys-devel/llvm-3.7.1-r1:=[multitarget]
251 - <sys-devel/llvm-3.9.0:=[multitarget] )
252 -"
253 -
254 -DEPEND="${RDEPEND}
255 - ${PYTHON_DEPS}
256 - >=dev-lang/perl-5.0
257 - clang? ( sys-devel/clang )
258 -"
259 -
260 -PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425"
261 -
262 -S="${WORKDIR}/${MY_P}"
263 -
264 -src_unpack() {
265 - unpack "rustc-${PV}-src.tar.gz" || die
266 - mkdir "${MY_P}/dl" || die
267 - local stagename="RUST_STAGE0_${ARCH}"
268 - local stage0="${!stagename}"
269 - cp "${DISTDIR}/${stage0}.tar.bz2" "${MY_P}/dl/" || die "cp stage0"
270 -}
271 -
272 -src_prepare() {
273 - find mk -name '*.mk' -exec \
274 - sed -i -e "s/-Werror / /g" {} \; || die
275 -
276 - eapply_user
277 -}
278 -
279 -src_configure() {
280 - export CFG_DISABLE_LDCONFIG="notempty"
281 -
282 - "${ECONF_SOURCE:-.}"/configure \
283 - --prefix="${EPREFIX}/usr" \
284 - --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \
285 - --mandir="${EPREFIX}/usr/share/${P}/man" \
286 - --release-channel=${SLOT%%/*} \
287 - --disable-manage-submodules \
288 - --default-linker=$(tc-getBUILD_CC) \
289 - --default-ar=$(tc-getBUILD_AR) \
290 - --python=${EPYTHON} \
291 - --disable-rpath \
292 - $(use_enable clang) \
293 - $(use_enable debug) \
294 - $(use_enable debug llvm-assertions) \
295 - $(use_enable !debug optimize) \
296 - $(use_enable !debug optimize-cxx) \
297 - $(use_enable !debug optimize-llvm) \
298 - $(use_enable !debug optimize-tests) \
299 - $(use_enable doc docs) \
300 - $(use_enable libcxx libcpp) \
301 - $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \
302 - || die
303 -}
304 -
305 -src_compile() {
306 - emake VERBOSE=1
307 -}
308 -
309 -src_install() {
310 - unset SUDO_USER
311 -
312 - default
313 -
314 - mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die
315 - mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die
316 - mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die
317 -
318 - dodoc COPYRIGHT
319 -
320 - dodir "/usr/share/doc/rust-${PV}/"
321 - mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die
322 - rmdir "${D}/usr/share/doc/rust/" || die
323 -
324 - cat <<-EOF > "${T}"/50${P}
325 - LDPATH="/usr/$(get_libdir)/${P}"
326 - MANPATH="/usr/share/${P}/man"
327 - EOF
328 - doenvd "${T}"/50${P}
329 -
330 - cat <<-EOF > "${T}/provider-${P}"
331 - /usr/bin/rustdoc
332 - /usr/bin/rust-gdb
333 - EOF
334 - dodir /etc/env.d/rust
335 - insinto /etc/env.d/rust
336 - doins "${T}/provider-${P}"
337 -}
338 -
339 -pkg_postinst() {
340 - eselect rust update --if-unset
341 -
342 - elog "Rust installs a helper script for calling GDB now,"
343 - elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}."
344 -
345 - if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
346 - elog "install app-emacs/rust-mode to get emacs support for rust."
347 - fi
348 -
349 - if has_version app-editors/gvim || has_version app-editors/vim; then
350 - elog "install app-vim/rust-vim to get vim support for rust."
351 - fi
352 -
353 - if has_version 'app-shells/zsh'; then
354 - elog "install app-shells/rust-zshcomp to get zsh completion for rust."
355 - fi
356 -}
357 -
358 -pkg_postrm() {
359 - eselect rust unset --if-invalid
360 -}