diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2016-04-14 15:17:28 -0500 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2016-04-14 15:18:56 -0500 |
commit | 4ca37d6f7e7bac626f19f92da1152d414697d98a (patch) | |
tree | 11ad5eb14543178a976c0ba0dba0a66296afec0e /dev-lang/rust-bin | |
parent | dev-lang/rust: version bump (diff) | |
download | gentoo-4ca37d6f7e7bac626f19f92da1152d414697d98a.tar.gz gentoo-4ca37d6f7e7bac626f19f92da1152d414697d98a.tar.bz2 gentoo-4ca37d6f7e7bac626f19f92da1152d414697d98a.zip |
dev-lang/rust-bin: version bump
Package-Manager: portage-2.2.26
Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
Diffstat (limited to 'dev-lang/rust-bin')
-rw-r--r-- | dev-lang/rust-bin/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/rust-bin/rust-bin-1.8.0.ebuild | 102 |
2 files changed, 104 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest index f276156e0f02..5d8a298d0dea 100644 --- a/dev-lang/rust-bin/Manifest +++ b/dev-lang/rust-bin/Manifest @@ -4,6 +4,8 @@ DIST rust-1.6.0-i686-unknown-linux-gnu.tar.gz 99521439 SHA256 4d46ab71e057c66ff6 DIST rust-1.6.0-x86_64-unknown-linux-gnu.tar.gz 98645290 SHA256 8630cc02432b4423d64eeae4ef071ec58e5dd1f3d555a3a3cc34b759202813f6 SHA512 6b627631334775d224ed2c4b359776a680219dc03851d1bcd11655fa6626144b1ae31ceeed4d93317104ae4bf65e9d18ad833da162b50b65c607437ff6b75f6d WHIRLPOOL 860d09251da13df779f883a56b2bdc96170222ee2a241627845307f905dd2d9eb67bd0ca39f1d00508b5349ad70772ff38ee17d7e54e4a8e6e65e295fe23e9fe DIST rust-1.7.0-i686-unknown-linux-gnu.tar.gz 106777697 SHA256 ba9d55992c9d584c2083ca7051fcb46db9b63b2e701f370d94f28478b5a0208f SHA512 7063073994be7bb69d681061fac96ea18efac89f02996b7de35a2fce63b276148c9ba6dd45dbbb1e3220054436c23321f8a21d64b38f9e4c62ebb8a95519ae81 WHIRLPOOL 0158f5c0b4152d558281ba602f4c9bf1b37bfc9ddf16490cb85737ffa40f9b72658a2886b8673d44f293b4f984b8f139c97dd15b95de5cdef82365d359497c2b DIST rust-1.7.0-x86_64-unknown-linux-gnu.tar.gz 106063019 SHA256 d36634bd8df3d7565487b70af03dfda1c43c635cd6f2993f47cd61fda00d890a SHA512 d938be93f7e1a5cbf08e7d9cc904dcc9c9a3e9182a120f9c7d4ea4df9c36a65f59ecb9c9d8f1ea837f2b6a995f0111994ae158ac5724a3b2cba9f0b950c511eb WHIRLPOOL 7ed59b6ee955c2cbd2bfd03fad8bf50ca8297946957f2706480e9bd46b6cc97892a2ed66cca931372962a5ee7165d14bed6a18aa589fa130a67a1d987d9ab5ad +DIST rust-1.8.0-i686-unknown-linux-gnu.tar.gz 110936951 SHA256 01bdf577ee120df00c83628de47de6c467723350634efd6bedf935da2a65b06d SHA512 404ff0879e5dcc7ff4f4a9e392ad46bb8fec98a52fbb483d4ac43bbb80d276d39e57677c11a74112f82c0afa9c06e70d02ed976171ba73eb21746fc78341c96c WHIRLPOOL 185d52d04c92e88879f31e7ecb31fc3b068c2625a4ac2b017b98dec5797773deb3bd14676cb26990fac73616513fa2aa5c93b84631c9e1e81495d2ae91798238 +DIST rust-1.8.0-x86_64-unknown-linux-gnu.tar.gz 110156056 SHA256 d5a7c10070f8053defe07d1704762c91e94fc30a1020d16b111d63e9af365d48 SHA512 df240825bd1f3c639ad28749aae686b461476a8890b28ca102a4ac58094da82e31a1a8aeb08db8895947271dc4d3d3ec088f02de098ed87b940323dec42ddcf2 WHIRLPOOL 550e5cc38c5eecfc22b9708f9accd146d9c82b711326d0b06beb2fe911a9eb2e523693171ca208d4a077d2f026974463ce499449e9167044846fbd10d44ae1d9 DIST rustc-1.2.0-i686-unknown-linux-gnu.tar.gz 89840371 SHA256 f4c1692479314d63ee67914ec2065778c39ca4912f191a7894caf5264802b4fa SHA512 c89e6fac05c79755db7c15a275ac2a11d781fda10f6851ff13f0dce314f9a373bd5b79d0e1da0780071ce959693d4f08c33e3d18abbabe802922679d1e25a6b6 WHIRLPOOL 56c0636ecdc745fcdb41b77037486ba04c11b6a08568a0ada962687ead31bbd2c8f360894e629428fde4e5e3204d355e402d4a3651c4b13d0422e16beaec9f60 DIST rustc-1.2.0-x86_64-unknown-linux-gnu.tar.gz 88888977 SHA256 32fb262ba9da26a6d5ad9b2ca420fb56d97af8f86acb5cda2e85b7e7c33f6dcc SHA512 ea87a2c0e05d3f7e7c738320fd08b53055f76703526846b87b885e7abbd320b2f393b9328daa1ca04e9cb545e906c5750b6dcede2ede23323aeab8a8b096ccfd WHIRLPOOL e82ed578218ce19b4a7ca5b9d4c842c5546b5daa6aa3be162393fc0ca7148cf245bb7a79719b10ea7bf43952f8908a6355eea9070f027fcd5f1d70caa37c9931 DIST rustc-1.3.0-i686-unknown-linux-gnu.tar.gz 90445379 SHA256 7a3add3d229047bc68b929ba7b5f5d5796333f29e160c18c2a0ff24f643fab6b SHA512 afd001c1c285f12c13c0a9ecf0788f47ab72f069c1e1c5ec568973691ef2223c075fb99324e8245012e8a21003ea4fc63d874de99b95065aa9d09081798e09d5 WHIRLPOOL d273387d6eea540bf3a4bff96b5f754537ed265348661d412d37280f6d89fc726ed46fa03995b26eb444ac18e6c41f07d23c3c6844c7aaa00d2cc3970bad2f40 diff --git a/dev-lang/rust-bin/rust-bin-1.8.0.ebuild b/dev-lang/rust-bin/rust-bin-1.8.0.ebuild new file mode 100644 index 000000000000..aef5ebe7f123 --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-1.8.0.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils bash-completion-r1 + +MY_P="rust-${PV}" + +DESCRIPTION="Systems programming language from Mozilla" +HOMEPAGE="http://www.rust-lang.org/" +SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz ) + x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )" + +LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" +SLOT="stable" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 + !dev-lang/rust:0 +" +RDEPEND="${DEPEND}" + +QA_PREBUILT=" + opt/${P}/bin/rustc-bin-${PV} + opt/${P}/bin/rustdoc-bin-${PV} + opt/${P}/lib/*.so + opt/${P}/lib/rustlib/*/lib/*.so +" + +src_unpack() { + default + + local postfix + use amd64 && postfix=x86_64-unknown-linux-gnu + use x86 && postfix=i686-unknown-linux-gnu + mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die +} + +src_install() { + local std=$(grep 'std' ./components) + local components="rustc,${std}" + use doc && components="${components},rust-docs" + ./install.sh \ + --components="${components}" \ + --disable-verify \ + --prefix="${D}/opt/${P}" \ + --mandir="${D}/usr/share/${P}/man" \ + --disable-ldconfig \ + || die + + local rustc=rustc-bin-${PV} + local rustdoc=rustdoc-bin-${PV} + local rustgdb=rust-gdb-bin-${PV} + + mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die + mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die + mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die + + dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" + dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" + dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}" + + cat <<-EOF > "${T}"/50${P} + LDPATH="/opt/${P}/lib" + MANPATH="/usr/share/${P}/man" + EOF + doenvd "${T}"/50${P} + + cat <<-EOF > "${T}/provider-${P}" + /usr/bin/rustdoc + /usr/bin/rust-gdb + EOF + dodir /etc/env.d/rust + insinto /etc/env.d/rust + doins "${T}/provider-${P}" +} + +pkg_postinst() { + eselect rust update --if-unset + + elog "Rust installs a helper script for calling GDB now," + elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}," + + if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then + elog "install app-emacs/rust-mode to get emacs support for rust." + fi + + if has_version app-editors/gvim || has_version app-editors/vim; then + elog "install app-vim/rust-mode to get vim support for rust." + fi + + if has_version 'app-shells/zsh'; then + elog "install app-shells/rust-zshcomp to get zsh completion for rust." + fi +} + +pkg_postrm() { + eselect rust unset --if-invalid +} |