summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-04-11 12:20:54 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-04-11 21:07:37 -0700
commit69fa3135714aa78596aae8d13c719c340ca023f6 (patch)
tree82d4aa26a86ccaa249b7d9922eed1fbb730dc9d1 /dev-lang
parentdev-lang/rust: bump to 1.34.0 (diff)
downloadgentoo-69fa3135714aa78596aae8d13c719c340ca023f6.tar.gz
gentoo-69fa3135714aa78596aae8d13c719c340ca023f6.tar.bz2
gentoo-69fa3135714aa78596aae8d13c719c340ca023f6.zip
dev-lang/rust-bin: bump to 1.34.0
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/rust-bin/Manifest13
-rw-r--r--dev-lang/rust-bin/rust-bin-1.34.0.ebuild156
2 files changed, 169 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
index 33b61721019e..8c6ffbca2ba1 100644
--- a/dev-lang/rust-bin/Manifest
+++ b/dev-lang/rust-bin/Manifest
@@ -69,3 +69,16 @@ DIST rust-1.33.0-powerpc64-unknown-linux-gnu.tar.xz 126030216 BLAKE2B b1d1b996b8
DIST rust-1.33.0-powerpc64le-unknown-linux-gnu.tar.xz 130922680 BLAKE2B db63d859631703e845efac57074e0f33f80a3b52b2e9dc8707b81892eee8fc922fa5a7d4b7b1f45fb5f19ea4d7f6fde9212f1c6e99e7e4c30dbc02aa87b0df7e SHA512 393c808e93792cf2b126d6111834932a55cbf18339942ac0d20fc4a3692b0ac08c21a3c8fd393795f7aafecac5a2c5d7c9415c18017a7453f759f746045f5144
DIST rust-1.33.0-s390x-unknown-linux-gnu.tar.xz 134441220 BLAKE2B e6f0a6e54e4e1fde10f54f66615d44442b7cb5eb5bda43d55ee791328c7ecd61505b3d84719df82b7c5c7ae473b7041512f2cf346281518d7d78d0e22112fa05 SHA512 755a0203e2c143386cb3729faada4d2c38b254dfa7e6eeb722ec9847d6319a1d3d289c7b77a2bc478d79dbbabfcd826d8b015acd29fbdf5acb591feae1876205
DIST rust-1.33.0-x86_64-unknown-linux-gnu.tar.xz 155298128 BLAKE2B af5bc628bc054bd354d5af78e53cd2ffbfbdf2c2d3a3e58eeb593f148c54024fa5905aa53a69c514d6d41e48688697e1ce8adb866817c77cdf541399f6e7956f SHA512 b7f3087f34e99517cd729f5ff1f8cce3f3254cb36c734d5b90d878293e4406934c2f597bf7e2941e9257046f62c9274eb4769a64dabfbc5f0bbf2a1703f7fef8
+DIST rust-1.34.0-aarch64-unknown-linux-gnu.tar.xz 120855004 BLAKE2B cdd8a4d4504577eab17aeefefba08253312061f2c6092026a98a3190f3003f5bccb741e9fbcdcea29dd38b494b9f0ea6412afb345ef2488c95ddbb6e58b60daa SHA512 de477af06ec3e7260d9071d9f18a84463125492f1f98df0b4422743fbd1db0dc0ee488bce93738ee394169af4eeb94be84dd19fab1c7fc6eda79431a26d2d24c
+DIST rust-1.34.0-arm-unknown-linux-gnueabi.tar.xz 122526516 BLAKE2B 396eb99c20fba62a15093a82e7d2df3d03d91cc97b9601294b0dc0866c2c8a251bd555ce86597db4d68de94055aaecf01efdf011cf4af2a1f35f00ffacb7c3ce SHA512 afd953d6109781f510532f7e2e8344842b07171e1fc2f56a3be50a77bba79820e0dc7bcde4419f1f218ee3f1628284b3c42e63b3dc8ee7fad86c751d419f623a
+DIST rust-1.34.0-arm-unknown-linux-gnueabihf.tar.xz 122918872 BLAKE2B 9cc2878f69e32c39af32928662a5351d4ff810fd4d6a9dde5e73737cbc4284e6f813687fee4c6ad9bb0e87b912b06b289e7b06eff4ba87f1b6bf802800effa14 SHA512 8ae0a5ba27f983b4fc33e1c928451c5dca0ee04b96448a1f18448605b91f5433da1ccd964c6650f19248b89ade5e92631a78550d609a169a370beaf6d01233a9
+DIST rust-1.34.0-armv7-unknown-linux-gnueabihf.tar.xz 124648648 BLAKE2B 409f4a991672bbd130913ba63920abf687cb7bde43f1458284e23b31531d4339d0cd935515edd5da1f2d49059860d3932ca2bd5f017b9df77f5075f742518575 SHA512 923b2e81c6e388ee293a5550c06181ec0ae91b61055716e226c445b7036e758c1b8e988c125baadf0501e17f7ede0eb46ad43ec55038d36a9443e92fc297dcb0
+DIST rust-1.34.0-i686-unknown-linux-gnu.tar.xz 169552532 BLAKE2B 15ac40601d2434da1f3f37a20417804678317a2f23f0494a2c0dacdd2a41fa7b2a385f0744a8cfcd730c4bf4ed77cdb6f5343f4ccdbd30da6a5d58a0328a0282 SHA512 b0a8c022e3ba2df82827a02c9647c18649c8aa0e6cf830957883bee1013cb11dc36e8e26cef4531068d3a14af0f854256cc273732033b36c8f696392b918fcb5
+DIST rust-1.34.0-mips-unknown-linux-gnu.tar.xz 113552848 BLAKE2B fc2eac31b4e2d106fbc5bd7528cc8d05452aa5e95943edea7e0802e2e05e4246d26a22c79ad3d55cbf940459f0e6c8cd98022ecf3fd964e7d027b0edfcd67122 SHA512 c9dc9043aba2882b426dcf330701ff9912a0417c7b80b5f4cafea2d1934f68eb15a1bf0aaf8cbaf728bc56ff32a8250ed47bd123b8f784184b5e59442160eb3c
+DIST rust-1.34.0-mips64-unknown-linux-gnuabi64.tar.xz 119139144 BLAKE2B 9da97e096105aa0c5d94b0357fd27af209484bb393333c77fc66501b39ae94dd96044828848cd1f1bb5b588f4bd8fa984389d3dccfc3cd077e0fa24245d66bd6 SHA512 f1dc0e81ea0387f8689d5b2168690c5e85a03b5a04a14ba6c7ff28d90c2a0b8d7698f7585754870940d547ea006c1ab18127197a36548e1fc4f8ff08f5529302
+DIST rust-1.34.0-mipsel-unknown-linux-gnu.tar.xz 115847776 BLAKE2B 79a2023ea85e6e8fdad4d1d6b4a48fe724850db0f1ee5c7ae1303242a59e3ef5c383f5ed9c4959b04766bacf9c56b4d8f1d4c87580558d44790a3c94dbdeddc5 SHA512 07e7da6467771b455ed94b83451a45cc582cb86cd57949dbdef4beb38eaa01f7e9f0799d49864c014891a5ace39fc09d909585058f6c46f0799bc1c6f9734f2f
+DIST rust-1.34.0-powerpc-unknown-linux-gnu.tar.xz 116836732 BLAKE2B ed6cb4c0974b9f40726d3331973fbc632427a9bfb35cabdffe5b81fff3ed71cc55f7fcbbfda9a579cfa646637242e40a7c9c38fd36cf69f5ec125b4df494c370 SHA512 d9f89a0f90eaf9898f6d46deb84327cdda15b3d92599e8c27c11708115bebc0914076576cced6628f69ae2035a50f78eb2a5e695e1028cec900cc7b0f26a29b4
+DIST rust-1.34.0-powerpc64-unknown-linux-gnu.tar.xz 125810152 BLAKE2B 6ae7fd1e78638dc807c6633b567f11372e7c6f8cf8f9fc381d39c39d8f43bf714609298566cd92fee1db6eb1d4da3ca607deed90d6509546cbdf4dbd12dd291a SHA512 f1c044a8be65075f40f9358e9d4258cee19a14c2de42b6c161b325f65529dd9bcedb0f3078de624c0b572b85f5bbd1be93dc2049eadf658815d60b8d6835a689
+DIST rust-1.34.0-powerpc64le-unknown-linux-gnu.tar.xz 129639888 BLAKE2B eeb3e27d677f5dd816ca8395e66bb063d3f0a82af9ed1a123f9bcb1124441e740a8e8511c848f10533398a0008b6b1668a1f4bbcecdacd1772eca02a89164456 SHA512 2bf9aa71af041c45e29ad8d10d96088e4fb04dac70bd278f9896b25b63c4c673bca954aaf3a139ef13100e252871d0a1fb4c69d5b88b1ac3fe8657642580e802
+DIST rust-1.34.0-s390x-unknown-linux-gnu.tar.xz 134441480 BLAKE2B 423071ec0799f0b0608b71b7d3e65e6797474f4769adb22756b467187dcbe95cb8f377f3574571d9d45a890372fac037e66b4ff23691ae28e545b8e451ec23f9 SHA512 14f46e08f0251ed302ad71c20b5797cd73063b0396fb6654b8d5ee9e27d59f9477a4819a1ae8e04ebd8b25006e92f43a0ef9b2fc53e5029b621746a256153f3c
+DIST rust-1.34.0-x86_64-unknown-linux-gnu.tar.xz 157382624 BLAKE2B 0e87efe48dfe5a9b588ea86378057a31c84b08f5f1bc0740c197962d8cae320b0418c42efdf7573dd22fbfd829f29f2a1d1a8c942d65051c14c2fe25cfe15071 SHA512 2ad2a9a2871be53498876db6146e6bff12c4f63a0cb3f71cfdc62602cf7be91ef3a9f6a2ba8f426d68e5ed31ae53c5d28fe4ca898e4774227bb98b770b0a36c4
diff --git a/dev-lang/rust-bin/rust-bin-1.34.0.ebuild b/dev-lang/rust-bin/rust-bin-1.34.0.ebuild
new file mode 100644
index 000000000000..a4fb5e4c3094
--- /dev/null
+++ b/dev-lang/rust-bin/rust-bin-1.34.0.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils bash-completion-r1 rust-toolchain toolchain-funcs
+
+MY_P="rust-${PV}"
+
+DESCRIPTION="Systems programming language from Mozilla"
+HOMEPAGE="https://www.rust-lang.org/"
+SRC_URI="$(rust_all_arch_uris ${MY_P})"
+
+LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
+SLOT="stable"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
+
+DEPEND=""
+RDEPEND=">=app-eselect/eselect-rust-20190311
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/libssh2
+ net-misc/curl[ssl]
+ !dev-lang/rust:0
+ !dev-util/cargo
+ rustfmt? ( !dev-util/rustfmt )"
+REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )"
+
+QA_PREBUILT="
+ opt/${P}/bin/*-${PV}
+ opt/${P}/lib/*.so
+ opt/${P}/lib/rustlib/*/bin/*
+ opt/${P}/lib/rustlib/*/lib/*.so
+ opt/${P}/lib/rustlib/*/lib/*.rlib*
+"
+
+pkg_pretend () {
+ if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
+ die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
+ fi
+}
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/${MY_P}-$(rust_abi)" "${S}" || die
+}
+
+src_install() {
+ local std=$(grep 'std' ./components)
+ local components="rustc,cargo,${std}"
+ use doc && components="${components},rust-docs"
+ use clippy && components="${components},clippy-preview"
+ use rustfmt && components="${components},rustfmt-preview"
+ ./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}
+ local rustlldb=rust-lldb-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
+ mv "${D}/opt/${P}/bin/rust-lldb" "${D}/opt/${P}/bin/${rustlldb}" || 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}"
+ dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
+
+ local cargo=cargo-bin-${PV}
+ # ugly hack for https://bugs.gentoo.org/679806
+ if use ppc64; then
+ mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}".bin || die
+ sed -i 's/getentropy/gEtEnTrOpY/g' "${D}/opt/${P}/bin/${cargo}".bin || die
+ cat <<- 'EOF' > "${D}/opt/${P}/bin/${cargo}"
+ #!/bin/sh
+ OPENSSL_ppccap=0 $(realpath $0).bin "${@}"
+ EOF
+ fperms +x "/opt/${P}/bin/${cargo}"
+ else
+ mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
+ fi
+ dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
+ if use clippy; then
+ local clippy_driver=clippy-driver-bin-${PV}
+ local cargo_clippy=cargo-clippy-bin-${PV}
+ mv "${D}/opt/${P}/bin/clippy-driver" "${D}/opt/${P}/bin/${clippy_driver}" || die
+ mv "${D}/opt/${P}/bin/cargo-clippy" "${D}/opt/${P}/bin/${cargo_clippy}" || die
+ dosym "../../opt/${P}/bin/${clippy_driver}" "/usr/bin/${clippy_driver}"
+ dosym "../../opt/${P}/bin/${cargo_clippy}" "/usr/bin/${cargo_clippy}"
+ fi
+ if use rustfmt; then
+ local rustfmt=rustfmt-bin-${PV}
+ local cargo_fmt=cargo-fmt-bin-${PV}
+ mv "${D}/opt/${P}/bin/rustfmt" "${D}/opt/${P}/bin/${rustfmt}" || die
+ mv "${D}/opt/${P}/bin/cargo-fmt" "${D}/opt/${P}/bin/${cargo_fmt}" || die
+ dosym "../../opt/${P}/bin/${rustfmt}" "/usr/bin/${rustfmt}"
+ dosym "../../opt/${P}/bin/${cargo_fmt}" "/usr/bin/${cargo_fmt}"
+ fi
+
+ 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
+ /usr/bin/rust-lldb
+ EOF
+ echo /usr/bin/cargo >> "${T}/provider-${P}"
+ if use clippy; then
+ echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
+ echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
+ fi
+ if use rustfmt; then
+ echo /usr/bin/rustfmt >> "${T}/provider-${P}"
+ echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
+ fi
+ 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-vim 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
+}