summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-06-14 14:48:45 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-06-14 14:52:17 -0700
commit8bd8d551db420808576c4301f5e5b159be4eb234 (patch)
tree0a5161c024a43649bcb1b6b77465ac955a14b052 /dev-util
parentdev-util/pkgcheck: stable 0.10.1 for hppa, bug #790017 (diff)
downloadgentoo-8bd8d551db420808576c4301f5e5b159be4eb234.tar.gz
gentoo-8bd8d551db420808576c4301f5e5b159be4eb234.tar.bz2
gentoo-8bd8d551db420808576c4301f5e5b159be4eb234.zip
dev-util/rustup: add 1.24.3
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/rustup/Manifest2
-rw-r--r--dev-util/rustup/rustup-1.24.3.ebuild366
2 files changed, 368 insertions, 0 deletions
diff --git a/dev-util/rustup/Manifest b/dev-util/rustup/Manifest
index d46cd48c6c1f..568ddfdb5990 100644
--- a/dev-util/rustup/Manifest
+++ b/dev-util/rustup/Manifest
@@ -200,6 +200,7 @@ DIST regex-syntax-0.6.22.crate 293187 BLAKE2B 6dfa3502133e4f654ea3533c6e9eda7674
DIST regex-syntax-0.6.23.crate 293195 BLAKE2B cc7c951f252fbc814d12e4276728ee0fb9fc381e5c6b3f9ed2204904ce36ec29d95278db00ebed7268ff65165c19b30b0d959e7e5bb26c96538bb3aa7288d724 SHA512 d4f41e40c1460ee95fd96514a3accb4eaa6c125b47abf66ea7b0b60267c0ab112c51c1877d71bf1cfe4f9277f95617f5047058b2a3da91dc24aa5c1cf2781f34
DIST remove_dir_all-0.5.3.crate 9184 BLAKE2B ab7ef94e0230ddc9b363f038254a180881bbc20eb04a254f97e6f71ed491c99ba1c88f5e85632d450243882a4a0df63f3b8b183bc1fbca9caf30ec23d577b1d7 SHA512 50417d6d8a33912193a1ed37eb72b47431b12ae65d2780cdb7080c3d141e63819da13751c3fb737685cea322f70b36d413389c3dc01aa12b4dce615aefed0e2c
DIST remove_dir_all-0.6.1.crate 7854 BLAKE2B 42d221f06c4d33a06b8cbf8705fbcea8113d3194f920f1c34f0ef00826a6ecf10bbab18903540f5005e3d448b256a9cdf59e009eab9a2c0c93d022b7b258e580 SHA512 ff22c03887d28e503725394d8b34eb6e118e3aa83d14429d8478b8440daf93874b3c5407d7918d0660b1dbec633601189e840a5fa57889028982187f5851ff66
+DIST remove_dir_all-0.7.0.crate 9041 BLAKE2B ec298c4c6ac01bff3af5618ffa59aca535d74e06cbddf86c765318ded226c3fadb7f8277c572f173ae7d04f16c2b504375e400fa4e228d8747604860fb25660a SHA512 a4a426e7f3e9f4d3925809e22ebb61d06be04703ecabbc07aae80894458f29a146bc6aa6540ab4ac96c74a160a5520ea079ebb6ac6cca489ba036ece6678339c
DIST reqwest-0.11.1.crate 128020 BLAKE2B 09e509b9cce48ae63f35f10a9502cafe6ad892cfb20847e06db525bb9826e44f0a519e9660933e60da0c7ec3ae1b42ecb5ce99d1ddf46badbaf483f47c93b066 SHA512 063b92ffb57dcc4d79a776a97b1cd2ed29c3ab686e49e3c1395589e4e2425154ab2eb7ad10785d1f904fdce4e50d8efe815f2bcc81a18d0d7e0a21af4898bae4
DIST reqwest-0.11.2.crate 129168 BLAKE2B 2e219d951874c90200150c678919fcb1e0dcdba2f90b34bd95587ca01376265c5c89e8937ae1db5dde41be579d781eda0b8e662f803412fc2d74d4fdabeefedc SHA512 cb5d2dc85d7a0eccbcfcfc11db3fda7647b5ce706ec33e63e7105613e47facb20ca82cd02f8b9fb44e98be501e4e59fba6d7434bc056ef58225c8845417018b1
DIST retry-1.2.0.crate 8000 BLAKE2B fe5a6a0b6c642a09b0419814fabcc4df096adc9bc127039280070bcefe62601ccfc22f9c164c955b67f24cf5a11dddf4975df823b7fd17d694ae0a1f96ce6abe SHA512 7c8e81fe730182056d86b94e88130c3acc2962d2c7649049e7fdbb30f996904bbdcb94ba7fe8a91b4c68ec971d37acfc12804edff4b24e2cc6d5a020fedf4357
@@ -213,6 +214,7 @@ DIST rustls-0.19.0.crate 208339 BLAKE2B 55f627e2cd497d8fec205c3e5419804db23eea1b
DIST rustls-native-certs-0.5.0.crate 18482 BLAKE2B 3bb991c7608afd7f06cc1ca2fb3a2f76b0f29224ef85557050f465eebd0cac90e286cea068208f8ea69692f8e803e89e9cda7b51bd23cb3da2287cdad215f3b7 SHA512 55ec5d034a4ca3fbff5255fdffd79c0abbcc9f767dffa18d48fd667c262f60dd67cd48c8aa8f1738e580a07e9a6bcb3375479b072d1e18ce6aaf8da32071ee41
DIST rustup-1.24.1.tar.gz 689189 BLAKE2B 12b7c4c086bdfb422c609c471f14c2e309d019232eed16f2ec213d80235c3dfef1ad33787dd199e1968ef37757013b8c96b6da61f00f8737a984f350dd339cad SHA512 4d687cc686cc5166ac361ac22f861a4422681febc65afd60f2431e2bc2a2d199eb911390a0f57e8023033796d83747de1f83717e5532732d60c994d3422e3c67
DIST rustup-1.24.2.tar.gz 691952 BLAKE2B 31d19fae2553b8d9b8248b461e8e27bc56c8f04b112f78c1c70facab2b120f17548909cf8b149b053f61583e5c41a6cabf3cbaacf877195fc58227210ed3b781 SHA512 1731e28e0a869caf781be980e91482f324e6bcd405bd0c40bc0457acb8825ffc3ffbb13439cce644330569057dcae3fe071e00cf86a3689ac6d8a439ce7e3a0f
+DIST rustup-1.24.3.tar.gz 695329 BLAKE2B 67655cb3c69b1d2c1052b21a25492ca2b6fa92654c8abb2176f254926304b9c1cc4ee98b73b9ea53287bb99502ec0dc6b0ec3ed912e5c42c9a54c8a679c5ca5f SHA512 43e85f1e653d451a2555a7ae9a3f47c4b9eb8e0fea0cd9cdcf381728ac933b56aaa25366ca2e1b12f20f9190b77d407a00a3f559ced6ad9c4f51fcef9efe67d7
DIST ryu-1.0.5.crate 49570 BLAKE2B 3bfba4a5f290a429de7ac3b86823b2a973f40eb6f48c15329173d95964d31ada36f2618be4b36774a03f97f2ce61364900c6a3ad5465a294e2df311a1f4104ed SHA512 d1708ffa3112a684edf2956b6730ead040401d38f1457cde074eaaa59c249007dc8b925629e7f6df89f7ea757e9d0826649d685cc8ede0a04d50296048bf476c
DIST safemem-0.3.3.crate 7778 BLAKE2B 6ebc0e234054919687e8a369bc30ca6b007d0e4f8147157ba1a90c290b7f0b490e5c21a6d4406671e26ac073f9e4e06a2bc9b1f21eb152b05c4022a3a4ef3793 SHA512 2e4852ca91160f9f1e764b75145d794726a5f6c162cc99ecbf9cae20474a06cb3a0dfc245b895c51342240f6875423010b33e36d038b8b419a37e4820a9caf72
DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15 SHA512 3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c
diff --git a/dev-util/rustup/rustup-1.24.3.ebuild b/dev-util/rustup/rustup-1.24.3.ebuild
new file mode 100644
index 000000000000..9477b6503811
--- /dev/null
+++ b/dev-util/rustup/rustup-1.24.3.ebuild
@@ -0,0 +1,366 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CRATES="
+adler-1.0.2
+aes-0.5.0
+aesni-0.8.0
+aes-soft-0.5.0
+aho-corasick-0.7.15
+ansi_term-0.11.0
+anyhow-1.0.40
+async-compression-0.3.7
+atty-0.2.14
+autocfg-0.1.7
+autocfg-1.0.1
+base64-0.12.3
+base64-0.13.0
+bitfield-0.13.2
+bitflags-1.2.1
+block-buffer-0.9.0
+block-cipher-0.8.0
+block-modes-0.6.1
+block-padding-0.2.1
+blowfish-0.6.0
+buf_redux-0.8.4
+bumpalo-3.6.1
+byteorder-1.4.3
+bytes-1.0.1
+cast5-0.8.0
+cc-1.0.67
+cfb-mode-0.5.0
+cfg-if-0.1.10
+cfg-if-1.0.0
+chrono-0.4.19
+circular-0.3.0
+clap-2.33.3
+clear_on_drop-0.2.4
+core-foundation-0.9.1
+core-foundation-sys-0.8.2
+cpuid-bool-0.1.2
+crc24-0.1.6
+crc32fast-1.2.1
+crossbeam-channel-0.5.0
+crossbeam-deque-0.8.0
+crossbeam-epoch-0.9.3
+crossbeam-utils-0.8.3
+curl-0.4.35
+curl-sys-0.4.41+curl-7.75.0
+curve25519-dalek-3.0.2
+darling-0.10.2
+darling_core-0.10.2
+darling_macro-0.10.2
+derive_builder-0.9.0
+derive_builder_core-0.9.0
+des-0.5.0
+digest-0.9.0
+ed25519-1.0.3
+ed25519-dalek-1.0.1
+effective-limits-0.5.2
+either-1.6.1
+encoding_rs-0.8.28
+enum-map-1.1.0
+enum-map-derive-0.5.0
+env_proxy-0.4.1
+filetime-0.2.14
+flate2-1.0.20
+fnv-1.0.7
+foreign-types-0.3.2
+foreign-types-shared-0.1.1
+form_urlencoded-1.0.1
+futures-channel-0.3.13
+futures-core-0.3.13
+futures-io-0.3.13
+futures-macro-0.3.13
+futures-sink-0.3.13
+futures-task-0.3.13
+futures-util-0.3.13
+generic-array-0.14.4
+getrandom-0.1.16
+getrandom-0.2.2
+git-testament-0.1.9
+git-testament-derive-0.1.10
+h2-0.3.2
+hashbrown-0.9.1
+hermit-abi-0.1.18
+hex-0.4.3
+http-0.2.3
+httparse-1.3.5
+http-body-0.4.1
+httpdate-0.3.2
+hyper-0.14.5
+hyper-rustls-0.22.1
+hyper-tls-0.5.0
+ident_case-1.0.1
+idna-0.2.2
+indexmap-1.6.2
+ipnet-2.3.0
+itoa-0.4.7
+jobserver-0.1.21
+js-sys-0.3.50
+keccak-0.1.0
+lazy_static-1.4.0
+libc-0.2.93
+libm-0.2.1
+libz-sys-1.1.2
+log-0.4.14
+lzma-sys-0.1.17
+matches-0.1.8
+md-5-0.9.1
+memchr-2.3.4
+memoffset-0.6.3
+mime-0.3.16
+miniz_oxide-0.4.4
+mio-0.7.11
+miow-0.3.7
+native-tls-0.2.7
+nom-4.2.3
+ntapi-0.3.6
+num-bigint-0.2.6
+num-bigint-dig-0.6.1
+num_cpus-1.13.0
+num-derive-0.3.3
+num-integer-0.1.44
+num-iter-0.1.42
+num-traits-0.2.14
+once_cell-1.7.2
+opaque-debug-0.3.0
+opener-0.4.1
+openssl-0.10.33
+openssl-probe-0.1.2
+openssl-src-111.15.0+1.1.1k
+openssl-sys-0.9.61
+pem-0.8.3
+percent-encoding-2.1.0
+pest-2.1.3
+pgp-0.7.1
+pin-project-1.0.6
+pin-project-internal-1.0.6
+pin-project-lite-0.2.6
+pin-utils-0.1.0
+pkg-config-0.3.19
+ppv-lite86-0.2.10
+proc-macro2-1.0.26
+proc-macro-hack-0.5.19
+proc-macro-nested-0.1.7
+pulldown-cmark-0.8.0
+quote-1.0.9
+rand-0.7.3
+rand-0.8.3
+rand_chacha-0.2.2
+rand_chacha-0.3.0
+rand_core-0.5.1
+rand_core-0.6.2
+rand_hc-0.2.0
+rand_hc-0.3.0
+rayon-1.5.0
+rayon-core-1.9.0
+redox_syscall-0.2.5
+regex-1.4.5
+regex-syntax-0.6.23
+remove_dir_all-0.5.3
+remove_dir_all-0.7.0
+reqwest-0.11.2
+retry-1.2.1
+ring-0.16.20
+ripemd160-0.9.1
+rsa-0.3.0
+rs_tracing-1.0.1
+rustls-0.19.0
+rustls-native-certs-0.5.0
+ryu-1.0.5
+safemem-0.3.3
+same-file-1.0.6
+schannel-0.1.19
+scopeguard-1.1.0
+sct-0.6.0
+security-framework-2.2.0
+security-framework-sys-2.2.0
+semver-0.11.0
+semver-parser-0.10.2
+serde-1.0.125
+serde_derive-1.0.125
+serde_json-1.0.64
+serde_urlencoded-0.7.0
+sha-1-0.9.4
+sha2-0.9.3
+sha3-0.9.1
+sharded-slab-0.1.1
+signature-1.3.0
+simple_asn1-0.4.1
+slab-0.4.2
+smallvec-1.6.1
+socket2-0.3.19
+socket2-0.4.0
+spin-0.5.2
+stream-cipher-0.7.1
+strsim-0.10.0
+strsim-0.8.0
+strsim-0.9.3
+subtle-2.4.0
+syn-1.0.68
+synstructure-0.12.4
+sys-info-0.6.1
+tar-0.4.33
+tempfile-3.2.0
+term-0.5.1
+textwrap-0.11.0
+thiserror-1.0.24
+thiserror-impl-1.0.24
+threadpool-1.8.1
+time-0.1.43
+tinyvec-1.2.0
+tinyvec_macros-0.1.0
+tokio-1.4.0
+tokio-native-tls-0.3.0
+tokio-rustls-0.22.0
+tokio-socks-0.5.1
+tokio-util-0.6.5
+toml-0.5.8
+tower-service-0.3.1
+tracing-0.1.25
+tracing-core-0.1.17
+try_from-0.3.2
+try-lock-0.2.3
+twofish-0.4.0
+typenum-1.13.0
+ucd-trie-0.1.3
+unicase-2.6.0
+unicode-bidi-0.3.4
+unicode-normalization-0.1.17
+unicode-width-0.1.8
+unicode-xid-0.2.1
+untrusted-0.7.1
+url-2.2.1
+vcpkg-0.2.11
+vec_map-0.8.2
+version_check-0.1.5
+version_check-0.9.3
+wait-timeout-0.2.0
+walkdir-2.3.2
+want-0.3.0
+wasi-0.10.2+wasi-snapshot-preview1
+wasi-0.9.0+wasi-snapshot-preview1
+wasm-bindgen-0.2.73
+wasm-bindgen-backend-0.2.73
+wasm-bindgen-futures-0.4.23
+wasm-bindgen-macro-0.2.73
+wasm-bindgen-macro-support-0.2.73
+wasm-bindgen-shared-0.2.73
+webpki-0.21.4
+web-sys-0.3.50
+winapi-0.3.9
+winapi-i686-pc-windows-gnu-0.4.0
+winapi-util-0.1.5
+winapi-x86_64-pc-windows-gnu-0.4.0
+winreg-0.7.0
+winreg-0.8.0
+x25519-dalek-1.1.0
+xattr-0.2.2
+xz2-0.1.6
+zeroize-1.2.0
+zeroize_derive-1.0.1
+zstd-0.6.1+zstd.1.4.9
+zstd-safe-3.0.1+zstd.1.4.9
+zstd-sys-1.4.20+zstd.1.4.9
+"
+
+inherit bash-completion-r1 cargo prefix
+
+DESCRIPTION="Rust toolchain installer"
+HOMEPAGE="https://rust-lang.github.io/rustup/"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/rust-lang/${PN}.git"
+else
+ HOME_COMMIT="a243ee2fbee6022c57d56f5aa79aefe194eabe53"
+ SRC_URI="https://github.com/rust-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/rbtcollins/home/archive/${HOME_COMMIT}.tar.gz -> home-${HOME_COMMIT}.tar.gz
+ $(cargo_crate_uris ${CRATES})"
+ KEYWORDS="~amd64 ~arm64 ~ppc64"
+fi
+
+LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 MIT Unlicense ZLIB"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ app-arch/xz-utils
+ net-misc/curl:=[http2,ssl]
+ dev-libs/openssl:0=
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/rust"
+
+QA_FLAGS_IGNORED="usr/bin/.*"
+
+# uses network
+RESTRICT="test"
+
+src_unpack() {
+ if [[ "${PV}" == *9999* ]]; then
+ git-r3_src_unpack
+ cargo_live_src_unpack
+ else
+ cargo_src_unpack
+ fi
+}
+
+src_prepare() {
+ # patch git dep to use pre-fetched tarball
+ local home_path="home = { path = '"${WORKDIR}/home-${HOME_COMMIT}"' }"
+ sed -i "s@^home =.*@${home_path}@" "${S}/Cargo.toml" || die
+
+ default
+}
+
+src_configure() {
+ # modeled after ci/run.bash upstream
+ # reqwest-rustls-tls requires ring crate, which is not very portable.
+ local myfeatures=(
+ no-self-update
+ curl-backend
+ reqwest-backend
+ reqwest-default-tls
+ )
+ case ${ARCH} in
+ ppc*|mips*|riscv*|s390*)
+ ;;
+ *) myfeatures+=( reqwest-rustls-tls )
+ ;;
+ esac
+ cargo_src_configure --no-default-features
+}
+
+src_compile() {
+ export OPENSSL_NO_VENDOR=true
+ cargo_src_compile
+}
+
+src_install() {
+ cargo_src_install
+ einstalldocs
+ newbin "$(prefixify_ro "${FILESDIR}"/symlink_rustup.sh)" rustup-init-gentoo
+
+ ln -s "${ED}/usr/bin/rustup-init" rustup || die
+ ./rustup completions bash rustup > "${T}/rustup" || die
+ ./rustup completions zsh rustup > "${T}/_rustup" || die
+
+ dobashcomp "${T}/rustup"
+
+ insinto /usr/share/zsh/site-functions
+ doins "${T}/_rustup"
+}
+
+pkg_postinst() {
+ einfo "No rustup toolchains installed by default"
+ einfo "eselect activated system rust toolchain can be added to rustup by running"
+ einfo "helper script installed as ${EPREFIX}/usr/bin/rustup-init-gentoo"
+ einfo "it will create symlinks to system-installed rustup in home directory"
+ einfo "and rustup updates will be managed by portage"
+ einfo "please delete current rustup binaries from ~/.cargo/bin/ (if any)"
+ einfo "before running rustup-init-gentoo"
+}