From: Jauhien Piatlicki Date: Sun, 27 Sep 2015 18:18:40 +0000 (+0200) Subject: dev-lang/rust: version bump X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a34e96940df960e84391959e42b0289695f9440;p=gentoo.git dev-lang/rust: version bump Package-Manager: portage-2.2.20.1 --- diff --git a/dev-lang/rust/Manifest b/dev-lang/rust/Manifest index 6724a6b1ad1a..8fc5fbe04763 100644 --- a/dev-lang/rust/Manifest +++ b/dev-lang/rust/Manifest @@ -1,3 +1,6 @@ DIST rust-stage0-2015-05-24-ba0e1cd-linux-i386-a6f22e481eabf098cc65bda97bf7e434a1fcc20b.tar.bz2 15633335 SHA256 f6787490b97923386b3469d698b700be1ab7f8d43efa427031e228a59f893993 SHA512 8b7c706d02b8198343d67b30921ba22879bc44943284b8fcf24d8de1861b64cd5441cf5b1e2551021fa8777c78073e9b492a2e79da2889368f5c47392315dbc9 WHIRLPOOL 6766d6c536eace21c9f412eb628b759338df41985eab38a9e0c47271d0b11b500c09ac8c0797384b43223419df6e21af0747bfd781a4e3052b3d6d3047ced2e6 DIST rust-stage0-2015-05-24-ba0e1cd-linux-x86_64-5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c.tar.bz2 14913394 SHA256 11f7f56320bd0dff5b47bae3f80377d9514a3ad4bc983d674eb33074c95d66a0 SHA512 795d53c802480b5f54d80032e9d0aee56fa26a5bb1a5f79c6673d7646c30e0dccfa7926b1fdd4c5874d9d7b7dd245143686a52e228b17c4c96dec371daf1b625 WHIRLPOOL e098dc9a6348dc0da211b1d23ccb2b0a10e0a8b8e4babf1e710d6007e7580b8656f5788343bbafdc22dca20df247a332fac19476ffff244fc4607c1a1e7b4db5 +DIST rust-stage0-2015-07-26-a5c12f4-linux-i386-3459275cdf3896f678e225843fa56f0d9fdbabe8.tar.bz2 16414576 SHA256 be9581981f0daf8b573d694269e60219f09ef6ea10901b422d87dc580484199a SHA512 c0a3b8cbc710a08edacbdedc6f635a8d6665304c9c8272430f4d6c5847fda2cef852e1f84f74603a4306169ceaf176b3fc77d1bc49c3bbd9dade87cfb64df30d WHIRLPOOL 69f59db907df480846d0a4faed4c751033c20d78b3ad59de018261e4732c45aea305af1ccbfdabd632c0029cf23c66bd690ef07a54602345736dc81ce9d2d1b5 +DIST rust-stage0-2015-07-26-a5c12f4-linux-x86_64-e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c.tar.bz2 15900837 SHA256 779943595dd63d6869c747e2a31c13095f9c5354d4530327d6f9310cc580c2ff SHA512 c6d74065f785719bb7e394e42bc64d323d00c0c3e70a4e16961055b8fbe69e557c7dc4875b3ba3d8c04184220aa35da7311d880b5f987b7105f54fdfcc20ded4 WHIRLPOOL f0c5ba9f40cc857dc5406704a3d8dfd468150d6ff0494a206d43a2e0e12c6670a23079b932f59233c64cce6af75f1e677c308e3434f9e416ac5e21951129afcb DIST rustc-1.2.0-src.tar.gz 23863924 SHA256 ea6eb983daf2a073df57186a58f0d4ce0e85c711bec13c627a8c85d51b6a6d78 SHA512 2596c0dddff0276916edbb7d68ae610209c75d53d89f1f15dc56ad7408e235dbedfcd1bba9c446dd1e32a8d274cedebb7b32b328223280c28ab546bbd06f1c76 WHIRLPOOL 741118f7e265129bfd0f0d66487e12dc8f95018d8479e8f3cde555160abdb29ade9c69607a2daa088ae3dbe74c1120c16141248cd771a6e56759ce10cfc45a62 +DIST rustc-1.3.0-src.tar.gz 24308223 SHA256 ea02d7bc9e7de5b8be3fe6b37ea9b2bd823f9a532c8e4c47d02f37f24ffa3126 SHA512 d9a4851d958e6a62f0997af5451c1c1ba2bd3ace595cf9f1dbc5977a6efb0ba802d108d4aa6fc29540c41b36d7f5a04e518700b5c1426fe18d1627d5fa779d58 WHIRLPOOL 21d9216bfa31b71e04ad35b4d72fd2b7b466b89cf62be2f9b0d734af21d1cba2050171bf3b9757c14a675fae11b869fcda30abc528e07ddcdc9d1a2bf0e3b7dc diff --git a/dev-lang/rust/rust-1.3.0.ebuild b/dev-lang/rust/rust-1.3.0.ebuild new file mode 100644 index 000000000000..2149bdc89d88 --- /dev/null +++ b/dev-lang/rust/rust-1.3.0.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils multilib python-any-r1 + +MY_P="rustc-${PV}" + +DESCRIPTION="Systems programming language from Mozilla" +HOMEPAGE="http://www.rust-lang.org/" + +SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz + amd64? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-07-26-a5c12f4-linux-x86_64-e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c.tar.bz2 ) + x86? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-07-26-a5c12f4-linux-i386-3459275cdf3896f678e225843fa56f0d9fdbabe8.tar.bz2 ) +" + +LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" +SLOT="stable" +KEYWORDS="~amd64 ~x86" + +IUSE="clang debug doc libcxx" +REQUIRED_USE="libcxx? ( clang )" + +CDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 + libcxx? ( sys-libs/libcxx ) +" +DEPEND="${CDEPEND} + ${PYTHON_DEPS} + >=dev-lang/perl-5.0 + clang? ( sys-devel/clang ) +" +RDEPEND="${CDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack "${MY_P}-src.tar.gz" || die + mkdir "${MY_P}/dl" || die + cp "${DISTDIR}/rust-stage0"* "${MY_P}/dl/" || die +} + +src_prepare() { + local postfix="gentoo-${SLOT}" + sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${postfix}/" mk/main.mk || die + find mk -name '*.mk' -exec \ + sed -i -e "s/-Werror / /g" {} \; || die + epatch "${FILESDIR}/${PN}-1.1.0-install.patch" +} + +src_configure() { + export CFG_DISABLE_LDCONFIG="notempty" + + "${ECONF_SOURCE:-.}"/configure \ + --prefix="${EPREFIX}/usr" \ + --libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ + --mandir="${EPREFIX}/usr/share/${P}/man" \ + --release-channel=${SLOT} \ + --disable-manage-submodules \ + $(use_enable clang) \ + $(use_enable debug) \ + $(use_enable debug llvm-assertions) \ + $(use_enable !debug optimize) \ + $(use_enable !debug optimize-cxx) \ + $(use_enable !debug optimize-llvm) \ + $(use_enable !debug optimize-tests) \ + $(use_enable doc docs) \ + $(use_enable libcxx libcpp) \ + || die +} + +src_compile() { + emake VERBOSE=1 +} + +src_install() { + unset SUDO_USER + + default + + mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die + mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die + mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die + + dodoc COPYRIGHT LICENSE-APACHE LICENSE-MIT + + dodir "/usr/share/doc/rust-${PV}/" + mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die + rmdir "${D}/usr/share/doc/rust/" || die + + cat <<-EOF > "${T}"/50${P} + LDPATH="/usr/$(get_libdir)/${P}" + 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-${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 +}