diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2018-10-19 20:14:25 +0200 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2018-10-19 20:17:36 +0200 |
commit | 91378961a5880f419866ed35334334daf4305640 (patch) | |
tree | bc4c01284b936655b8617b3dd061b6394d5cf0a9 | |
parent | dev-perl/LWP-Protocol-https: added Prefix keywords, bug #665088 (diff) | |
download | gentoo-91378961a5880f419866ed35334334daf4305640.tar.gz gentoo-91378961a5880f419866ed35334334daf4305640.tar.bz2 gentoo-91378961a5880f419866ed35334334daf4305640.zip |
dev-lang/rust-bin: version bump to 1.29.2, based on r new eclass
Signed-off-by: Dirkjan Ochtman <djc@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
-rw-r--r-- | dev-lang/rust-bin/Manifest | 13 | ||||
-rw-r--r-- | dev-lang/rust-bin/rust-bin-1.29.2.ebuild | 155 |
2 files changed, 168 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest index de84500680e4..cb584bedd578 100644 --- a/dev-lang/rust-bin/Manifest +++ b/dev-lang/rust-bin/Manifest @@ -4,3 +4,16 @@ DIST rust-1.29.1-arm-unknown-linux-gnueabihf.tar.xz 106051860 BLAKE2B 65d9a5f755 DIST rust-1.29.1-armv7-unknown-linux-gnueabihf.tar.xz 106372416 BLAKE2B 25371071e52a585c3f0b99f5849cf674aedd6d024ce75f6bf7b0d88f485d715b42d6a0f5eb8871890240d1c2488d7ad75c8ac7b4b22dd88e3ce2d049d35ae8ee SHA512 0067476eb0972998cee33f27d8fd6ef51c497bd6edbbd8a289fcf768da525805646569ed029318d4be6ecb6aece6669e3554eb30a14e1d31f2a3e7d5896b14c3 DIST rust-1.29.1-i686-unknown-linux-gnu.tar.xz 150811536 BLAKE2B 999997d268cbbb5485d8efde108462bb0086ed9428a9b7ba8136dac764cd871a39d9503f6b928ce5fd9f1cdbf20dd109877f4404cb4522ccb2d37bfd55b15664 SHA512 8dc2a3b7fb1eef4b009541c473b767d07ab1136b933495b22e3fa56925def80b141b4801ce362ce9986a559fda4299fea35dd4bd7209dc1b3425b44421605df8 DIST rust-1.29.1-x86_64-unknown-linux-gnu.tar.xz 148184680 BLAKE2B be64a44619807be3151162e45cefe79242e965277606b7aac4f0456d34e4cb526b1779c327499c47c484a830c4c566ab1aeaef30cf17ae7d2bdc89ecbf1f5de5 SHA512 69809c2ae77be6a1f71a5f14cea74dee6ac59bb548bc8ed454819ce3db38146ad64b83a6bf2a6d5cea68c807bc8ecf6c7929c4f8365b419e40a23022074efa16 +DIST rust-1.29.2-aarch64-unknown-linux-gnu.tar.gz 158291745 BLAKE2B 975248855beed5633b9e859d175ea1de50be8df30be1bb953b64917c881c7da44b389ad5a370c6e5abfcc2ca63229f4b9108224febf46a147aa701c8b395e9e0 SHA512 95522c1562ed91a729bd1cf60284de89c21ef2c12ee292c7fb6389cbaf87e4818a7df9c8f11c08965f8b0d553b40fffc8ae088994a0ec645bfe02fbdb9e3923a +DIST rust-1.29.2-arm-unknown-linux-gnueabi.tar.gz 162811009 BLAKE2B 92ea257c3067935ee54417216e54d5819f0b2e4098e176e9cace132fc8e96af131c36246631b8d2eeb1a832218c862d39aeb733fad1257970049d25aae859728 SHA512 c43f8643a189da2dc0bb96512f0189acdbf9685ea349752b9a3db39bbb85f922651cc858882d0b3e88044ead900b4358f6e9b1afbbac73c12e99b38980226d3b +DIST rust-1.29.2-arm-unknown-linux-gnueabihf.tar.gz 163163963 BLAKE2B 9e8fdcef7f3d0828e908697abd38b24b981d1175f6ba525fefe0226e9950daf3f33d46fe4f000dd4697a95904bac4b49388f6a8815d60919a5da41ea3e66658e SHA512 d6504b347e480f4ad6c4d7c5f00b4acd6e502c6adc6c3246c9a030457177ee10ccbf79f544f49114e675dfd3662124fe47d77be8c8d4bed6da3c21fa846abe05 +DIST rust-1.29.2-armv7-unknown-linux-gnueabihf.tar.gz 160680120 BLAKE2B b80e2d965cf4eafbd1c64d3837bac1161107759479697edddd75894f8d090838e37de0f86a9fa46c93ad4f944a4f79016d7bccc24ee2146870b96e941c73b3fb SHA512 36b0aa72c374e8d0aaf958416afbdebb8c3cb5bd19e9c10a021d4f5b1554d6f02b6b6cad1359bddf7cb62b8927859dbd021e393849071fd129f532b20830e8b8 +DIST rust-1.29.2-i686-unknown-linux-gnu.tar.gz 241724580 BLAKE2B 3670cd462e2d2ef0d5da2366e2199ccb4d3757c2e82ffd811d5f047208485d34bd4f03b818fea9617d646b072f9f43cdc5da3b63564769ba631a3c41d607b6bf SHA512 705191d58d8d5758809a82293a1cf4b8212f4a2921fadc90db89c98d97d3e712742fbb6115222eedfa614fdfe168244fbbb298af141122a0b527ff47b33be280 +DIST rust-1.29.2-mips-unknown-linux-gnu.tar.gz 154332987 BLAKE2B 5c9a73397877959fc9384a6feaf2b0eaa8c4b74d6e91d1cc9e2cd5970f814aece8fc81d6067c76a7e906ffe874e50643630456916e1cbad423dcc881385112bc SHA512 9209f236522b5bce900a42939c606c4a2d5eb114291a417495df5d3edc87922bfa3cfa35f76651baeac0c0ba6d1a26806c35c3bb9e507371a501994968d92918 +DIST rust-1.29.2-mips64-unknown-linux-gnuabi64.tar.gz 164993156 BLAKE2B 19dc03c1ab7e9258c12532c0187cbb04a32f48f242eda3bc1e28be339af3d537435786624c9d7a952cb6e664ba1f599c112f4c8659d2a36aec5f26cb4ba88cde SHA512 beca933cd99dd4c890178ffdc57ebe838b1626a681211736d7da576826f4ff1273f7508e06f432c0330c8da3e121437208bc703d25268603755b125689391923 +DIST rust-1.29.2-mipsel-unknown-linux-gnu.tar.gz 152427335 BLAKE2B ab4c891dbb4dfd93cc2f736a7c59b2c2f34eba5675b87c71a23020fa77b4e07e0149ab3eb985c8611a1db00068f0f414f9230add686f17e33a1b83370d957ae6 SHA512 8361f90cc180eb879429bc114876bd73812d44d887efe4972dfb863479927bd59b0cdf9477b8c4b3ef0ab18c0bdfc9615ab5896b823fc1e66946f4b1c4ca0130 +DIST rust-1.29.2-powerpc-unknown-linux-gnu.tar.gz 153327851 BLAKE2B e878b6ba4fc8cd83a6be3441529df70c486170847888bf8f5e1c11d024e7886df956348ad969263710d391e4a590d12e87edf52343cad26498074ea075a16716 SHA512 8438bd301868e0e356d220bb4ef661926503fd773f2f515ec748b446a20754c123f0d73e86e6a10b65a27af627908c68c5e64def540c8ece7d35a3f9d57dda6e +DIST rust-1.29.2-powerpc64-unknown-linux-gnu.tar.gz 173573281 BLAKE2B 42a8367de8960bb28b46f487eb40c20cd91b1d4a1c37de5ee3ee353d2e0570557eafee98043da9c6fc93abf79fa25d55630cb14f979b774d6a9dd02493db70c8 SHA512 59cbbf0eccd6d1b27a66b0384f90d18cb471004ebd9cbb06558b88f572a6076f3c6a59b9fc3a235c39d1dfffcd1c90cb2a0c1b4a2294817732f4604c0e8d9d49 +DIST rust-1.29.2-powerpc64le-unknown-linux-gnu.tar.gz 170951028 BLAKE2B 169d150e9652ea2823470b518151c75ecbf7dbb1c4421b8141c2b7729ff14a360b61c4f0f3a74e20dfe8716cc15c919e1539588075b2cb7aa9162738286b6df1 SHA512 5a02b003920e472c6680347c07bf31b4d108c8f8f650dc453af9dc7cbacbcaa3d21d19c8e42eddae1fed53245b686690fc08dc3336d88bad408fe41b6a6e46ea +DIST rust-1.29.2-s390x-unknown-linux-gnu.tar.gz 159977145 BLAKE2B a34783adfb6aae7a8b1369a27826a24ac53125a2a1ec77b6adaab2329689c7973da676561b68a6872db49e1a8fd035b8e67db8290845f06cc895d40f1caa04a4 SHA512 9d6725eba71896f76bbc7f79a2c12390b5ecd7787e2994db21690ed1b8d9c7aa2978c0b67c1a42d723372291d280fd8c8bc07a50955a0626e9e0f73aaf432269 +DIST rust-1.29.2-x86_64-unknown-linux-gnu.tar.gz 239060356 BLAKE2B eb4fa53843fca1adab9b399e16cbffc09a9b11fe5720fa30a640b36490b788e35c69ba139bc26e1d341e65e662c036abee8a44b56e597a0c47a684f0c7a4f8a9 SHA512 001fb1e3097fff9369d3689839ec220b867c0aaa48683c83959c57c090d28c47cc73d42191e8191e44c7360e4fc5b7f4600c3474f8dcb3e08b2fceaf63e0eb3e diff --git a/dev-lang/rust-bin/rust-bin-1.29.2.ebuild b/dev-lang/rust-bin/rust-bin-1.29.2.ebuild new file mode 100644 index 000000000000..afca3183a7a0 --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-1.29.2.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils bash-completion-r1 rust-toolchain versionator 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 ~x86" +IUSE="cargo clippy cpu_flags_x86_sse2 doc libressl rustfmt" + +CARGO_DEPEND_VERSION="0.$(($(get_version_component_range 2) + 1)).0" + +DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 + !dev-lang/rust:0 + cargo? ( !dev-util/cargo ) + rustfmt? ( !dev-util/rustfmt ) +" +RDEPEND="${DEPEND} + cargo? ( + sys-libs/zlib + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + net-libs/libssh2 + net-misc/curl[ssl] + )" +PDEPEND="!cargo? ( >=dev-util/cargo-${CARGO_DEPEND_VERSION} )" +REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )" + +QA_PREBUILT=" + opt/${P}/bin/*-${PV} + opt/${P}/lib/*.so + 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,${std}" + use doc && components="${components},rust-docs" + use cargo && components="${components},cargo" + 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}" + + if use cargo; then + local cargo=cargo-bin-${PV} + mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die + dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}" + fi + 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 + if use cargo; then + echo /usr/bin/cargo >> "${T}/provider-${P}" + fi + 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 +} |