From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rustup/
Date: Tue, 18 Mar 2025 17:49:40 +0000 (UTC) [thread overview]
Message-ID: <1742320173.43a2e9f6860dfdc8942cd14a23b0661de7237eec.arthurzam@gentoo> (raw)
commit: 43a2e9f6860dfdc8942cd14a23b0661de7237eec
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 18 17:37:24 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 18 17:49:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43a2e9f6
dev-util/rustup: sync live
Closes: https://bugs.gentoo.org/942307
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-util/rustup/rustup-9999.ebuild | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/dev-util/rustup/rustup-9999.ebuild b/dev-util/rustup/rustup-9999.ebuild
index e44aa837b280..5e50e4cf5798 100644
--- a/dev-util/rustup/rustup-9999.ebuild
+++ b/dev-util/rustup/rustup-9999.ebuild
@@ -1,12 +1,10 @@
-# Copyright 2020-2024 Gentoo Authors
+# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-CRATES="
-"
-
-inherit bash-completion-r1 cargo prefix
+CRATES=""
+inherit cargo prefix shell-completion toolchain-funcs
DESCRIPTION="Rust toolchain installer"
HOMEPAGE="https://rust-lang.github.io/rustup/"
@@ -17,12 +15,13 @@ if [[ ${PV} == "9999" ]] ; then
else
SRC_URI="https://github.com/rust-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
+ SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz"
KEYWORDS="~amd64 ~arm64 ~ppc64"
fi
LICENSE="|| ( Apache-2.0 MIT )"
# Dependent crate licenses
-LICENSE+=" Apache-2.0 BSD ISC MIT Unicode-DFS-2016"
+LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 openssl Unicode-3.0"
SLOT="0"
# uses network
RESTRICT="test"
@@ -52,8 +51,7 @@ src_configure() {
local myfeatures=(
no-self-update
curl-backend
- reqwest-backend
- reqwest-default-tls
+ reqwest-native-tls
)
case ${ARCH} in
ppc* | mips* | riscv* | s390*)
@@ -74,14 +72,17 @@ 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"
+ if ! tc-is-cross-compiler; then
+ einfo "generating shell completion files"
+ ln -sf "${ED}/usr/bin/rustup-init" rustup || die
- insinto /usr/share/zsh/site-functions
- doins "${T}/_rustup"
+ ./rustup completions bash > "${T}/${PN}" || die
+ dobashcomp "${T}/${PN}"
+ ./rustup completions zsh > "${T}/_${PN}" || die
+ dozshcomp "${T}/_${PN}"
+ else
+ ewarn "Shell completion files not installed! Install them manually with '${PN} completions --help'"
+ fi
}
pkg_postinst() {
next reply other threads:[~2025-03-18 17:49 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-18 17:49 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-22 12:41 [gentoo-commits] repo/gentoo:master commit in: dev-util/rustup/ Arthur Zamarin
2025-03-18 17:49 Arthur Zamarin
2025-03-18 17:49 Arthur Zamarin
2024-10-18 10:50 Arthur Zamarin
2024-09-13 16:51 Arthur Zamarin
2024-03-15 12:24 Arthur Zamarin
2024-03-15 12:10 Arthur Zamarin
2024-03-15 12:10 Arthur Zamarin
2024-03-15 12:10 Arthur Zamarin
2023-02-13 21:01 Georgy Yakovlev
2023-02-08 20:29 Georgy Yakovlev
2023-02-08 20:15 Georgy Yakovlev
2022-09-24 4:13 Georgy Yakovlev
2022-09-20 1:32 Georgy Yakovlev
2022-09-20 1:32 Georgy Yakovlev
2021-06-14 21:59 Georgy Yakovlev
2021-06-14 21:58 Georgy Yakovlev
2021-06-14 21:58 Georgy Yakovlev
2021-05-17 17:17 Georgy Yakovlev
2021-05-01 12:22 Georgy Yakovlev
2021-05-01 12:22 Georgy Yakovlev
2021-05-01 12:22 Georgy Yakovlev
2021-04-18 19:41 Georgy Yakovlev
2021-04-18 1:24 Georgy Yakovlev
2021-04-18 1:24 Georgy Yakovlev
2021-04-18 1:24 Georgy Yakovlev
2021-04-18 1:24 Georgy Yakovlev
2020-11-28 7:54 Georgy Yakovlev
2020-09-23 6:33 Georgy Yakovlev
2020-09-23 2:47 Georgy Yakovlev
2020-09-23 2:47 Georgy Yakovlev
2020-09-09 6:50 Georgy Yakovlev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1742320173.43a2e9f6860dfdc8942cd14a23b0661de7237eec.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox