summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-04 15:13:10 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-04 18:00:52 -0700
commitce20cf8e2ec27456a79a81d21cbf2fc10d35ab38 (patch)
tree2d81912ffd547b7cfb1752e0c23b9d3fcd60b97b /dev-lang
parentprofiles/base/package.use.mask: mask rust-1.44.0[miri] (diff)
downloadgentoo-ce20cf8e2ec27456a79a81d21cbf2fc10d35ab38.tar.gz
gentoo-ce20cf8e2ec27456a79a81d21cbf2fc10d35ab38.tar.bz2
gentoo-ce20cf8e2ec27456a79a81d21cbf2fc10d35ab38.zip
dev-lang/rust-bin: bump to 1.44.0
Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/rust-bin/Manifest14
-rw-r--r--dev-lang/rust-bin/rust-bin-1.44.0.ebuild175
2 files changed, 189 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
index 5059b2f452fe..66b9b6af8bc3 100644
--- a/dev-lang/rust-bin/Manifest
+++ b/dev-lang/rust-bin/Manifest
@@ -54,3 +54,17 @@ DIST rust-1.43.1-powerpc64le-unknown-linux-gnu.tar.xz 112921244 BLAKE2B 9fa67664
DIST rust-1.43.1-s390x-unknown-linux-gnu.tar.xz 119547480 BLAKE2B 8ce0d64e2d47f23cb927f3ea3a0f469e3cafc191ac1d47e580bce6cf0b35887484542f7d1b857d9bace5f696a072adb7e17e8c5f64af9bf1fbcc305707a15f9f SHA512 f087e50a91b1cc4a12bf15aea1cefbda9b89518febcecc0d56ea7d0a6a682be06cff7777d0a0b4812e96f3fb3295e7799bf200c1599c88cb7083a78d5002f14a
DIST rust-1.43.1-x86_64-unknown-linux-gnu.tar.xz 112817212 BLAKE2B c6153889d9872ed5a60bfc43bc8c98e71654fffdd79ce775c3eb4376ed4714c5532e6aaecb769e447f3ae0bb7a11aed75754a5e879404742cb0813080dcf67eb SHA512 2fc573ca2826d9f03044f746ae4d7715b4e31b9ac933289607aa3449a538bb4dfd519540576a1d0d286c0d754a7ba6ce38beef6aded1090d3af3091b6ba2a9ee
DIST rust-1.43.1-x86_64-unknown-linux-musl.tar.xz 103345832 BLAKE2B c16930854ea5e825e1338fdde3966e24d3505230891ab4e10160c5482298996768d8cee9890eadd486bfca41ebd5c9f38f7b7ead35a7848e59e409df8eaf9bdf SHA512 9f6ce2a5eaf98dc20b4ed88dbe60e8fb014ef3e7e82f5c31a28cf0f916d996271929cadeaf39a869f548aafb311f022acb408d51d4312c849c71843bc37ca202
+DIST rust-1.44.0-aarch64-unknown-linux-gnu.tar.xz 100404488 BLAKE2B 9881acb184eeefe6baf79246ed396edc82c28a7db6594d5960c919eb5cc614525bbc785e6fb65fe5ffa309e24c4624d30fe4ec8e837c41145df82a0aac26bc9d SHA512 c853a585bd76730a9ed1e95c12baf2939928fd3c5ba7cc0f95c03ec472c0012f01d0b7d7c37e21dfdcc1d1eca4c7e392709a2585e42bc759b636e95b4ab870d0
+DIST rust-1.44.0-arm-unknown-linux-gnueabi.tar.xz 104325496 BLAKE2B c987580baebe0abdc8cf0d936abe7caf22e8adbf20309daef26b21c1e24da03fc7201abcf3a09f266903c24b77d5df49328069c894de07bb3621783294fbb473 SHA512 d74c9010ad6d0605625bc5e1b416bdba4bb07fbc7fee7aed9571baf25cd6151574ef04c67b0d9289ee580bc54bcfc42bbc184f99abf217e525a42fb14b62bf3a
+DIST rust-1.44.0-arm-unknown-linux-gnueabihf.tar.xz 106977028 BLAKE2B d9046bbc5eb1f77fe3859ece0d630c5a8f434638100a180c03682a3813d7795592db6418b6459f56cbae85bd6ec46ef7e803c4a22939c27f4e230f73b774ce25 SHA512 c78ee33800384dc421ea1909d32cfd438ac3f6312ba545e4dcb3eead771d51fa2f93d410aae06ae256976468cd1a71ae72d252255e85483005a7712f20204351
+DIST rust-1.44.0-armv7-unknown-linux-gnueabihf.tar.xz 107108084 BLAKE2B 8b3693590fba9021ef8f4e278fdbe0833503917168c735cce1416635968a1b23b8b6c60c51aa78bf77ce774ed36d6c4b53e8af24c0d56995d37dcb0c31be651f SHA512 59fd1f0dc058118a838c4c3c66dd5a5c2acb1b05ebf4525188846577cb22c4b46a57605d6a9cede5fbd34c0b5c638434a186d1ce3693ace6be8105c265b59b7b
+DIST rust-1.44.0-i686-unknown-linux-gnu.tar.xz 123723236 BLAKE2B 5527923b954a1ad5f3e65570d692b1d49547611c875034af478a2e51733045270c3f4c168d84d228d5ad1cf95ae5453c580c5d053b9a7d23149fd989c23ec711 SHA512 85ee1d7cd4581d9cdc18f0cfe89b0c78c32039f658b85c5f6a60ac8047864234bdff955e02d6e15ae40dd98e8e27cb3d83fab978dba6373f9e487cfd2ba0b594
+DIST rust-1.44.0-mips-unknown-linux-gnu.tar.xz 93787568 BLAKE2B 280ce55b802952282dc54ba82937d08e60ed06a12f4b19176c9bc9f454021d3bef2764623b2b24777b64d061e316686a5bbc04352bbafad017de96a9a457e9bd SHA512 584641caaba66848fdc2c11d15a81a4588134c29f00b4c961ed7c51a5864db583ecd434e6c4225761ccd53b5892a562f3d3067d78d8590bd3c01e03522dea08c
+DIST rust-1.44.0-mips64-unknown-linux-gnuabi64.tar.xz 99813352 BLAKE2B 5ba6bb4e95d0ab5600b618b563950334ea8e45383eed0ad59791273a7395e7478aa56249b0e84a00ba6abab9952d9b7fe9f67420f110e76a936d43cd8c70a62d SHA512 defaeed53d14d94a6e73a937939f86810ac805a0527dff6f7c663dd2a15db7dd017e5823467eb9b035cd5bf4bab6d27c63abc06b71c5e82558e0f2a59b80efc2
+DIST rust-1.44.0-mipsel-unknown-linux-gnu.tar.xz 96597556 BLAKE2B 7fdcf582ac23149ce374cf069ab69b5b2f5c6024ecd269d786f89e91927b1bf7adb9e513463771328358a7f4c61228ba972cbad26e59916989ec1476b1a79208 SHA512 3339fb9bc1f06d268ebda32e5f151f54fd2c417fddc2fcf333ed52985da06adbd1672f358a578dcfb58123342dbe884e39fe2277701d058d85b6eda56b1bfce9
+DIST rust-1.44.0-powerpc-unknown-linux-gnu.tar.xz 96611064 BLAKE2B 18c80c84813e62b43430e76ab332a0a3d1a7821601c4c29e8143d9d851290c6b675918237afd1b976e5895cb51e920c4ea711e0605e156124164dad705bfd132 SHA512 c6cc690de4e411c4967e2d055a2642ebb5b2639664c1d7901bed9c6840da3d23fbbd52e88f1d9e5e1673902a657c8ca35564934d7730d61845b8676a5e1b339d
+DIST rust-1.44.0-powerpc64-unknown-linux-gnu.tar.xz 107127352 BLAKE2B 109dff520dc2f9aabd07c090de67bc5606a9cdf445fcc4c6f26fdb24f322b77381fa28783628417159241cba051f817c52a7327fa8054ed4852fc6ea1044b82e SHA512 dff9aa248cd0efd1b28c6254c040cd30356ce973a3ed525530db783d6f7ebcdd32568bfa5c68c2aba0bb312ee74f03d1c91361e69830fe79ddd4d31e73fc2865
+DIST rust-1.44.0-powerpc64le-unknown-linux-gnu.tar.xz 112746336 BLAKE2B e0a6bd623535a28489acf90c54d188dfaa4bc0e71b90008e28e78482e8b50787e80a6501431f5b86790e12ca93e71499d9f824fd2ba5bb647de2817a6a5036cc SHA512 d74802fc29641d08b5e5d526e91258c71d914daf0f33abea71ad7d300da4ae39d457b9d4e95b0b0811ec8ed5e60e7d0292e8e928f3079189e07887ce115bd466
+DIST rust-1.44.0-s390x-unknown-linux-gnu.tar.xz 118575084 BLAKE2B 9641f2a6fcaa6c1d0b5e552ca5401db2ce5232c5cddd2da081a994a4581ff186922adc1b4a8e0d1e5ff683709df45d0d6f649f0e5a8806c0200ed6a9821736a4 SHA512 39fac45e0c1e8786275ba30ed13d13334c7f0fc03d653a3e0a3e174d18e244d9e4bb99614ed1465e7a21befb2542ed4d3a54d4ea2702da449b1e6a7770a43970
+DIST rust-1.44.0-x86_64-unknown-linux-gnu.tar.xz 111833264 BLAKE2B 9eda334d802f9799bb558f37b7a9f468d068248a89e51a3f8d2e5d7fabebc3d477f65247576a2437845e3157cfeb04fddc7e60573b6ae391c25af7d8dde39e7c SHA512 25c762e07e178ffc1b96b4a113e437541d6dc18bd81fb9933af676e99ca391c6cdd8d420caabcfca1b3ddb987a84ff9eb1d0bdb3cca486e71925555f51ecaa4c
+DIST rust-1.44.0-x86_64-unknown-linux-musl.tar.xz 117514932 BLAKE2B 7bb8c7cb894d37f283b38fe7606e5ea2a91ff7f4eda95913d75cdcff04308c62700d67e49be47d3b03d50a2774ab8104ea6de78d98f5f0ce897d0b37998e7bf9 SHA512 1325b3c798f7cd7c5ebd582eb4513eed62e2807bcc3a5d86f3666f2dba97ba0a1f546daa3a3faeb38dd3852f1430effbcbd7751155d7352a464033cfe1802e75
diff --git a/dev-lang/rust-bin/rust-bin-1.44.0.ebuild b/dev-lang/rust-bin/rust-bin-1.44.0.ebuild
new file mode 100644
index 000000000000..b36387480c97
--- /dev/null
+++ b/dev-lang/rust-bin/rust-bin-1.44.0.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit bash-completion-r1 rust-toolchain toolchain-funcs multilib-minimal
+
+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 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="clippy cpu_flags_x86_sse2 doc rustfmt"
+
+DEPEND=""
+RDEPEND=">=app-eselect/eselect-rust-20190311"
+
+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
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi; then
+
+ # start native abi install
+ pushd "${S}" >/dev/null || die
+ local std
+ 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="${ED}/opt/${P}" \
+ --mandir="${ED}/opt/${P}/man" \
+ --disable-ldconfig \
+ || die
+
+ local rustc=rustc-bin-${PV}
+ local rustdoc=rustdoc-bin-${PV}
+ local rustgdb=rust-gdb-bin-${PV}
+ local rustgdbgui=rust-gdbgui-bin-${PV}
+ local rustlldb=rust-lldb-bin-${PV}
+
+ mv "${ED}/opt/${P}/bin/rustc" "${ED}/opt/${P}/bin/${rustc}" || die
+ mv "${ED}/opt/${P}/bin/rustdoc" "${ED}/opt/${P}/bin/${rustdoc}" || die
+ mv "${ED}/opt/${P}/bin/rust-gdb" "${ED}/opt/${P}/bin/${rustgdb}" || die
+ mv "${ED}/opt/${P}/bin/rust-gdbgui" "${ED}/opt/${P}/bin/${rustgdbgui}" || die
+ mv "${ED}/opt/${P}/bin/rust-lldb" "${ED}/opt/${P}/bin/${rustlldb}" || die
+
+ dosym "${rustc}" "/opt/${P}/bin/rustc"
+ dosym "${rustdoc}" "/opt/${P}/bin/rustdoc"
+ dosym "${rustgdb}" "/opt/${P}/bin/rust-gdb"
+ dosym "${rustgdbgui}" "/opt/${P}/bin/rust-gdbgui"
+ dosym "${rustlldb}" "/opt/${P}/bin/rust-lldb"
+
+ 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/${rustgdbgui}" "/usr/bin/${rustgdbgui}"
+ dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
+
+ local cargo=cargo-bin-${PV}
+ mv "${ED}/opt/${P}/bin/cargo" "${ED}/opt/${P}/bin/${cargo}" || die
+ dosym "${cargo}" "/opt/${P}/bin/cargo"
+ 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 "${ED}/opt/${P}/bin/clippy-driver" "${ED}/opt/${P}/bin/${clippy_driver}" || die
+ mv "${ED}/opt/${P}/bin/cargo-clippy" "${ED}/opt/${P}/bin/${cargo_clippy}" || die
+ dosym "${clippy_driver}" "/opt/${P}/bin/clippy-driver"
+ dosym "${cargo_clippy}" "/opt/${P}/bin/cargo-clippy"
+ 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 "${ED}/opt/${P}/bin/rustfmt" "${ED}/opt/${P}/bin/${rustfmt}" || die
+ mv "${ED}/opt/${P}/bin/cargo-fmt" "${ED}/opt/${P}/bin/${cargo_fmt}" || die
+ dosym "${rustfmt}" "/opt/${P}/bin/rustfmt"
+ dosym "${cargo_fmt}" "/opt/${P}/bin/cargo-fmt"
+ 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="/opt/${P}/man"
+ EOF
+ doenvd "${T}"/50${P}
+
+ # note: eselect-rust adds EROOT to all paths below
+ cat <<-EOF > "${T}/provider-${P}"
+ /usr/bin/rustdoc
+ /usr/bin/rust-gdb
+ /usr/bin/rust-gdbgui
+ /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
+
+ insinto /etc/env.d/rust
+ doins "${T}/provider-${P}"
+ popd >/dev/null || die
+ #end native abi install
+
+ else
+ local rust_target
+ rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
+ dodir "/opt/${P}/lib/rustlib"
+ cp -vr "${WORKDIR}/rust-${PV}-${rust_target}/rust-std-${rust_target}/lib/rustlib/${rust_target}"\
+ "${ED}/opt/${P}/lib/rustlib" || die
+ fi
+}
+
+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; 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 use elibc_musl; then
+ ewarn "${PN} on *-musl targets is configured with crt-static"
+ ewarn ""
+ ewarn "you will need to set RUSTFLAGS=\"-C target-feature=-crt-static\" in make.conf"
+ ewarn "to use it with portage, otherwise you may see failures like"
+ ewarn "error: cannot produce proc-macro for serde_derive as the target "
+ ewarn "x86_64-unknown-linux-musl does not support these crate types"
+ fi
+}
+
+pkg_postrm() {
+ eselect rust cleanup
+}