1 |
commit: dc42fa2c119cd79cf0414f85b16f414685bfaf19 |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 8 10:09:55 2016 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 8 10:10:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc42fa2c |
7 |
|
8 |
dev-lang/rust: remove old versions |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-lang/rust/Manifest | 15 ---- |
13 |
dev-lang/rust/rust-1.2.0.ebuild | 132 ----------------------------- |
14 |
dev-lang/rust/rust-1.3.0.ebuild | 130 ---------------------------- |
15 |
dev-lang/rust/rust-1.5.0.ebuild | 133 ----------------------------- |
16 |
dev-lang/rust/rust-1.7.0-r100.ebuild | 159 ----------------------------------- |
17 |
dev-lang/rust/rust-1.7.0.ebuild | 148 -------------------------------- |
18 |
dev-lang/rust/rust-1.8.0-r100.ebuild | 159 ----------------------------------- |
19 |
dev-lang/rust/rust-1.8.0.ebuild | 158 ---------------------------------- |
20 |
8 files changed, 1034 deletions(-) |
21 |
|
22 |
diff --git a/dev-lang/rust/Manifest b/dev-lang/rust/Manifest |
23 |
index 7d66bc2..aa75c11 100644 |
24 |
--- a/dev-lang/rust/Manifest |
25 |
+++ b/dev-lang/rust/Manifest |
26 |
@@ -1,21 +1,6 @@ |
27 |
-DIST rust-stage0-2015-05-24-ba0e1cd-linux-i386-a6f22e481eabf098cc65bda97bf7e434a1fcc20b.tar.bz2 15633335 SHA256 f6787490b97923386b3469d698b700be1ab7f8d43efa427031e228a59f893993 SHA512 8b7c706d02b8198343d67b30921ba22879bc44943284b8fcf24d8de1861b64cd5441cf5b1e2551021fa8777c78073e9b492a2e79da2889368f5c47392315dbc9 WHIRLPOOL 6766d6c536eace21c9f412eb628b759338df41985eab38a9e0c47271d0b11b500c09ac8c0797384b43223419df6e21af0747bfd781a4e3052b3d6d3047ced2e6 |
28 |
-DIST rust-stage0-2015-05-24-ba0e1cd-linux-x86_64-5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c.tar.bz2 14913394 SHA256 11f7f56320bd0dff5b47bae3f80377d9514a3ad4bc983d674eb33074c95d66a0 SHA512 795d53c802480b5f54d80032e9d0aee56fa26a5bb1a5f79c6673d7646c30e0dccfa7926b1fdd4c5874d9d7b7dd245143686a52e228b17c4c96dec371daf1b625 WHIRLPOOL e098dc9a6348dc0da211b1d23ccb2b0a10e0a8b8e4babf1e710d6007e7580b8656f5788343bbafdc22dca20df247a332fac19476ffff244fc4607c1a1e7b4db5 |
29 |
-DIST rust-stage0-2015-07-26-a5c12f4-linux-i386-3459275cdf3896f678e225843fa56f0d9fdbabe8.tar.bz2 16414576 SHA256 be9581981f0daf8b573d694269e60219f09ef6ea10901b422d87dc580484199a SHA512 c0a3b8cbc710a08edacbdedc6f635a8d6665304c9c8272430f4d6c5847fda2cef852e1f84f74603a4306169ceaf176b3fc77d1bc49c3bbd9dade87cfb64df30d WHIRLPOOL 69f59db907df480846d0a4faed4c751033c20d78b3ad59de018261e4732c45aea305af1ccbfdabd632c0029cf23c66bd690ef07a54602345736dc81ce9d2d1b5 |
30 |
-DIST rust-stage0-2015-07-26-a5c12f4-linux-x86_64-e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c.tar.bz2 15900837 SHA256 779943595dd63d6869c747e2a31c13095f9c5354d4530327d6f9310cc580c2ff SHA512 c6d74065f785719bb7e394e42bc64d323d00c0c3e70a4e16961055b8fbe69e557c7dc4875b3ba3d8c04184220aa35da7311d880b5f987b7105f54fdfcc20ded4 WHIRLPOOL f0c5ba9f40cc857dc5406704a3d8dfd468150d6ff0494a206d43a2e0e12c6670a23079b932f59233c64cce6af75f1e677c308e3434f9e416ac5e21951129afcb |
31 |
-DIST rust-stage0-2015-08-11-1af31d4-linux-i386-e2553bf399cd134a08ef3511a0a6ab0d7a667216.tar.bz2 16320060 SHA256 7319c60faad6dc380775e8a104c67d58b1365dbbed31a3bd15e1b8bc5004d59f SHA512 ce98bedd99dc00f60c869f3bfa4028e17f28d328b9cdae3f3279c8a7f4fb767f6bcb0655d28f17a3df581cb1a56d0326da7333d403e6921c46a51648ff2b1ef9 WHIRLPOOL 1ed9017636d421aaef053df0fd5a2d3aafbdb93f1ac7053fa7b4135189e7a926b87fa2cca93fd11112fdada72f3f9cb7ee7942cfab30540cb5e311b17b198b91 |
32 |
-DIST rust-stage0-2015-08-11-1af31d4-linux-x86_64-7df8ba9dec63ec77b857066109d4b6250f3d222f.tar.bz2 15826164 SHA256 5936f5ec4327d41f3aa9f98cbedebb6fd3d72715f8df578e0c9a669154c80bc3 SHA512 6a761971757df2fb9668f9225c2d364cc16352f61205ae88e4cce38f95e94e75e3fd8b5e8a3684c2c8550ae26091714be1d8c1602ddf286af35ea49f81b5c728 WHIRLPOOL 0d3b716efabede055e017f55ec702231c2457cde06efa093e61341bc441aee4b812ee31f9665c5cb1a2e4930a913e06286a3b59a3f63ed93378bb3427d225eb4 |
33 |
-DIST rust-stage0-2015-12-18-3391630-linux-i386-a09c4a4036151d0cb28e265101669731600e01f2.tar.bz2 17372311 SHA256 b1bfa86ed526bea5710dbbf44852fa9c49276bb8d6a6a5be6a266b162ef94d92 SHA512 1b23160ea385cfa9d5240271bc9947a2bfdb94b72147140b4b1a8241354fab456f833e0e0d32d7ba13243007ebb6d935a78fe72523d86a987d672df4caa6a90d WHIRLPOOL c399124bb75ba45011abafb37be1b6add570b079d5d2accc22abd8b774c27eb85e02b23813520838b2ce6b6dcf822b6554d6c5e94c9a7af819b8f281c79db6f0 |
34 |
-DIST rust-stage0-2015-12-18-3391630-linux-x86_64-97e2a5eb8904962df8596e95d6e5d9b574d73bf4.tar.bz2 16832231 SHA256 a8dc5203673ce43f47316beb02ee0c427edb7bbde2ab5fc662a06b52db2950e7 SHA512 e6768cdafa845b65f86069b3d35df9ec28121d1c55b5033eb34f6fdc0e20485335c977588f44d170d194550fc5f3b4b675f896ebb1e3ea05e1c96ff423343509 WHIRLPOOL 4d46083ec5e5cb57f42311518f51d4d04138b07a31b6fe29eae0da55f3137ef4e122f0d2d0f0cfd139316ee90f2d0c8211b80f37bcec6b8b65efb4189e391753 |
35 |
-DIST rust-stage0-2016-02-17-4d3eebf-linux-i386-5f194aa7628c0703f0fd48adc4ec7f3cc64b98c7.tar.bz2 18682481 SHA256 e54154456ee845496f98fac8c8faf7192b4205848d45ef060ecfa0482b14cd99 SHA512 30b6a904b23f8ffeb12ea821ba855d44507468a6ffb95b0efd05385012bcad9ecdda0a7f5bf719f7d0c499f05d6b5672c05bbd052690068f414c0e9998b9dc08 WHIRLPOOL 2d8aa57812134938cfdc52f88b6a36e88ec03dec220445f6af564697f01c9c042ce1ffd4dc5d7edb1873ca5c19b7a2c473e595ea0ae8af29f9eafb1c9c2f6fac |
36 |
-DIST rust-stage0-2016-02-17-4d3eebf-linux-x86_64-d29b7607d13d64078b6324aec82926fb493f59ba.tar.bz2 18113844 SHA256 8deb8b687cb7d89ea943745c16c1061225fcbb5c64c0c121cdd1cb68673e683e SHA512 bc27a7a8cea328c2ad677dbdb261563fba0354313b53f600924cdb147c3b9a5ad7ef8354114e43e0803016c7cc0dad6af274502259edecbde385383a2160b398 WHIRLPOOL d217ea287a377a691335ec4206b515bfb7904a6393e412c5376e5a6ae99870bf9a31065e8815e3cf1348535dabf60b97dcbf4934a66c8ef2264b08eedd3815be |
37 |
DIST rust-stage0-2016-03-18-235d774-linux-i386-0e0e4448b80d0a12b75485795244bb3857a0a7ef.tar.bz2 18489693 SHA256 36958fcd55387d7b1b86618111fa8660c1d488fe191e85ad9659c6470874322b SHA512 3e729e7c9340060c5eaa13b0420cc3b10eb968312bfceb4d072e5e16673a393c1b51b34b2c43f91953a2b44f0b0fe549215e5c284695d5a3626a3dc703693fd6 WHIRLPOOL 9a7064933b4387de6c6158c5a9645be1b3cd05d1cbd66c8e30a5efb63d08fd8aed8c5695e850fb3e3f92577b59fd2243b467d9ed509b913f652abddd206f68db |
38 |
DIST rust-stage0-2016-03-18-235d774-linux-x86_64-1273b6b6aed421c9e40c59f366d0df6092ec0397.tar.bz2 17950752 SHA256 a8ca657d78162a9f0a69a1ec8b0460e97259cdf2e6353ee256ae206876c9637e SHA512 77694229b9aca58eab866acf6d52f381d9b4faa8c7698c17b2de90fa396eba17f3e12411b2cc4639607f7418d1382365e15039fb4ed247158a7d5542ce3b8b59 WHIRLPOOL a58f3d9e8e319b4852513e4c172dc733f5080032eb6f2c33ddd9b336891586318761db0e6dcc3ff54113cc32ee256fd356a672cb50ae316ca4d1a7be3d5591d6 |
39 |
DIST rustc-1.10.0-src.tar.gz 25967780 SHA256 a4015aacf4f6d8a8239253c4da46e7abaa8584f8214d1828d2ff0a8f56176869 SHA512 fdef0a4c458ce687ab2921fb879cf6f68ae7ec4d780e407fea80cb751d70d80e621fc37756358d8336383c24646d9e2869215b3591b2240904206df2e58a7e45 WHIRLPOOL daa9775e515f6466c7344518e2afff96d01f62bb15cb01e6d4889ec338189b9584f7f9b5d6d340e00aa995490a09eecad1c4db0d98e068e4256081724c668644 |
40 |
-DIST rustc-1.2.0-src.tar.gz 23863924 SHA256 ea6eb983daf2a073df57186a58f0d4ce0e85c711bec13c627a8c85d51b6a6d78 SHA512 2596c0dddff0276916edbb7d68ae610209c75d53d89f1f15dc56ad7408e235dbedfcd1bba9c446dd1e32a8d274cedebb7b32b328223280c28ab546bbd06f1c76 WHIRLPOOL 741118f7e265129bfd0f0d66487e12dc8f95018d8479e8f3cde555160abdb29ade9c69607a2daa088ae3dbe74c1120c16141248cd771a6e56759ce10cfc45a62 |
41 |
-DIST rustc-1.3.0-src.tar.gz 24308223 SHA256 ea02d7bc9e7de5b8be3fe6b37ea9b2bd823f9a532c8e4c47d02f37f24ffa3126 SHA512 d9a4851d958e6a62f0997af5451c1c1ba2bd3ace595cf9f1dbc5977a6efb0ba802d108d4aa6fc29540c41b36d7f5a04e518700b5c1426fe18d1627d5fa779d58 WHIRLPOOL 21d9216bfa31b71e04ad35b4d72fd2b7b466b89cf62be2f9b0d734af21d1cba2050171bf3b9757c14a675fae11b869fcda30abc528e07ddcdc9d1a2bf0e3b7dc |
42 |
-DIST rustc-1.5.0-src.tar.gz 24586539 SHA256 641037af7b7b6cad0b231cc20671f8a314fbf2f40fc0901d0b877c39fc8da5a0 SHA512 c56f02f39093e5ce1f9a29b295ea1a6d69192d554a64c1b49b6bb5328884e9bbfb1681ea4362166e3fa91ff4b4e17c9a9de6720a70d22a852060bd6b9de6a30b WHIRLPOOL a6138754168065dca7d5a68afd99dc9a2eb0abcbf2eb8d3908646c2e3e6fd84b344dd96ba7d2fe6db4ae703baa0ab60a3594471705b5173ba3e45a959b0a97c1 |
43 |
-DIST rustc-1.7.0-src.tar.gz 25097611 SHA256 6df96059d87b718676d9cd879672e4e22418b6093396b4ccb5b5b66df37bf13a SHA512 ef49bba9e8324c5b24a257131a31df4902f13ee4e0b763a2260df6ac8abbb150a6b9e5b36f52c6dc6c3f63fd3b1a9fb303a072973b054851f5d03a0d32df7317 WHIRLPOOL f39953c678f42fa44da4b27eddb87627cd9b10a9002457c895cbae119d778a7496aebb1776cf0cfb4cd48f54513faf3d1b3b1afb7ee879d93978351443eb5963 |
44 |
-DIST rustc-1.8.0-src.tar.gz 25641320 SHA256 af4466147e8d4db4de2a46e07494d2dc2d96313c5b37da34237f511c905f7449 SHA512 96e1ef3644053849354f84737f0a9ae09786f6a1a16ca5f10cba261b2bc5f2e82e8d369ed7430116d0b9bf8a52c2b16bd581d042be86862a9095fd161f3283bd WHIRLPOOL b70ff752d9cc8efd910c9889372fd6303a40b0cce3e4ef0d566e8ec9274cf80b1739955089cd6b73300c675e89d1edba2765e2f7e9f793b036286813ed55626d |
45 |
DIST rustc-1.9.0-i686-unknown-linux-gnu.tar.gz 45887218 SHA256 2951dec835827974d03c7aafbf2c969f39bb530e1c200fd46f90bc01772fae39 SHA512 6d799a464f93aecb24ded4e9af634d7852f9930968814700e90353888657f9f556dda156455cb8cabca0e5f42c8d0f7864d43294687c8ce57518e21bebad99f7 WHIRLPOOL da145280c6558cd36d40450203fc61081282a64a2145b75998806964be731e91378e571a9c9b6b7fe1b488c6dd303105a9f47c0b1c6c77a6426ed1aaa0756df4 |
46 |
DIST rustc-1.9.0-src.tar.gz 25859714 SHA256 b19b21193d7d36039debeaaa1f61cbf98787e0ce94bd85c5cbe2a59462d7cfcd SHA512 bb23d529daaea17cd6358057ad7c219b1bf2206331a9813520f9e3a519698f6d274a6c25f579dab9e8e48fe0c6e51e7eb473885cb1fb65128e715e06778b62f7 WHIRLPOOL 23393e5842d2af5bffaca34909be5293198a2ceedb3d6db55920e375e3860411cf51f5148264d9e172ec088f26706529f24ed05d97ca09387f0d25f90c23ed85 |
47 |
DIST rustc-1.9.0-x86_64-unknown-linux-gnu.tar.gz 45246956 SHA256 d0704d10237c66c3efafa6f7e5570c59a1d3fe5c6d99487540f90ebb37cd84c4 SHA512 37a4c62f09e2b49cf7a898eeefd3843ef17f3dc433a4f55cb5c3d5c315effb9e0750c275bb0fc91e5ada6c42924af5c7f890874c5917d41a4723c60b209d1c0d WHIRLPOOL f3aeaaf9c93a177c2a944eaae994b5d3c6d2c31923d468bda16cce845e3ae87ac3747c2f025ec1e78054cc001d3c3abf629534f7b6b454e394192ead8e614d3d |
48 |
|
49 |
diff --git a/dev-lang/rust/rust-1.2.0.ebuild b/dev-lang/rust/rust-1.2.0.ebuild |
50 |
deleted file mode 100644 |
51 |
index 783db68..0000000 |
52 |
--- a/dev-lang/rust/rust-1.2.0.ebuild |
53 |
+++ /dev/null |
54 |
@@ -1,132 +0,0 @@ |
55 |
-# Copyright 1999-2015 Gentoo Foundation |
56 |
-# Distributed under the terms of the GNU General Public License v2 |
57 |
-# $Id$ |
58 |
- |
59 |
-EAPI=5 |
60 |
- |
61 |
-PYTHON_COMPAT=( python2_7 ) |
62 |
- |
63 |
-inherit eutils multilib python-any-r1 |
64 |
- |
65 |
-MY_P="rustc-${PV}" |
66 |
- |
67 |
-DESCRIPTION="Systems programming language from Mozilla" |
68 |
-HOMEPAGE="http://www.rust-lang.org/" |
69 |
- |
70 |
-SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz |
71 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-05-24-ba0e1cd-linux-x86_64-5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c.tar.bz2 ) |
72 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-05-24-ba0e1cd-linux-i386-a6f22e481eabf098cc65bda97bf7e434a1fcc20b.tar.bz2 ) |
73 |
-" |
74 |
- |
75 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
76 |
-SLOT="stable" |
77 |
-KEYWORDS="~amd64 ~x86" |
78 |
- |
79 |
-IUSE="clang debug doc libcxx +system-llvm" |
80 |
-REQUIRED_USE="libcxx? ( clang )" |
81 |
- |
82 |
-CDEPEND="libcxx? ( sys-libs/libcxx ) |
83 |
- >=app-eselect/eselect-rust-0.3_pre20150425 |
84 |
- !dev-lang/rust:0 |
85 |
-" |
86 |
-DEPEND="${CDEPEND} |
87 |
- ${PYTHON_DEPS} |
88 |
- >=dev-lang/perl-5.0 |
89 |
- clang? ( sys-devel/clang ) |
90 |
- system-llvm? ( >=sys-devel/llvm-3.6.0[multitarget(-)] |
91 |
- <sys-devel/llvm-3.7.0[multitarget(-)] ) |
92 |
-" |
93 |
-RDEPEND="${CDEPEND}" |
94 |
- |
95 |
-S=${WORKDIR}/${MY_P} |
96 |
- |
97 |
-src_unpack() { |
98 |
- unpack "${MY_P}-src.tar.gz" || die |
99 |
- mkdir "${MY_P}/dl" || die |
100 |
- cp "${DISTDIR}/rust-stage0"* "${MY_P}/dl/" || die |
101 |
-} |
102 |
- |
103 |
-src_prepare() { |
104 |
- local postfix="gentoo-${SLOT}" |
105 |
- sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${postfix}/" mk/main.mk || die |
106 |
- epatch "${FILESDIR}/${PN}-1.1.0-install.patch" |
107 |
-} |
108 |
- |
109 |
-src_configure() { |
110 |
- export CFG_DISABLE_LDCONFIG="notempty" |
111 |
- |
112 |
- "${ECONF_SOURCE:-.}"/configure \ |
113 |
- --prefix="${EPREFIX}/usr" \ |
114 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
115 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
116 |
- --release-channel=${SLOT} \ |
117 |
- --disable-manage-submodules \ |
118 |
- $(use_enable clang) \ |
119 |
- $(use_enable debug) \ |
120 |
- $(use_enable debug llvm-assertions) \ |
121 |
- $(use_enable !debug optimize) \ |
122 |
- $(use_enable !debug optimize-cxx) \ |
123 |
- $(use_enable !debug optimize-llvm) \ |
124 |
- $(use_enable !debug optimize-tests) \ |
125 |
- $(use_enable doc docs) \ |
126 |
- $(use_enable libcxx libcpp) \ |
127 |
- $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
128 |
- || die |
129 |
-} |
130 |
- |
131 |
-src_compile() { |
132 |
- emake VERBOSE=1 |
133 |
-} |
134 |
- |
135 |
-src_install() { |
136 |
- unset SUDO_USER |
137 |
- |
138 |
- default |
139 |
- |
140 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
141 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
142 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
143 |
- |
144 |
- dodoc COPYRIGHT LICENSE-APACHE LICENSE-MIT |
145 |
- |
146 |
- dodir "/usr/share/doc/rust-${PV}/" |
147 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
148 |
- rmdir "${D}/usr/share/doc/rust/" || die |
149 |
- |
150 |
- cat <<-EOF > "${T}"/50${P} |
151 |
- LDPATH="/usr/$(get_libdir)/${P}" |
152 |
- MANPATH="/usr/share/${P}/man" |
153 |
- EOF |
154 |
- doenvd "${T}"/50${P} |
155 |
- |
156 |
- cat <<-EOF > "${T}/provider-${P}" |
157 |
- /usr/bin/rustdoc |
158 |
- /usr/bin/rust-gdb |
159 |
- EOF |
160 |
- dodir /etc/env.d/rust |
161 |
- insinto /etc/env.d/rust |
162 |
- doins "${T}/provider-${P}" |
163 |
-} |
164 |
- |
165 |
-pkg_postinst() { |
166 |
- eselect rust update --if-unset |
167 |
- |
168 |
- elog "Rust installs a helper script for calling GDB now," |
169 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
170 |
- |
171 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
172 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
173 |
- fi |
174 |
- |
175 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
176 |
- elog "install app-vim/rust-mode to get vim support for rust." |
177 |
- fi |
178 |
- |
179 |
- if has_version 'app-shells/zsh'; then |
180 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
181 |
- fi |
182 |
-} |
183 |
- |
184 |
-pkg_postrm() { |
185 |
- eselect rust unset --if-invalid |
186 |
-} |
187 |
|
188 |
diff --git a/dev-lang/rust/rust-1.3.0.ebuild b/dev-lang/rust/rust-1.3.0.ebuild |
189 |
deleted file mode 100644 |
190 |
index 2149bdc..0000000 |
191 |
--- a/dev-lang/rust/rust-1.3.0.ebuild |
192 |
+++ /dev/null |
193 |
@@ -1,130 +0,0 @@ |
194 |
-# Copyright 1999-2015 Gentoo Foundation |
195 |
-# Distributed under the terms of the GNU General Public License v2 |
196 |
-# $Id$ |
197 |
- |
198 |
-EAPI=5 |
199 |
- |
200 |
-PYTHON_COMPAT=( python2_7 ) |
201 |
- |
202 |
-inherit eutils multilib python-any-r1 |
203 |
- |
204 |
-MY_P="rustc-${PV}" |
205 |
- |
206 |
-DESCRIPTION="Systems programming language from Mozilla" |
207 |
-HOMEPAGE="http://www.rust-lang.org/" |
208 |
- |
209 |
-SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz |
210 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-07-26-a5c12f4-linux-x86_64-e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c.tar.bz2 ) |
211 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-07-26-a5c12f4-linux-i386-3459275cdf3896f678e225843fa56f0d9fdbabe8.tar.bz2 ) |
212 |
-" |
213 |
- |
214 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
215 |
-SLOT="stable" |
216 |
-KEYWORDS="~amd64 ~x86" |
217 |
- |
218 |
-IUSE="clang debug doc libcxx" |
219 |
-REQUIRED_USE="libcxx? ( clang )" |
220 |
- |
221 |
-CDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 |
222 |
- libcxx? ( sys-libs/libcxx ) |
223 |
-" |
224 |
-DEPEND="${CDEPEND} |
225 |
- ${PYTHON_DEPS} |
226 |
- >=dev-lang/perl-5.0 |
227 |
- clang? ( sys-devel/clang ) |
228 |
-" |
229 |
-RDEPEND="${CDEPEND}" |
230 |
- |
231 |
-S=${WORKDIR}/${MY_P} |
232 |
- |
233 |
-src_unpack() { |
234 |
- unpack "${MY_P}-src.tar.gz" || die |
235 |
- mkdir "${MY_P}/dl" || die |
236 |
- cp "${DISTDIR}/rust-stage0"* "${MY_P}/dl/" || die |
237 |
-} |
238 |
- |
239 |
-src_prepare() { |
240 |
- local postfix="gentoo-${SLOT}" |
241 |
- sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${postfix}/" mk/main.mk || die |
242 |
- find mk -name '*.mk' -exec \ |
243 |
- sed -i -e "s/-Werror / /g" {} \; || die |
244 |
- epatch "${FILESDIR}/${PN}-1.1.0-install.patch" |
245 |
-} |
246 |
- |
247 |
-src_configure() { |
248 |
- export CFG_DISABLE_LDCONFIG="notempty" |
249 |
- |
250 |
- "${ECONF_SOURCE:-.}"/configure \ |
251 |
- --prefix="${EPREFIX}/usr" \ |
252 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
253 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
254 |
- --release-channel=${SLOT} \ |
255 |
- --disable-manage-submodules \ |
256 |
- $(use_enable clang) \ |
257 |
- $(use_enable debug) \ |
258 |
- $(use_enable debug llvm-assertions) \ |
259 |
- $(use_enable !debug optimize) \ |
260 |
- $(use_enable !debug optimize-cxx) \ |
261 |
- $(use_enable !debug optimize-llvm) \ |
262 |
- $(use_enable !debug optimize-tests) \ |
263 |
- $(use_enable doc docs) \ |
264 |
- $(use_enable libcxx libcpp) \ |
265 |
- || die |
266 |
-} |
267 |
- |
268 |
-src_compile() { |
269 |
- emake VERBOSE=1 |
270 |
-} |
271 |
- |
272 |
-src_install() { |
273 |
- unset SUDO_USER |
274 |
- |
275 |
- default |
276 |
- |
277 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
278 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
279 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
280 |
- |
281 |
- dodoc COPYRIGHT LICENSE-APACHE LICENSE-MIT |
282 |
- |
283 |
- dodir "/usr/share/doc/rust-${PV}/" |
284 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
285 |
- rmdir "${D}/usr/share/doc/rust/" || die |
286 |
- |
287 |
- cat <<-EOF > "${T}"/50${P} |
288 |
- LDPATH="/usr/$(get_libdir)/${P}" |
289 |
- MANPATH="/usr/share/${P}/man" |
290 |
- EOF |
291 |
- doenvd "${T}"/50${P} |
292 |
- |
293 |
- cat <<-EOF > "${T}/provider-${P}" |
294 |
- /usr/bin/rustdoc |
295 |
- /usr/bin/rust-gdb |
296 |
- EOF |
297 |
- dodir /etc/env.d/rust |
298 |
- insinto /etc/env.d/rust |
299 |
- doins "${T}/provider-${P}" |
300 |
-} |
301 |
- |
302 |
-pkg_postinst() { |
303 |
- eselect rust update --if-unset |
304 |
- |
305 |
- elog "Rust installs a helper script for calling GDB now," |
306 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
307 |
- |
308 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
309 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
310 |
- fi |
311 |
- |
312 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
313 |
- elog "install app-vim/rust-mode to get vim support for rust." |
314 |
- fi |
315 |
- |
316 |
- if has_version 'app-shells/zsh'; then |
317 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
318 |
- fi |
319 |
-} |
320 |
- |
321 |
-pkg_postrm() { |
322 |
- eselect rust unset --if-invalid |
323 |
-} |
324 |
|
325 |
diff --git a/dev-lang/rust/rust-1.5.0.ebuild b/dev-lang/rust/rust-1.5.0.ebuild |
326 |
deleted file mode 100644 |
327 |
index 49dc72a..0000000 |
328 |
--- a/dev-lang/rust/rust-1.5.0.ebuild |
329 |
+++ /dev/null |
330 |
@@ -1,133 +0,0 @@ |
331 |
-# Copyright 1999-2016 Gentoo Foundation |
332 |
-# Distributed under the terms of the GNU General Public License v2 |
333 |
-# $Id$ |
334 |
- |
335 |
-EAPI=5 |
336 |
- |
337 |
-PYTHON_COMPAT=( python2_7 ) |
338 |
- |
339 |
-inherit eutils multilib python-any-r1 |
340 |
- |
341 |
-MY_P="rustc-${PV}" |
342 |
- |
343 |
-DESCRIPTION="Systems programming language from Mozilla" |
344 |
-HOMEPAGE="http://www.rust-lang.org/" |
345 |
- |
346 |
-SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz |
347 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-08-11-1af31d4-linux-x86_64-7df8ba9dec63ec77b857066109d4b6250f3d222f.tar.bz2 ) |
348 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-08-11-1af31d4-linux-i386-e2553bf399cd134a08ef3511a0a6ab0d7a667216.tar.bz2 ) |
349 |
-" |
350 |
- |
351 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
352 |
-SLOT="stable" |
353 |
-KEYWORDS="~amd64 ~x86" |
354 |
- |
355 |
-IUSE="clang debug doc libcxx system-llvm" |
356 |
-REQUIRED_USE="libcxx? ( clang )" |
357 |
- |
358 |
-CDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 |
359 |
- libcxx? ( sys-libs/libcxx ) |
360 |
-" |
361 |
-DEPEND="${CDEPEND} |
362 |
- ${PYTHON_DEPS} |
363 |
- >=dev-lang/perl-5.0 |
364 |
- clang? ( sys-devel/clang ) |
365 |
- system-llvm? ( >=sys-devel/llvm-3.6.0[multitarget(-)] |
366 |
- <sys-devel/llvm-3.7.0[multitarget(-)] ) |
367 |
-" |
368 |
-RDEPEND="${CDEPEND}" |
369 |
- |
370 |
-S=${WORKDIR}/${MY_P} |
371 |
- |
372 |
-src_unpack() { |
373 |
- unpack "${MY_P}-src.tar.gz" || die |
374 |
- mkdir "${MY_P}/dl" || die |
375 |
- cp "${DISTDIR}/rust-stage0"* "${MY_P}/dl/" || die |
376 |
-} |
377 |
- |
378 |
-src_prepare() { |
379 |
- local postfix="gentoo-${SLOT}" |
380 |
- sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${postfix}/" mk/main.mk || die |
381 |
- find mk -name '*.mk' -exec \ |
382 |
- sed -i -e "s/-Werror / /g" {} \; || die |
383 |
- epatch "${FILESDIR}/${PN}-1.1.0-install.patch" |
384 |
-} |
385 |
- |
386 |
-src_configure() { |
387 |
- export CFG_DISABLE_LDCONFIG="notempty" |
388 |
- |
389 |
- "${ECONF_SOURCE:-.}"/configure \ |
390 |
- --prefix="${EPREFIX}/usr" \ |
391 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
392 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
393 |
- --release-channel=${SLOT} \ |
394 |
- --disable-manage-submodules \ |
395 |
- $(use_enable clang) \ |
396 |
- $(use_enable debug) \ |
397 |
- $(use_enable debug llvm-assertions) \ |
398 |
- $(use_enable !debug optimize) \ |
399 |
- $(use_enable !debug optimize-cxx) \ |
400 |
- $(use_enable !debug optimize-llvm) \ |
401 |
- $(use_enable !debug optimize-tests) \ |
402 |
- $(use_enable doc docs) \ |
403 |
- $(use_enable libcxx libcpp) \ |
404 |
- $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
405 |
- || die |
406 |
-} |
407 |
- |
408 |
-src_compile() { |
409 |
- emake VERBOSE=1 |
410 |
-} |
411 |
- |
412 |
-src_install() { |
413 |
- unset SUDO_USER |
414 |
- |
415 |
- default |
416 |
- |
417 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
418 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
419 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
420 |
- |
421 |
- dodoc COPYRIGHT LICENSE-APACHE LICENSE-MIT |
422 |
- |
423 |
- dodir "/usr/share/doc/rust-${PV}/" |
424 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
425 |
- rmdir "${D}/usr/share/doc/rust/" || die |
426 |
- |
427 |
- cat <<-EOF > "${T}"/50${P} |
428 |
- LDPATH="/usr/$(get_libdir)/${P}" |
429 |
- MANPATH="/usr/share/${P}/man" |
430 |
- EOF |
431 |
- doenvd "${T}"/50${P} |
432 |
- |
433 |
- cat <<-EOF > "${T}/provider-${P}" |
434 |
- /usr/bin/rustdoc |
435 |
- /usr/bin/rust-gdb |
436 |
- EOF |
437 |
- dodir /etc/env.d/rust |
438 |
- insinto /etc/env.d/rust |
439 |
- doins "${T}/provider-${P}" |
440 |
-} |
441 |
- |
442 |
-pkg_postinst() { |
443 |
- eselect rust update --if-unset |
444 |
- |
445 |
- elog "Rust installs a helper script for calling GDB now," |
446 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
447 |
- |
448 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
449 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
450 |
- fi |
451 |
- |
452 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
453 |
- elog "install app-vim/rust-mode to get vim support for rust." |
454 |
- fi |
455 |
- |
456 |
- if has_version 'app-shells/zsh'; then |
457 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
458 |
- fi |
459 |
-} |
460 |
- |
461 |
-pkg_postrm() { |
462 |
- eselect rust unset --if-invalid |
463 |
-} |
464 |
|
465 |
diff --git a/dev-lang/rust/rust-1.7.0-r100.ebuild b/dev-lang/rust/rust-1.7.0-r100.ebuild |
466 |
deleted file mode 100644 |
467 |
index 5772789..0000000 |
468 |
--- a/dev-lang/rust/rust-1.7.0-r100.ebuild |
469 |
+++ /dev/null |
470 |
@@ -1,159 +0,0 @@ |
471 |
-# Copyright 1999-2016 Gentoo Foundation |
472 |
-# Distributed under the terms of the GNU General Public License v2 |
473 |
-# $Id$ |
474 |
- |
475 |
-EAPI=6 |
476 |
- |
477 |
-PYTHON_COMPAT=( python2_7 ) |
478 |
- |
479 |
-inherit python-any-r1 versionator toolchain-funcs |
480 |
- |
481 |
-if [[ ${PV} = *beta* ]]; then |
482 |
- betaver=${PV//*beta} |
483 |
- BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}" |
484 |
- MY_P="rustc-beta" |
485 |
- SLOT="beta/${PV}" |
486 |
- SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.gz" |
487 |
- KEYWORDS="" |
488 |
-else |
489 |
- ABI_VER="$(get_version_component_range 1-2)" |
490 |
- SLOT="stable/${ABI_VER}" |
491 |
- MY_P="rustc-${PV}" |
492 |
- SRC="${MY_P}-src.tar.gz" |
493 |
- KEYWORDS="~amd64 ~x86" |
494 |
-fi |
495 |
- |
496 |
-# from src/snapshots.txt |
497 |
-RUST_SNAPSHOT_DATE="2015-12-18" |
498 |
-RUST_SNAPSHOT_SRCHASH="3391630" |
499 |
-RUST_SNAPSHOT_HASH_amd64="97e2a5eb8904962df8596e95d6e5d9b574d73bf4" |
500 |
-RUST_SNAPSHOT_HASH_x86="a09c4a4036151d0cb28e265101669731600e01f2" |
501 |
-RUST_STAGE0="rust-stage0-${RUST_SNAPSHOT_DATE}-${RUST_SNAPSHOT_SRCHASH}" |
502 |
-RUST_STAGE0_amd64="${RUST_STAGE0}-linux-x86_64-${RUST_SNAPSHOT_HASH_amd64}" |
503 |
-RUST_STAGE0_x86="${RUST_STAGE0}-linux-i386-${RUST_SNAPSHOT_HASH_x86}" |
504 |
- |
505 |
-DESCRIPTION="Systems programming language from Mozilla" |
506 |
-HOMEPAGE="http://www.rust-lang.org/" |
507 |
- |
508 |
-SRC_URI="http://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.gz |
509 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_amd64}.tar.bz2 ) |
510 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_x86}.tar.bz2 ) |
511 |
-" |
512 |
- |
513 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
514 |
- |
515 |
-IUSE="clang debug doc libcxx +system-llvm" |
516 |
-REQUIRED_USE="libcxx? ( clang )" |
517 |
- |
518 |
-RDEPEND="libcxx? ( sys-libs/libcxx ) |
519 |
- system-llvm? ( >=sys-devel/llvm-3.7.1-r1:=[multitarget] |
520 |
- <sys-devel/llvm-3.8.0:=[multitarget] ) |
521 |
-" |
522 |
- |
523 |
-DEPEND="${RDEPEND} |
524 |
- ${PYTHON_DEPS} |
525 |
- >=dev-lang/perl-5.0 |
526 |
- clang? ( sys-devel/clang ) |
527 |
-" |
528 |
- |
529 |
-PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425" |
530 |
- |
531 |
-S="${WORKDIR}/${MY_P}" |
532 |
- |
533 |
-src_unpack() { |
534 |
- unpack "rustc-${PV}-src.tar.gz" || die |
535 |
- mkdir "${MY_P}/dl" || die |
536 |
- local stagename="RUST_STAGE0_${ARCH}" |
537 |
- local stage0="${!stagename}" |
538 |
- cp "${DISTDIR}/${stage0}.tar.bz2" "${MY_P}/dl/" || die "cp stage0" |
539 |
-} |
540 |
- |
541 |
-src_prepare() { |
542 |
- find mk -name '*.mk' -exec \ |
543 |
- sed -i -e "s/-Werror / /g" {} \; || die |
544 |
- |
545 |
- eapply_user |
546 |
-} |
547 |
- |
548 |
-src_configure() { |
549 |
- export CFG_DISABLE_LDCONFIG="notempty" |
550 |
- |
551 |
- "${ECONF_SOURCE:-.}"/configure \ |
552 |
- --prefix="${EPREFIX}/usr" \ |
553 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
554 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
555 |
- --release-channel=${SLOT%%/*} \ |
556 |
- --disable-manage-submodules \ |
557 |
- --default-linker=$(tc-getBUILD_CC) \ |
558 |
- --default-ar=$(tc-getBUILD_AR) \ |
559 |
- --python=${EPYTHON} \ |
560 |
- --disable-rpath \ |
561 |
- $(use_enable clang) \ |
562 |
- $(use_enable debug) \ |
563 |
- $(use_enable debug llvm-assertions) \ |
564 |
- $(use_enable !debug optimize) \ |
565 |
- $(use_enable !debug optimize-cxx) \ |
566 |
- $(use_enable !debug optimize-llvm) \ |
567 |
- $(use_enable !debug optimize-tests) \ |
568 |
- $(use_enable doc docs) \ |
569 |
- $(use_enable libcxx libcpp) \ |
570 |
- $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
571 |
- || die |
572 |
-} |
573 |
- |
574 |
-src_compile() { |
575 |
- emake VERBOSE=1 |
576 |
-} |
577 |
- |
578 |
-src_install() { |
579 |
- unset SUDO_USER |
580 |
- |
581 |
- default |
582 |
- |
583 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
584 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
585 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
586 |
- |
587 |
- dodoc COPYRIGHT |
588 |
- |
589 |
- dodir "/usr/share/doc/rust-${PV}/" |
590 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
591 |
- rmdir "${D}/usr/share/doc/rust/" || die |
592 |
- |
593 |
- cat <<-EOF > "${T}"/50${P} |
594 |
- LDPATH="/usr/$(get_libdir)/${P}" |
595 |
- MANPATH="/usr/share/${P}/man" |
596 |
- EOF |
597 |
- doenvd "${T}"/50${P} |
598 |
- |
599 |
- cat <<-EOF > "${T}/provider-${P}" |
600 |
- /usr/bin/rustdoc |
601 |
- /usr/bin/rust-gdb |
602 |
- EOF |
603 |
- dodir /etc/env.d/rust |
604 |
- insinto /etc/env.d/rust |
605 |
- doins "${T}/provider-${P}" |
606 |
-} |
607 |
- |
608 |
-pkg_postinst() { |
609 |
- eselect rust update --if-unset |
610 |
- |
611 |
- elog "Rust installs a helper script for calling GDB now," |
612 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
613 |
- |
614 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
615 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
616 |
- fi |
617 |
- |
618 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
619 |
- elog "install app-vim/rust-mode to get vim support for rust." |
620 |
- fi |
621 |
- |
622 |
- if has_version 'app-shells/zsh'; then |
623 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
624 |
- fi |
625 |
-} |
626 |
- |
627 |
-pkg_postrm() { |
628 |
- eselect rust unset --if-invalid |
629 |
-} |
630 |
|
631 |
diff --git a/dev-lang/rust/rust-1.7.0.ebuild b/dev-lang/rust/rust-1.7.0.ebuild |
632 |
deleted file mode 100644 |
633 |
index 1e5c6aa..0000000 |
634 |
--- a/dev-lang/rust/rust-1.7.0.ebuild |
635 |
+++ /dev/null |
636 |
@@ -1,148 +0,0 @@ |
637 |
-# Copyright 1999-2016 Gentoo Foundation |
638 |
-# Distributed under the terms of the GNU General Public License v2 |
639 |
-# $Id$ |
640 |
- |
641 |
-EAPI=6 |
642 |
- |
643 |
-PYTHON_COMPAT=( python2_7 ) |
644 |
- |
645 |
-inherit python-any-r1 versionator toolchain-funcs |
646 |
- |
647 |
-MY_P="rustc-${PV}" |
648 |
-ABI_VER="$(get_version_component_range 1-2)" |
649 |
- |
650 |
-# from src/snapshots.txt |
651 |
-RUST_SNAPSHOT_DATE="2015-12-18" |
652 |
-RUST_SNAPSHOT_SRCHASH="3391630" |
653 |
-RUST_SNAPSHOT_HASH_amd64="97e2a5eb8904962df8596e95d6e5d9b574d73bf4" |
654 |
-RUST_SNAPSHOT_HASH_x86="a09c4a4036151d0cb28e265101669731600e01f2" |
655 |
-RUST_STAGE0="rust-stage0-${RUST_SNAPSHOT_DATE}-${RUST_SNAPSHOT_SRCHASH}" |
656 |
-RUST_STAGE0_amd64="${RUST_STAGE0}-linux-x86_64-${RUST_SNAPSHOT_HASH_amd64}" |
657 |
-RUST_STAGE0_x86="${RUST_STAGE0}-linux-i386-${RUST_SNAPSHOT_HASH_x86}" |
658 |
- |
659 |
-DESCRIPTION="Systems programming language from Mozilla" |
660 |
-HOMEPAGE="http://www.rust-lang.org/" |
661 |
- |
662 |
-SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz |
663 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_amd64}.tar.bz2 ) |
664 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_x86}.tar.bz2 ) |
665 |
-" |
666 |
- |
667 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
668 |
-SLOT="stable/${ABI_VER}" |
669 |
-KEYWORDS="~amd64 ~x86" |
670 |
- |
671 |
-IUSE="clang debug doc libcxx +system-llvm" |
672 |
-REQUIRED_USE="libcxx? ( clang )" |
673 |
- |
674 |
-RDEPEND="libcxx? ( sys-libs/libcxx )" |
675 |
- |
676 |
-DEPEND="${RDEPEND} |
677 |
- ${PYTHON_DEPS} |
678 |
- >=dev-lang/perl-5.0 |
679 |
- clang? ( sys-devel/clang ) |
680 |
- system-llvm? ( >=sys-devel/llvm-3.6.0[multitarget] |
681 |
- <sys-devel/llvm-3.7.0[multitarget] ) |
682 |
-" |
683 |
- |
684 |
-PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425" |
685 |
- |
686 |
-S="${WORKDIR}/${MY_P}" |
687 |
- |
688 |
-src_unpack() { |
689 |
- unpack "${MY_P}-src.tar.gz" || die |
690 |
- mkdir "${MY_P}/dl" || die |
691 |
- local stagename="RUST_STAGE0_${ARCH}" |
692 |
- local stage0="${!stagename}" |
693 |
- cp "${DISTDIR}/${stage0}.tar.bz2" "${MY_P}/dl/" || die "cp stage0" |
694 |
-} |
695 |
- |
696 |
-src_prepare() { |
697 |
- find mk -name '*.mk' -exec \ |
698 |
- sed -i -e "s/-Werror / /g" {} \; || die |
699 |
- |
700 |
- eapply_user |
701 |
-} |
702 |
- |
703 |
-src_configure() { |
704 |
- export CFG_DISABLE_LDCONFIG="notempty" |
705 |
- |
706 |
- "${ECONF_SOURCE:-.}"/configure \ |
707 |
- --prefix="${EPREFIX}/usr" \ |
708 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
709 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
710 |
- --release-channel=${SLOT%%/*} \ |
711 |
- --disable-manage-submodules \ |
712 |
- --default-linker=$(tc-getBUILD_CC) \ |
713 |
- --default-ar=$(tc-getBUILD_AR) \ |
714 |
- --python=${EPYTHON} \ |
715 |
- --disable-rpath \ |
716 |
- $(use_enable clang) \ |
717 |
- $(use_enable debug) \ |
718 |
- $(use_enable debug llvm-assertions) \ |
719 |
- $(use_enable !debug optimize) \ |
720 |
- $(use_enable !debug optimize-cxx) \ |
721 |
- $(use_enable !debug optimize-llvm) \ |
722 |
- $(use_enable !debug optimize-tests) \ |
723 |
- $(use_enable doc docs) \ |
724 |
- $(use_enable libcxx libcpp) \ |
725 |
- $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
726 |
- || die |
727 |
-} |
728 |
- |
729 |
-src_compile() { |
730 |
- emake VERBOSE=1 |
731 |
-} |
732 |
- |
733 |
-src_install() { |
734 |
- unset SUDO_USER |
735 |
- |
736 |
- default |
737 |
- |
738 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
739 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
740 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
741 |
- |
742 |
- dodoc COPYRIGHT |
743 |
- |
744 |
- dodir "/usr/share/doc/rust-${PV}/" |
745 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
746 |
- rmdir "${D}/usr/share/doc/rust/" || die |
747 |
- |
748 |
- cat <<-EOF > "${T}"/50${P} |
749 |
- LDPATH="/usr/$(get_libdir)/${P}" |
750 |
- MANPATH="/usr/share/${P}/man" |
751 |
- EOF |
752 |
- doenvd "${T}"/50${P} |
753 |
- |
754 |
- cat <<-EOF > "${T}/provider-${P}" |
755 |
- /usr/bin/rustdoc |
756 |
- /usr/bin/rust-gdb |
757 |
- EOF |
758 |
- dodir /etc/env.d/rust |
759 |
- insinto /etc/env.d/rust |
760 |
- doins "${T}/provider-${P}" |
761 |
-} |
762 |
- |
763 |
-pkg_postinst() { |
764 |
- eselect rust update --if-unset |
765 |
- |
766 |
- elog "Rust installs a helper script for calling GDB now," |
767 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
768 |
- |
769 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
770 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
771 |
- fi |
772 |
- |
773 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
774 |
- elog "install app-vim/rust-mode to get vim support for rust." |
775 |
- fi |
776 |
- |
777 |
- if has_version 'app-shells/zsh'; then |
778 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
779 |
- fi |
780 |
-} |
781 |
- |
782 |
-pkg_postrm() { |
783 |
- eselect rust unset --if-invalid |
784 |
-} |
785 |
|
786 |
diff --git a/dev-lang/rust/rust-1.8.0-r100.ebuild b/dev-lang/rust/rust-1.8.0-r100.ebuild |
787 |
deleted file mode 100644 |
788 |
index 1b95215..0000000 |
789 |
--- a/dev-lang/rust/rust-1.8.0-r100.ebuild |
790 |
+++ /dev/null |
791 |
@@ -1,159 +0,0 @@ |
792 |
-# Copyright 1999-2016 Gentoo Foundation |
793 |
-# Distributed under the terms of the GNU General Public License v2 |
794 |
-# $Id$ |
795 |
- |
796 |
-EAPI=6 |
797 |
- |
798 |
-PYTHON_COMPAT=( python2_7 ) |
799 |
- |
800 |
-inherit python-any-r1 versionator toolchain-funcs |
801 |
- |
802 |
-if [[ ${PV} = *beta* ]]; then |
803 |
- betaver=${PV//*beta} |
804 |
- BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}" |
805 |
- MY_P="rustc-beta" |
806 |
- SLOT="beta/${PV}" |
807 |
- SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.gz" |
808 |
- KEYWORDS="" |
809 |
-else |
810 |
- ABI_VER="$(get_version_component_range 1-2)" |
811 |
- SLOT="stable/${ABI_VER}" |
812 |
- MY_P="rustc-${PV}" |
813 |
- SRC="${MY_P}-src.tar.gz" |
814 |
- KEYWORDS="~amd64 ~x86" |
815 |
-fi |
816 |
- |
817 |
-# from src/snapshots.txt |
818 |
-RUST_SNAPSHOT_DATE="2016-02-17" |
819 |
-RUST_SNAPSHOT_SRCHASH="4d3eebf" |
820 |
-RUST_SNAPSHOT_HASH_amd64="d29b7607d13d64078b6324aec82926fb493f59ba" |
821 |
-RUST_SNAPSHOT_HASH_x86="5f194aa7628c0703f0fd48adc4ec7f3cc64b98c7" |
822 |
-RUST_STAGE0="rust-stage0-${RUST_SNAPSHOT_DATE}-${RUST_SNAPSHOT_SRCHASH}" |
823 |
-RUST_STAGE0_amd64="${RUST_STAGE0}-linux-x86_64-${RUST_SNAPSHOT_HASH_amd64}" |
824 |
-RUST_STAGE0_x86="${RUST_STAGE0}-linux-i386-${RUST_SNAPSHOT_HASH_x86}" |
825 |
- |
826 |
-DESCRIPTION="Systems programming language from Mozilla" |
827 |
-HOMEPAGE="http://www.rust-lang.org/" |
828 |
- |
829 |
-SRC_URI="http://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.gz |
830 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_amd64}.tar.bz2 ) |
831 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_x86}.tar.bz2 ) |
832 |
-" |
833 |
- |
834 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
835 |
- |
836 |
-IUSE="clang debug doc libcxx +system-llvm" |
837 |
-REQUIRED_USE="libcxx? ( clang )" |
838 |
- |
839 |
-RDEPEND="libcxx? ( sys-libs/libcxx ) |
840 |
- system-llvm? ( >=sys-devel/llvm-3.7.1-r1:=[multitarget] |
841 |
- <sys-devel/llvm-3.9.0:=[multitarget] ) |
842 |
-" |
843 |
- |
844 |
-DEPEND="${RDEPEND} |
845 |
- ${PYTHON_DEPS} |
846 |
- >=dev-lang/perl-5.0 |
847 |
- clang? ( sys-devel/clang ) |
848 |
-" |
849 |
- |
850 |
-PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425" |
851 |
- |
852 |
-S="${WORKDIR}/${MY_P}" |
853 |
- |
854 |
-src_unpack() { |
855 |
- unpack "rustc-${PV}-src.tar.gz" || die |
856 |
- mkdir "${MY_P}/dl" || die |
857 |
- local stagename="RUST_STAGE0_${ARCH}" |
858 |
- local stage0="${!stagename}" |
859 |
- cp "${DISTDIR}/${stage0}.tar.bz2" "${MY_P}/dl/" || die "cp stage0" |
860 |
-} |
861 |
- |
862 |
-src_prepare() { |
863 |
- find mk -name '*.mk' -exec \ |
864 |
- sed -i -e "s/-Werror / /g" {} \; || die |
865 |
- |
866 |
- eapply_user |
867 |
-} |
868 |
- |
869 |
-src_configure() { |
870 |
- export CFG_DISABLE_LDCONFIG="notempty" |
871 |
- |
872 |
- "${ECONF_SOURCE:-.}"/configure \ |
873 |
- --prefix="${EPREFIX}/usr" \ |
874 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
875 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
876 |
- --release-channel=${SLOT%%/*} \ |
877 |
- --disable-manage-submodules \ |
878 |
- --default-linker=$(tc-getBUILD_CC) \ |
879 |
- --default-ar=$(tc-getBUILD_AR) \ |
880 |
- --python=${EPYTHON} \ |
881 |
- --disable-rpath \ |
882 |
- $(use_enable clang) \ |
883 |
- $(use_enable debug) \ |
884 |
- $(use_enable debug llvm-assertions) \ |
885 |
- $(use_enable !debug optimize) \ |
886 |
- $(use_enable !debug optimize-cxx) \ |
887 |
- $(use_enable !debug optimize-llvm) \ |
888 |
- $(use_enable !debug optimize-tests) \ |
889 |
- $(use_enable doc docs) \ |
890 |
- $(use_enable libcxx libcpp) \ |
891 |
- $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
892 |
- || die |
893 |
-} |
894 |
- |
895 |
-src_compile() { |
896 |
- emake VERBOSE=1 |
897 |
-} |
898 |
- |
899 |
-src_install() { |
900 |
- unset SUDO_USER |
901 |
- |
902 |
- default |
903 |
- |
904 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
905 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
906 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
907 |
- |
908 |
- dodoc COPYRIGHT |
909 |
- |
910 |
- dodir "/usr/share/doc/rust-${PV}/" |
911 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
912 |
- rmdir "${D}/usr/share/doc/rust/" || die |
913 |
- |
914 |
- cat <<-EOF > "${T}"/50${P} |
915 |
- LDPATH="/usr/$(get_libdir)/${P}" |
916 |
- MANPATH="/usr/share/${P}/man" |
917 |
- EOF |
918 |
- doenvd "${T}"/50${P} |
919 |
- |
920 |
- cat <<-EOF > "${T}/provider-${P}" |
921 |
- /usr/bin/rustdoc |
922 |
- /usr/bin/rust-gdb |
923 |
- EOF |
924 |
- dodir /etc/env.d/rust |
925 |
- insinto /etc/env.d/rust |
926 |
- doins "${T}/provider-${P}" |
927 |
-} |
928 |
- |
929 |
-pkg_postinst() { |
930 |
- eselect rust update --if-unset |
931 |
- |
932 |
- elog "Rust installs a helper script for calling GDB now," |
933 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
934 |
- |
935 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
936 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
937 |
- fi |
938 |
- |
939 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
940 |
- elog "install app-vim/rust-mode to get vim support for rust." |
941 |
- fi |
942 |
- |
943 |
- if has_version 'app-shells/zsh'; then |
944 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
945 |
- fi |
946 |
-} |
947 |
- |
948 |
-pkg_postrm() { |
949 |
- eselect rust unset --if-invalid |
950 |
-} |
951 |
|
952 |
diff --git a/dev-lang/rust/rust-1.8.0.ebuild b/dev-lang/rust/rust-1.8.0.ebuild |
953 |
deleted file mode 100644 |
954 |
index b72ddc3..0000000 |
955 |
--- a/dev-lang/rust/rust-1.8.0.ebuild |
956 |
+++ /dev/null |
957 |
@@ -1,158 +0,0 @@ |
958 |
-# Copyright 1999-2016 Gentoo Foundation |
959 |
-# Distributed under the terms of the GNU General Public License v2 |
960 |
-# $Id$ |
961 |
- |
962 |
-EAPI=6 |
963 |
- |
964 |
-PYTHON_COMPAT=( python2_7 ) |
965 |
- |
966 |
-inherit python-any-r1 versionator toolchain-funcs |
967 |
- |
968 |
-if [[ ${PV} = *beta* ]]; then |
969 |
- betaver=${PV//*beta} |
970 |
- BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}" |
971 |
- MY_P="rustc-beta" |
972 |
- SLOT="beta/${PV}" |
973 |
- SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.gz" |
974 |
- KEYWORDS="" |
975 |
-else |
976 |
- ABI_VER="$(get_version_component_range 1-2)" |
977 |
- SLOT="stable/${ABI_VER}" |
978 |
- MY_P="rustc-${PV}" |
979 |
- SRC="${MY_P}-src.tar.gz" |
980 |
- KEYWORDS="~amd64 ~x86" |
981 |
-fi |
982 |
- |
983 |
-# from src/snapshots.txt |
984 |
-RUST_SNAPSHOT_DATE="2016-02-17" |
985 |
-RUST_SNAPSHOT_SRCHASH="4d3eebf" |
986 |
-RUST_SNAPSHOT_HASH_amd64="d29b7607d13d64078b6324aec82926fb493f59ba" |
987 |
-RUST_SNAPSHOT_HASH_x86="5f194aa7628c0703f0fd48adc4ec7f3cc64b98c7" |
988 |
-RUST_STAGE0="rust-stage0-${RUST_SNAPSHOT_DATE}-${RUST_SNAPSHOT_SRCHASH}" |
989 |
-RUST_STAGE0_amd64="${RUST_STAGE0}-linux-x86_64-${RUST_SNAPSHOT_HASH_amd64}" |
990 |
-RUST_STAGE0_x86="${RUST_STAGE0}-linux-i386-${RUST_SNAPSHOT_HASH_x86}" |
991 |
- |
992 |
-DESCRIPTION="Systems programming language from Mozilla" |
993 |
-HOMEPAGE="http://www.rust-lang.org/" |
994 |
- |
995 |
-SRC_URI="http://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.gz |
996 |
- amd64? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_amd64}.tar.bz2 ) |
997 |
- x86? ( http://static.rust-lang.org/stage0-snapshots/${RUST_STAGE0_x86}.tar.bz2 ) |
998 |
-" |
999 |
- |
1000 |
-LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
1001 |
- |
1002 |
-IUSE="clang debug doc libcxx +system-llvm" |
1003 |
-REQUIRED_USE="libcxx? ( clang )" |
1004 |
- |
1005 |
-RDEPEND="libcxx? ( sys-libs/libcxx )" |
1006 |
- |
1007 |
-DEPEND="${RDEPEND} |
1008 |
- ${PYTHON_DEPS} |
1009 |
- >=dev-lang/perl-5.0 |
1010 |
- clang? ( sys-devel/clang ) |
1011 |
- system-llvm? ( >=sys-devel/llvm-3.6.0[multitarget] |
1012 |
- <sys-devel/llvm-3.7.0[multitarget] ) |
1013 |
-" |
1014 |
- |
1015 |
-PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425" |
1016 |
- |
1017 |
-S="${WORKDIR}/${MY_P}" |
1018 |
- |
1019 |
-src_unpack() { |
1020 |
- unpack "rustc-${PV}-src.tar.gz" || die |
1021 |
- mkdir "${MY_P}/dl" || die |
1022 |
- local stagename="RUST_STAGE0_${ARCH}" |
1023 |
- local stage0="${!stagename}" |
1024 |
- cp "${DISTDIR}/${stage0}.tar.bz2" "${MY_P}/dl/" || die "cp stage0" |
1025 |
-} |
1026 |
- |
1027 |
-src_prepare() { |
1028 |
- find mk -name '*.mk' -exec \ |
1029 |
- sed -i -e "s/-Werror / /g" {} \; || die |
1030 |
- |
1031 |
- eapply_user |
1032 |
-} |
1033 |
- |
1034 |
-src_configure() { |
1035 |
- export CFG_DISABLE_LDCONFIG="notempty" |
1036 |
- |
1037 |
- "${ECONF_SOURCE:-.}"/configure \ |
1038 |
- --prefix="${EPREFIX}/usr" \ |
1039 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
1040 |
- --mandir="${EPREFIX}/usr/share/${P}/man" \ |
1041 |
- --release-channel=${SLOT%%/*} \ |
1042 |
- --disable-manage-submodules \ |
1043 |
- --default-linker=$(tc-getBUILD_CC) \ |
1044 |
- --default-ar=$(tc-getBUILD_AR) \ |
1045 |
- --python=${EPYTHON} \ |
1046 |
- --disable-rpath \ |
1047 |
- $(use_enable clang) \ |
1048 |
- $(use_enable debug) \ |
1049 |
- $(use_enable debug llvm-assertions) \ |
1050 |
- $(use_enable !debug optimize) \ |
1051 |
- $(use_enable !debug optimize-cxx) \ |
1052 |
- $(use_enable !debug optimize-llvm) \ |
1053 |
- $(use_enable !debug optimize-tests) \ |
1054 |
- $(use_enable doc docs) \ |
1055 |
- $(use_enable libcxx libcpp) \ |
1056 |
- $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
1057 |
- || die |
1058 |
-} |
1059 |
- |
1060 |
-src_compile() { |
1061 |
- emake VERBOSE=1 |
1062 |
-} |
1063 |
- |
1064 |
-src_install() { |
1065 |
- unset SUDO_USER |
1066 |
- |
1067 |
- default |
1068 |
- |
1069 |
- mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
1070 |
- mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
1071 |
- mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
1072 |
- |
1073 |
- dodoc COPYRIGHT |
1074 |
- |
1075 |
- dodir "/usr/share/doc/rust-${PV}/" |
1076 |
- mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
1077 |
- rmdir "${D}/usr/share/doc/rust/" || die |
1078 |
- |
1079 |
- cat <<-EOF > "${T}"/50${P} |
1080 |
- LDPATH="/usr/$(get_libdir)/${P}" |
1081 |
- MANPATH="/usr/share/${P}/man" |
1082 |
- EOF |
1083 |
- doenvd "${T}"/50${P} |
1084 |
- |
1085 |
- cat <<-EOF > "${T}/provider-${P}" |
1086 |
- /usr/bin/rustdoc |
1087 |
- /usr/bin/rust-gdb |
1088 |
- EOF |
1089 |
- dodir /etc/env.d/rust |
1090 |
- insinto /etc/env.d/rust |
1091 |
- doins "${T}/provider-${P}" |
1092 |
-} |
1093 |
- |
1094 |
-pkg_postinst() { |
1095 |
- eselect rust update --if-unset |
1096 |
- |
1097 |
- elog "Rust installs a helper script for calling GDB now," |
1098 |
- elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
1099 |
- |
1100 |
- if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
1101 |
- elog "install app-emacs/rust-mode to get emacs support for rust." |
1102 |
- fi |
1103 |
- |
1104 |
- if has_version app-editors/gvim || has_version app-editors/vim; then |
1105 |
- elog "install app-vim/rust-mode to get vim support for rust." |
1106 |
- fi |
1107 |
- |
1108 |
- if has_version 'app-shells/zsh'; then |
1109 |
- elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
1110 |
- fi |
1111 |
-} |
1112 |
- |
1113 |
-pkg_postrm() { |
1114 |
- eselect rust unset --if-invalid |
1115 |
-} |