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