1 |
commit: a9b0d1b1b609a89da6c7cf92a19b3c7e8e203899 |
2 |
Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 1 21:41:49 2016 +0000 |
4 |
Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 21:44:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9b0d1b1 |
7 |
|
8 |
dev-lang/rust: version bump, sync with gentoo-rust overlay |
9 |
|
10 |
Gentoo-Bug: 565772 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
dev-lang/rust/Manifest | 3 + |
15 |
dev-lang/rust/rust-1.5.0.ebuild | 133 ++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 136 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/rust/Manifest b/dev-lang/rust/Manifest |
19 |
index 8fc5fbe..91d65a0 100644 |
20 |
--- a/dev-lang/rust/Manifest |
21 |
+++ b/dev-lang/rust/Manifest |
22 |
@@ -2,5 +2,8 @@ DIST rust-stage0-2015-05-24-ba0e1cd-linux-i386-a6f22e481eabf098cc65bda97bf7e434a |
23 |
DIST rust-stage0-2015-05-24-ba0e1cd-linux-x86_64-5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c.tar.bz2 14913394 SHA256 11f7f56320bd0dff5b47bae3f80377d9514a3ad4bc983d674eb33074c95d66a0 SHA512 795d53c802480b5f54d80032e9d0aee56fa26a5bb1a5f79c6673d7646c30e0dccfa7926b1fdd4c5874d9d7b7dd245143686a52e228b17c4c96dec371daf1b625 WHIRLPOOL e098dc9a6348dc0da211b1d23ccb2b0a10e0a8b8e4babf1e710d6007e7580b8656f5788343bbafdc22dca20df247a332fac19476ffff244fc4607c1a1e7b4db5 |
24 |
DIST rust-stage0-2015-07-26-a5c12f4-linux-i386-3459275cdf3896f678e225843fa56f0d9fdbabe8.tar.bz2 16414576 SHA256 be9581981f0daf8b573d694269e60219f09ef6ea10901b422d87dc580484199a SHA512 c0a3b8cbc710a08edacbdedc6f635a8d6665304c9c8272430f4d6c5847fda2cef852e1f84f74603a4306169ceaf176b3fc77d1bc49c3bbd9dade87cfb64df30d WHIRLPOOL 69f59db907df480846d0a4faed4c751033c20d78b3ad59de018261e4732c45aea305af1ccbfdabd632c0029cf23c66bd690ef07a54602345736dc81ce9d2d1b5 |
25 |
DIST rust-stage0-2015-07-26-a5c12f4-linux-x86_64-e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c.tar.bz2 15900837 SHA256 779943595dd63d6869c747e2a31c13095f9c5354d4530327d6f9310cc580c2ff SHA512 c6d74065f785719bb7e394e42bc64d323d00c0c3e70a4e16961055b8fbe69e557c7dc4875b3ba3d8c04184220aa35da7311d880b5f987b7105f54fdfcc20ded4 WHIRLPOOL f0c5ba9f40cc857dc5406704a3d8dfd468150d6ff0494a206d43a2e0e12c6670a23079b932f59233c64cce6af75f1e677c308e3434f9e416ac5e21951129afcb |
26 |
+DIST rust-stage0-2015-08-11-1af31d4-linux-i386-e2553bf399cd134a08ef3511a0a6ab0d7a667216.tar.bz2 16320060 SHA256 7319c60faad6dc380775e8a104c67d58b1365dbbed31a3bd15e1b8bc5004d59f SHA512 ce98bedd99dc00f60c869f3bfa4028e17f28d328b9cdae3f3279c8a7f4fb767f6bcb0655d28f17a3df581cb1a56d0326da7333d403e6921c46a51648ff2b1ef9 WHIRLPOOL 1ed9017636d421aaef053df0fd5a2d3aafbdb93f1ac7053fa7b4135189e7a926b87fa2cca93fd11112fdada72f3f9cb7ee7942cfab30540cb5e311b17b198b91 |
27 |
+DIST rust-stage0-2015-08-11-1af31d4-linux-x86_64-7df8ba9dec63ec77b857066109d4b6250f3d222f.tar.bz2 15826164 SHA256 5936f5ec4327d41f3aa9f98cbedebb6fd3d72715f8df578e0c9a669154c80bc3 SHA512 6a761971757df2fb9668f9225c2d364cc16352f61205ae88e4cce38f95e94e75e3fd8b5e8a3684c2c8550ae26091714be1d8c1602ddf286af35ea49f81b5c728 WHIRLPOOL 0d3b716efabede055e017f55ec702231c2457cde06efa093e61341bc441aee4b812ee31f9665c5cb1a2e4930a913e06286a3b59a3f63ed93378bb3427d225eb4 |
28 |
DIST rustc-1.2.0-src.tar.gz 23863924 SHA256 ea6eb983daf2a073df57186a58f0d4ce0e85c711bec13c627a8c85d51b6a6d78 SHA512 2596c0dddff0276916edbb7d68ae610209c75d53d89f1f15dc56ad7408e235dbedfcd1bba9c446dd1e32a8d274cedebb7b32b328223280c28ab546bbd06f1c76 WHIRLPOOL 741118f7e265129bfd0f0d66487e12dc8f95018d8479e8f3cde555160abdb29ade9c69607a2daa088ae3dbe74c1120c16141248cd771a6e56759ce10cfc45a62 |
29 |
DIST rustc-1.3.0-src.tar.gz 24308223 SHA256 ea02d7bc9e7de5b8be3fe6b37ea9b2bd823f9a532c8e4c47d02f37f24ffa3126 SHA512 d9a4851d958e6a62f0997af5451c1c1ba2bd3ace595cf9f1dbc5977a6efb0ba802d108d4aa6fc29540c41b36d7f5a04e518700b5c1426fe18d1627d5fa779d58 WHIRLPOOL 21d9216bfa31b71e04ad35b4d72fd2b7b466b89cf62be2f9b0d734af21d1cba2050171bf3b9757c14a675fae11b869fcda30abc528e07ddcdc9d1a2bf0e3b7dc |
30 |
+DIST rustc-1.5.0-src.tar.gz 24586539 SHA256 641037af7b7b6cad0b231cc20671f8a314fbf2f40fc0901d0b877c39fc8da5a0 SHA512 c56f02f39093e5ce1f9a29b295ea1a6d69192d554a64c1b49b6bb5328884e9bbfb1681ea4362166e3fa91ff4b4e17c9a9de6720a70d22a852060bd6b9de6a30b WHIRLPOOL a6138754168065dca7d5a68afd99dc9a2eb0abcbf2eb8d3908646c2e3e6fd84b344dd96ba7d2fe6db4ae703baa0ab60a3594471705b5173ba3e45a959b0a97c1 |
31 |
|
32 |
diff --git a/dev-lang/rust/rust-1.5.0.ebuild b/dev-lang/rust/rust-1.5.0.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..49dc72a |
35 |
--- /dev/null |
36 |
+++ b/dev-lang/rust/rust-1.5.0.ebuild |
37 |
@@ -0,0 +1,133 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=5 |
43 |
+ |
44 |
+PYTHON_COMPAT=( python2_7 ) |
45 |
+ |
46 |
+inherit eutils multilib python-any-r1 |
47 |
+ |
48 |
+MY_P="rustc-${PV}" |
49 |
+ |
50 |
+DESCRIPTION="Systems programming language from Mozilla" |
51 |
+HOMEPAGE="http://www.rust-lang.org/" |
52 |
+ |
53 |
+SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz |
54 |
+ amd64? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-08-11-1af31d4-linux-x86_64-7df8ba9dec63ec77b857066109d4b6250f3d222f.tar.bz2 ) |
55 |
+ x86? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-08-11-1af31d4-linux-i386-e2553bf399cd134a08ef3511a0a6ab0d7a667216.tar.bz2 ) |
56 |
+" |
57 |
+ |
58 |
+LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
59 |
+SLOT="stable" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+ |
62 |
+IUSE="clang debug doc libcxx system-llvm" |
63 |
+REQUIRED_USE="libcxx? ( clang )" |
64 |
+ |
65 |
+CDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 |
66 |
+ libcxx? ( sys-libs/libcxx ) |
67 |
+" |
68 |
+DEPEND="${CDEPEND} |
69 |
+ ${PYTHON_DEPS} |
70 |
+ >=dev-lang/perl-5.0 |
71 |
+ clang? ( sys-devel/clang ) |
72 |
+ system-llvm? ( >=sys-devel/llvm-3.6.0[multitarget(-)] |
73 |
+ <sys-devel/llvm-3.7.0[multitarget(-)] ) |
74 |
+" |
75 |
+RDEPEND="${CDEPEND}" |
76 |
+ |
77 |
+S=${WORKDIR}/${MY_P} |
78 |
+ |
79 |
+src_unpack() { |
80 |
+ unpack "${MY_P}-src.tar.gz" || die |
81 |
+ mkdir "${MY_P}/dl" || die |
82 |
+ cp "${DISTDIR}/rust-stage0"* "${MY_P}/dl/" || die |
83 |
+} |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ local postfix="gentoo-${SLOT}" |
87 |
+ sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${postfix}/" mk/main.mk || die |
88 |
+ find mk -name '*.mk' -exec \ |
89 |
+ sed -i -e "s/-Werror / /g" {} \; || die |
90 |
+ epatch "${FILESDIR}/${PN}-1.1.0-install.patch" |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ export CFG_DISABLE_LDCONFIG="notempty" |
95 |
+ |
96 |
+ "${ECONF_SOURCE:-.}"/configure \ |
97 |
+ --prefix="${EPREFIX}/usr" \ |
98 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
99 |
+ --mandir="${EPREFIX}/usr/share/${P}/man" \ |
100 |
+ --release-channel=${SLOT} \ |
101 |
+ --disable-manage-submodules \ |
102 |
+ $(use_enable clang) \ |
103 |
+ $(use_enable debug) \ |
104 |
+ $(use_enable debug llvm-assertions) \ |
105 |
+ $(use_enable !debug optimize) \ |
106 |
+ $(use_enable !debug optimize-cxx) \ |
107 |
+ $(use_enable !debug optimize-llvm) \ |
108 |
+ $(use_enable !debug optimize-tests) \ |
109 |
+ $(use_enable doc docs) \ |
110 |
+ $(use_enable libcxx libcpp) \ |
111 |
+ $(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
112 |
+ || die |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ emake VERBOSE=1 |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ unset SUDO_USER |
121 |
+ |
122 |
+ default |
123 |
+ |
124 |
+ mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
125 |
+ mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
126 |
+ mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
127 |
+ |
128 |
+ dodoc COPYRIGHT LICENSE-APACHE LICENSE-MIT |
129 |
+ |
130 |
+ dodir "/usr/share/doc/rust-${PV}/" |
131 |
+ mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
132 |
+ rmdir "${D}/usr/share/doc/rust/" || die |
133 |
+ |
134 |
+ cat <<-EOF > "${T}"/50${P} |
135 |
+ LDPATH="/usr/$(get_libdir)/${P}" |
136 |
+ MANPATH="/usr/share/${P}/man" |
137 |
+ EOF |
138 |
+ doenvd "${T}"/50${P} |
139 |
+ |
140 |
+ cat <<-EOF > "${T}/provider-${P}" |
141 |
+ /usr/bin/rustdoc |
142 |
+ /usr/bin/rust-gdb |
143 |
+ EOF |
144 |
+ dodir /etc/env.d/rust |
145 |
+ insinto /etc/env.d/rust |
146 |
+ doins "${T}/provider-${P}" |
147 |
+} |
148 |
+ |
149 |
+pkg_postinst() { |
150 |
+ eselect rust update --if-unset |
151 |
+ |
152 |
+ elog "Rust installs a helper script for calling GDB now," |
153 |
+ elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
154 |
+ |
155 |
+ if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
156 |
+ elog "install app-emacs/rust-mode to get emacs support for rust." |
157 |
+ fi |
158 |
+ |
159 |
+ if has_version app-editors/gvim || has_version app-editors/vim; then |
160 |
+ elog "install app-vim/rust-mode to get vim support for rust." |
161 |
+ fi |
162 |
+ |
163 |
+ if has_version 'app-shells/zsh'; then |
164 |
+ elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
165 |
+ fi |
166 |
+} |
167 |
+ |
168 |
+pkg_postrm() { |
169 |
+ eselect rust unset --if-invalid |
170 |
+} |