1 |
commit: 2868c044ac9025e7817482c2daef4473d754a9f5 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 9 23:18:10 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 9 23:18:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2868c044 |
7 |
|
8 |
dev-lang/rust-bin: Version bump to 1.15.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-lang/rust-bin/Manifest | 2 + |
13 |
dev-lang/rust-bin/rust-bin-1.15.1.ebuild | 102 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 104 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest |
17 |
index ad1a5a39e8..cf5aef2b2d 100644 |
18 |
--- a/dev-lang/rust-bin/Manifest |
19 |
+++ b/dev-lang/rust-bin/Manifest |
20 |
@@ -6,3 +6,5 @@ DIST rust-1.14.0-i686-unknown-linux-gnu.tar.gz 126452488 SHA256 8d5c75728b444682 |
21 |
DIST rust-1.14.0-x86_64-unknown-linux-gnu.tar.gz 122820395 SHA256 c71325cfea1b6f0bdc5189fa4c50ff96f828096ff3f7b5056367f9685d6a4d04 SHA512 6ec7155a2ac95718d1c28ffada0d365ca46cca7b1879b4533a662a4e63140fd2a70a9647a4b4d57e12d0d20dd46b7aba18365db0ed0cfd870b0a0394d4266b8c WHIRLPOOL f6c1c67806974cd39e68e2c111803a9ba7e858a93bfb8c8939747d253f119ae6667a21e3cba385015f27f9395fb2982d2a0c26f423b5d784fdc395e680da803b |
22 |
DIST rust-1.15.0-i686-unknown-linux-gnu.tar.gz 103875063 SHA256 3cff0c621a9c58dfaf29d2d08655030ea90cfbd009e71a04e073d67e5177b372 SHA512 92886d873a1d5407839cf3ff6480fb6c68ab3ee16c8e30a5bc221551a9e588405bec6f1382841ce81d8895c6e9a77650f5da56ccc2c8dc0490019210083786e7 WHIRLPOOL 20ab15e7284aee26262c0a583e1f0224f007bfba749253007d8bda6f276a43353c9c9f2d3690ca7f4d110fa2f565341e217090f670b38c06cd5a56c3581a0904 |
23 |
DIST rust-1.15.0-x86_64-unknown-linux-gnu.tar.gz 101145605 SHA256 576fcced49744af5ea438afc4411395530426b0a3d4839c5205f646f15850663 SHA512 0f582e540241ca9cc9e36face8c28061d1e2814acba7480ab818b15fc0db98519d28aa9649c6cbb5ccea95c28c2e0927268b76cbfe7178b136e56cbcc6b25aaf WHIRLPOOL e031a9556df365780baa5ed7bd51ebb22b0166be38bd17aa2d23c09f97095cf3d1aae647fbd90940ec959e09ba8bd696fb95c4aecc41cdf43a5dae8ca45c22c5 |
24 |
+DIST rust-1.15.1-i686-unknown-linux-gnu.tar.gz 103889253 SHA256 a93436b969d19a6576aac5264ff5b58cbbdf3514f15c34146a274c2586f7e052 SHA512 13d602842e7a2ef360c80d3ec84ecd5d6c742ea6dad642394a2a57b28554a7758905b37daaf2bcc549428c5f9383307270f8508e8685748b906fc2b9230bc4ad WHIRLPOOL 3b1487e049eb6d12ad269894f0547461d0e20e018c3e8903203cc9cabf178617058d643870f0f6bfa1f01947602d3fdafbd39c3d410b2dd53aaf1624730fbe0d |
25 |
+DIST rust-1.15.1-x86_64-unknown-linux-gnu.tar.gz 101140146 SHA256 b1e7c818a3cc8b010932f0efc1cf0ede7471958310f808d543b6e32d2ec748e7 SHA512 e089c455b1a7507aeed4652f05c0672c4e996e708c46f4405191f4b3a9d08403cab27f1a5a63f865d9a8f099f6ca980d2d2eef37aaa5e7e5bd751a3224e88b84 WHIRLPOOL 8983a5135bb34a6f54c8f015e8a02c2d9bd9c126589659b68fa57a8de928524af5a427b950f944d68ea80264e8acb54810c548b18910036ede080c1c8371a081 |
26 |
|
27 |
diff --git a/dev-lang/rust-bin/rust-bin-1.15.1.ebuild b/dev-lang/rust-bin/rust-bin-1.15.1.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000000..b9cc85fd86 |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/rust-bin/rust-bin-1.15.1.ebuild |
32 |
@@ -0,0 +1,102 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+ |
39 |
+inherit eutils bash-completion-r1 |
40 |
+ |
41 |
+MY_P="rust-${PV}" |
42 |
+ |
43 |
+DESCRIPTION="Systems programming language from Mozilla" |
44 |
+HOMEPAGE="http://www.rust-lang.org/" |
45 |
+SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz ) |
46 |
+ x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )" |
47 |
+ |
48 |
+LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
49 |
+SLOT="stable" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="doc" |
52 |
+ |
53 |
+DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 |
54 |
+ !dev-lang/rust:0 |
55 |
+" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+ |
58 |
+QA_PREBUILT=" |
59 |
+ opt/${P}/bin/rustc-bin-${PV} |
60 |
+ opt/${P}/bin/rustdoc-bin-${PV} |
61 |
+ opt/${P}/lib/*.so |
62 |
+ opt/${P}/lib/rustlib/*/lib/*.so |
63 |
+" |
64 |
+ |
65 |
+src_unpack() { |
66 |
+ default |
67 |
+ |
68 |
+ local postfix |
69 |
+ use amd64 && postfix=x86_64-unknown-linux-gnu |
70 |
+ use x86 && postfix=i686-unknown-linux-gnu |
71 |
+ mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ local std=$(grep 'std' ./components) |
76 |
+ local components="rustc,${std}" |
77 |
+ use doc && components="${components},rust-docs" |
78 |
+ ./install.sh \ |
79 |
+ --components="${components}" \ |
80 |
+ --disable-verify \ |
81 |
+ --prefix="${D}/opt/${P}" \ |
82 |
+ --mandir="${D}/usr/share/${P}/man" \ |
83 |
+ --disable-ldconfig \ |
84 |
+ || die |
85 |
+ |
86 |
+ local rustc=rustc-bin-${PV} |
87 |
+ local rustdoc=rustdoc-bin-${PV} |
88 |
+ local rustgdb=rust-gdb-bin-${PV} |
89 |
+ |
90 |
+ mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die |
91 |
+ mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die |
92 |
+ mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die |
93 |
+ |
94 |
+ dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" |
95 |
+ dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" |
96 |
+ dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}" |
97 |
+ |
98 |
+ cat <<-EOF > "${T}"/50${P} |
99 |
+ LDPATH="/opt/${P}/lib" |
100 |
+ MANPATH="/usr/share/${P}/man" |
101 |
+ EOF |
102 |
+ doenvd "${T}"/50${P} |
103 |
+ |
104 |
+ cat <<-EOF > "${T}/provider-${P}" |
105 |
+ /usr/bin/rustdoc |
106 |
+ /usr/bin/rust-gdb |
107 |
+ EOF |
108 |
+ dodir /etc/env.d/rust |
109 |
+ insinto /etc/env.d/rust |
110 |
+ doins "${T}/provider-${P}" |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ eselect rust update --if-unset |
115 |
+ |
116 |
+ elog "Rust installs a helper script for calling GDB now," |
117 |
+ elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}," |
118 |
+ |
119 |
+ if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
120 |
+ elog "install app-emacs/rust-mode to get emacs support for rust." |
121 |
+ fi |
122 |
+ |
123 |
+ if has_version app-editors/gvim || has_version app-editors/vim; then |
124 |
+ elog "install app-vim/rust-vim to get vim support for rust." |
125 |
+ fi |
126 |
+ |
127 |
+ if has_version 'app-shells/zsh'; then |
128 |
+ elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+pkg_postrm() { |
133 |
+ eselect rust unset --if-invalid |
134 |
+} |