diff options
author | 2020-07-16 17:40:36 -0700 | |
---|---|---|
committer | 2020-07-16 23:35:02 -0700 | |
commit | 701fb0db7800333018ef39e81365907c1b099384 (patch) | |
tree | db280bc50c20597124c7d99077983f5d41d314ed /dev-lang/rust-bin | |
parent | dev-lang/rust: bump to 1.45.0 (diff) | |
download | gentoo-701fb0db7800333018ef39e81365907c1b099384.tar.gz gentoo-701fb0db7800333018ef39e81365907c1b099384.tar.bz2 gentoo-701fb0db7800333018ef39e81365907c1b099384.zip |
dev-lang/rust-bin: bump to 1.45.0
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang/rust-bin')
-rw-r--r-- | dev-lang/rust-bin/Manifest | 14 | ||||
-rw-r--r-- | dev-lang/rust-bin/rust-bin-1.45.0.ebuild | 175 |
2 files changed, 189 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest index b493f80232a8..f54c1ffcab78 100644 --- a/dev-lang/rust-bin/Manifest +++ b/dev-lang/rust-bin/Manifest @@ -54,3 +54,17 @@ DIST rust-1.44.1-powerpc64le-unknown-linux-gnu.tar.xz 112429740 BLAKE2B 10252623 DIST rust-1.44.1-s390x-unknown-linux-gnu.tar.xz 119312728 BLAKE2B f5e3209990d3cc0181a200448e4bcbf1f6754847cfc36d7355e191fd49e239d3e0c002310743fd063241c5dec47da3a0776c361241facbcc4a1f1e9254eb805d SHA512 84c6ed736bb7d0c10aaceeb2c2c3c97f6188fd7d7f4466c8ef35ffc591d6bde3b273a0d62d50e60f184ccd81c96a31ed2e610e82fb9ed9efd574e4c5a5f25d26 DIST rust-1.44.1-x86_64-unknown-linux-gnu.tar.xz 112133992 BLAKE2B c0af6bf1417bbb69be9f552f60805eb0a5f530b667ca2bbd04db9d567f1eb467a9e72912062a3c22d3922c29809258637dd7568c29e461dbeb5d17aa0699dd45 SHA512 540761fd5246f4a48a7606ac0220f0d61963473b57ef703696871dc23fda8154d45351b8e81018d15899c386b44e43b05028cc797d495e9dc46f127fbea7f093 DIST rust-1.44.1-x86_64-unknown-linux-musl.tar.xz 117456616 BLAKE2B fd2752cf867e1ff701e624caf602fe7a29b47c64e633508e91da1a1b2321f5531441b84cc9f0ad159ef399d38628d60e59f8b7a99e5427df928abceb24f937f2 SHA512 05ca3e07001746511c5fcb5122f487205ffaee771805b0219db018b350d67945f5ab4b0b2cf98b7e7832b53365e3932fef37506a65ecaaf624d0bb8d43cf8427 +DIST rust-1.45.0-aarch64-unknown-linux-gnu.tar.xz 108160980 BLAKE2B cc86d36a422dd901ecb64232f8fa87518b69f269c31e36361a4d54a0d3a27621210d13f352b219e446370132c99c40bef8acd21f5b89d8d3082508d439b058ba SHA512 a04edec6e3001032caa9f371ef4fe8c102286d2cd3d503f46df63819ee6976b8e723d4968b7bfc08438f8cf1cd2af1b24fe63f684c0b34b10b29e473a57b92f4 +DIST rust-1.45.0-arm-unknown-linux-gnueabi.tar.xz 114499852 BLAKE2B abb020cd3aeb3fc2c84d4086607dcd55c1d0437f7bec9c560c762b519218a54881c8a9212bb0b8aca37611a6d407b16341443a3d531213a0848fc2461630301b SHA512 6bca4e70d70a3ccf3e9d761bcf5b38882599b11b0422623e13dfe88a8ae0593475e84b140a9f7492852dc83e933f90736d55fefdd4e0631517dfd2938a949364 +DIST rust-1.45.0-arm-unknown-linux-gnueabihf.tar.xz 113593052 BLAKE2B 54f2851fe2b8a4655a6671c6b037f17d1a7f4eaca630c1d8ac58f2cc1dbc1970abc97fe0c07ebd3cbf1adf750185dbf28fd14b03f04c0ab501d078e582146809 SHA512 9d3a008078fce7c6a50d4dd3cf882a716b93db8c474a415ff89ece2108feaef8c4994773b935f435e934f7aa502efdc903ae50b9db64bf1b4a180766cb8b9f6e +DIST rust-1.45.0-armv7-unknown-linux-gnueabihf.tar.xz 115636272 BLAKE2B 3f71793be5ba68fd2abb5137431b0b2196440bef5cb2df442aff0b87995fed086582d17b71c9e707460594a7652127c091a74031fddb51ff5af8256528afa2ee SHA512 01280668be7f25e29001f8374654b186c6ea00f3f23e2520661a75aee0ae331905af92ad272e4c54d48e3f1edf7f98ef0df05702fa73929324305b4134ae46bc +DIST rust-1.45.0-i686-unknown-linux-gnu.tar.xz 131454968 BLAKE2B b332063bbdb4adbe270a22dbe5e39f612f5601e65c45742cc5338222b19f08c5c2d9d303b36617e475faa46dd25a815c0014236614565062ca6866b08bd60880 SHA512 479a1b5c262cf0de729907a27ee85380115f9062fdfc346b57557d29b5090684254391c5b62feebbe7b8edee603bb2ae299d3ca2415cce67050ea2681e29e075 +DIST rust-1.45.0-mips-unknown-linux-gnu.tar.xz 101096160 BLAKE2B d0851f170e393f694c5daa8fe397243f3bdfec5863e8e6ef837bbfcdb33232927e913771d599a5ec9878fb1c05b7abed6b4082edadb6e6e482a9f32d6d22a3a8 SHA512 a9b57dcc96b9dd6ad720efec0279999a482403f3fd6a173e41fdcfe23192a0acb3380c5fa575cc2314121d45e2dc7e3cbccc728d0118a06ec2f6dd04a38f4ca1 +DIST rust-1.45.0-mips64-unknown-linux-gnuabi64.tar.xz 106785036 BLAKE2B 2e1057d694af6ff895043eaed57a1827234a6acdd88410176ca789ec3dd8108ad7929c0a9350e288fe8c3bd0c0d9f8924b62651d6b203683e748f718e58839ba SHA512 322a277db1ebc778fef5e217739cc259e2d4cb9dcc6d20e041086856b0a9747e41d1cd2f7880892473aa3bdd8008039ebcaf07a0aca12fd96b0af761803e9fd9 +DIST rust-1.45.0-mipsel-unknown-linux-gnu.tar.xz 104082296 BLAKE2B 803fb1e2293e452f5fd71057a222d1ed21cf23f8d7268db6c28413adb34e51d7351369ea278ce88067fffead3ad241fb8e3960d79f4a987d41be822b672f1ad5 SHA512 209117498d2578cf1f82eacdef58bd7d74a672e9226e0789e965fa1ea2e3a1cd4fa0eaab95bc12e63dbdeab5aaaedb408f155adbdbd2c7f1162fdfe3ee38db69 +DIST rust-1.45.0-powerpc-unknown-linux-gnu.tar.xz 104325824 BLAKE2B 95b1508fa9cda100768977e1cd69f4ddef13f84ef0bd60c65433229c47265eb9341a6e012ead4dbf39672d4661b142b0d29fc15bbb92482a6a3ebaa221535761 SHA512 19655dfc3d807c9145ae4f1eb6679680deb0e8bfddf87b95140a7540d08d5c1cfb7849ede8acf388d68068e8d6c2ddfe769ccafb6be2148062c60ce3c940ad35 +DIST rust-1.45.0-powerpc64-unknown-linux-gnu.tar.xz 117219060 BLAKE2B c71e37c4bedd19eea0833a0231b83e4ba2b48075e7d4c22c0b789da1cdae05d1c800758aaf7c13b5b747f0a2cfc84504b6671c36177b714c8b46161923fbdb8e SHA512 db8507af199347ddb55d539748c10187756b5215b0e307b300eeb2ef5d4dc4ad58513c36af28173a1c0ad657e64f7104d1f6cbddb35e24b263e75718098f1a87 +DIST rust-1.45.0-powerpc64le-unknown-linux-gnu.tar.xz 121610840 BLAKE2B e0763a8c2cf2f96cda812a4344633ae8fd149f47c2529e974457841df0dd3c789a29ff3854b5065aa9a6589916330fe436ddfbd7bb2855014ebdf4d712b30350 SHA512 01eab6a9ffa9d1aab24dd42c879217e1facfbb38caa606730ccb395695dccaf378297fc13b9e6f50cf7056885f99cf29d7fbc9fc987be851699eef574e6b1457 +DIST rust-1.45.0-s390x-unknown-linux-gnu.tar.xz 125133972 BLAKE2B 03f10c887b1fade6e7b6ea822bb5bb51bfc6a426f0a50fef19612add1a0d518172155402f6675cfa81943d70940806c23b25228f69fcf0383889f84ac9c0a208 SHA512 9c8ababcf54f2de07ab39bdbc5b3c212077d22944c509eb0971eaa7e9c068eb385387abfdef8cd52ba91895847aa491acf928298566cc2382a1045097b8a543d +DIST rust-1.45.0-x86_64-unknown-linux-gnu.tar.xz 117891136 BLAKE2B 59f3a7883197fd3ebbcefca5ebc653fbda1b2969922545faa70cc321e51d5c1557976296f1c00cc8e344168be242cb19d669ac8415836ec5958957ba30769fa4 SHA512 e156dad517c5aefea97c2116ad7239dffc6eb5594f795aeaa4e7dbf5b2b8c833f4e7459578c1c6e18238f23379af429e73bc0c97dace0a97b1786836409f17fa +DIST rust-1.45.0-x86_64-unknown-linux-musl.tar.xz 124135096 BLAKE2B 683c29fb21d7cc5a523112de4cb1dd6b21c317e15435826039fb76cb280c5803ca94106625db8cff0f4d3c734340aa2b7a4b10880af8b06b9954d8bab7a1e1ba SHA512 c8b9d9555e6c7f4439cd967f7deebb0540800fd29cb5970e3d95f1ea87c100d2924a711fbd74afab61d2310bba9e5a02b5f2eb2a7881a7026bcbe762ae1da93e diff --git a/dev-lang/rust-bin/rust-bin-1.45.0.ebuild b/dev-lang/rust-bin/rust-bin-1.45.0.ebuild new file mode 100644 index 000000000000..b36387480c97 --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-1.45.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 +} |