public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rustup/
Date: Fri, 13 Sep 2024 16:51:52 +0000 (UTC)	[thread overview]
Message-ID: <1726246287.980349fd26a8d933f3f8de77ab2863fde66c0828.arthurzam@gentoo> (raw)

commit:     980349fd26a8d933f3f8de77ab2863fde66c0828
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 13 16:51:12 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 13 16:51:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=980349fd

dev-util/rustup: add 1.27.1

Closes: https://bugs.gentoo.org/938017
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-util/rustup/Manifest             |  2 +
 dev-util/rustup/rustup-1.27.1.ebuild | 95 ++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/dev-util/rustup/Manifest b/dev-util/rustup/Manifest
index 6c2a5d24362b..9c84967c9195 100644
--- a/dev-util/rustup/Manifest
+++ b/dev-util/rustup/Manifest
@@ -196,6 +196,8 @@ DIST rustls-pemfile-1.0.0.crate 14559 BLAKE2B 8285b8ee627f9b6760df9ff27dd4983f99
 DIST rustup-1.25.2.tar.gz 747638 BLAKE2B 981e9c7091ed6597bd364fb489cdd80d56d977ea9200b4f01389a4e963356b5e26782358979da442ede2d10af75536f84659e7fcfc13af8a0a9b58377b799aa7 SHA512 77268322224816c84c1a17f125cce10e0bfddae857f1e71885d9999f1415c567ee508f93367dd6adca62a92092c2869957206d4c707d20da461e2866fdc74e67
 DIST rustup-1.27.0-crates.tar.xz 32493388 BLAKE2B 18db8ae5afddcc423615ac6ceb707b7986aa767cde1d91d877974ca8cc1c66f0bff9632f705dc1d838487310b1fdd80102b0eaf822bae0ce1b2ab840f1b5e5d6 SHA512 2b0264169b835681c516ce769a2746d32c9c237e9a630d7eb237106612b3d2e981331d9d1be903e1d1100fcba5202783b646e03b6f5c577a17ee480806a7e978
 DIST rustup-1.27.0.tar.gz 947146 BLAKE2B e1be43b3bb46bd6b305525ac0258249ec1377196003af9c8ed00d59d1cd35cea9d52c6a6b0198598f51865decc0752bde683aca4fa0a220f40cd640880ac0830 SHA512 0b9349364e0f9d60ba0d486064295413012d38ec97597207b3c82e07ebcf6b5ade403a46fb3910fe4d63607150ce5b0e367ac322f894599bd6b02dae3872e8f0
+DIST rustup-1.27.1-crates.tar.xz 33405036 BLAKE2B a12eecb6af1c0fd4b9bca8a39f22a784aac3b0798faab4fcc294713cb01a13df483767453c9d5d9e4fae45486e9a229962426f403acc823451b1913edbdce3ec SHA512 846ecea9e34a72acc76c8fb5a22a29f186e8765a1fe3c08cc29532842d7c926f1d788da74ea485ab4a2e9807802f608a0afab40eb1fcc06577052f79f3c99770
+DIST rustup-1.27.1.tar.gz 951421 BLAKE2B f8a0784c828f14f4be87b915d47d1bbd67e1f3802928646a42405380e7b0fce2925e60e975cc3fc72ba094e5c10178de783e20f7d3928ca8cce3b57ff60f9981 SHA512 e0494678b7117464665c2aa88165e13baf2dcfb2a33c57dc78f669533111f773724d227ee05967de427845f8633e56fdf8159c7a5b96638413710beacb115075
 DIST rustversion-1.0.6.crate 18380 BLAKE2B 2969bb40849dbd2f0d3f4a190629e53204cc5ef9065be6aec7a4504470e1dba6cde7172a3075a1bade421b30b88947cef6b29c0ab5aea8601695f72a7acc45d1 SHA512 fa9efca7e49eff6c510d062d02fc73d15341b1fe16d24dada86108202a4295d2e0519aecf3f1701540cd4d49a513c05e74d3d27e21e5eb3cb1aba46c70a992cc
 DIST ryu-1.0.10.crate 48485 BLAKE2B cbc0ab4e0b2031f4ca3a34914bd61395d14706d42e2414757aa23a67530d549382d61b630159c92a169d1dd3315951b0071ff18349d2b090ae262de536aa29e2 SHA512 1bd0af71a20715251dd42596df6e7677e44f712bbb40b0d9544109c1b2478a7bd2c9393535f0d4f3bfe2d1b75b3a2b899044051715a7da7d165d6d586e0775f2
 DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15 SHA512 3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c

diff --git a/dev-util/rustup/rustup-1.27.1.ebuild b/dev-util/rustup/rustup-1.27.1.ebuild
new file mode 100644
index 000000000000..b7b6c9366d6b
--- /dev/null
+++ b/dev-util/rustup/rustup-1.27.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+
+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
+	SRC_URI="https://github.com/rust-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+		${CARGO_CRATE_URIS}"
+	SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/dev-util/${PN}/${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"
+SLOT="0"
+# uses network
+RESTRICT="test"
+
+DEPEND="
+	app-arch/xz-utils
+	net-misc/curl:=[http2,ssl]
+	dev-libs/openssl:0=
+"
+RDEPEND="${DEPEND}"
+
+# rust does not use *FLAGS from make.conf, silence portage warning
+QA_FLAGS_IGNORED="usr/bin/rustup-init"
+
+src_unpack() {
+	if [[ "${PV}" == 9999 ]]; then
+		git-r3_src_unpack
+		cargo_live_src_unpack
+	else
+		cargo_src_unpack
+	fi
+}
+
+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() {
+	elog "No rustup toolchains installed by default"
+	elog "eselect activated system rust toolchain can be added to rustup by running"
+	elog "helper script installed as ${EPREFIX}/usr/bin/rustup-init-gentoo"
+	elog "it will create symlinks to system-installed rustup in home directory"
+	elog "and rustup updates will be managed by portage"
+	elog "please delete current rustup binaries from ~/.cargo/bin/ (if any)"
+	elog "before running rustup-init-gentoo"
+}


             reply	other threads:[~2024-09-13 16:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-13 16:51 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-18 10:50 [gentoo-commits] repo/gentoo:master commit in: dev-util/rustup/ 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=1726246287.980349fd26a8d933f3f8de77ab2863fde66c0828.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