diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-14 12:32:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-14 12:32:28 +0100 |
commit | e8aa09f74c8ba0c9e1c5ae3ab49f93b6a0820330 (patch) | |
tree | 14ad0b4141ec6704388a9130b87976ed75435984 /dev-util/rustup | |
parent | 6fcdccbe589d724b6c268b49f66414e40eb0d807 (diff) |
gentoo auto-resync : 14:09:2024 - 12:32:27
Diffstat (limited to 'dev-util/rustup')
-rw-r--r-- | dev-util/rustup/Manifest | 3 | ||||
-rw-r--r-- | dev-util/rustup/rustup-1.27.1.ebuild | 95 |
2 files changed, 98 insertions, 0 deletions
diff --git a/dev-util/rustup/Manifest b/dev-util/rustup/Manifest index d45c4fcb4542..bbbd287c03a3 100644 --- a/dev-util/rustup/Manifest +++ b/dev-util/rustup/Manifest @@ -197,6 +197,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 @@ -309,5 +311,6 @@ DIST zstd-safe-5.0.2+zstd.1.5.2.crate 17273 BLAKE2B 74dc561046f9bc595c58b62bc6ff DIST zstd-sys-2.0.1+zstd.1.5.2.crate 715552 BLAKE2B 497901ccaff7f92aa607797970c6beaaa3fcbeb08a48a2dffdfd465af999291e65024dfb7fc844802e5befa0e67dbe225310f72e6292bdcd22596b2614665d8e SHA512 a54ff4159640d31f898cbd374b9117d1e7ee4b54c5b4a8e1ed6286d9e954341e077088c52161e086ef0f28dfec13e03f64013712fa9bc59d471191cffd8e0e1e EBUILD rustup-1.25.2.ebuild 7862 BLAKE2B 024c46ee9a4352e539a0365c1de9337fe3ab82e08f19cf6fb3483437929625968fc465aadaccb664ed75eb9313ca069471f04923783d2c7b103e93011ceb1564 SHA512 f6bc5732b12b2ecd1ad35c47695e43a7eb6169427b0b82fa55e27f523b2ecb441093f848dff877f701fb54f7c50b31928f05c634127e710e7f5e50e4f921e08d EBUILD rustup-1.27.0.ebuild 2388 BLAKE2B 6639c07669fa587757a91e3975ab45213d31399a0051121615237730924719d44473782c1c6466689afa0d15929377aeb1d144c20331954a4c5c73f4d6dfa6f4 SHA512 573f460a3897a24fac4e5eeb605001b9c924945b00a219b1f09d893191a8c8b38bb7cadff37e6e9c999a8a7aec6cefbc8e8694f66c9d5bf830b5ac0171a9d242 +EBUILD rustup-1.27.1.ebuild 2373 BLAKE2B 4060fc50824375648e165367dbaaaaad5971d2739e52a6f93d15bfb8a1d3b733f5e88959740086274bc088e333659e6925fe4ec0ef7d3f87cfe65adfae0c0915 SHA512 526e6ad76eec171e09ab32b50bc7171f84b3bd4aea12f1021d347c30430dc2cb9ff7e2b9f3bf7b20388b315073374ea71e29e24f3b2efc117193b560904555ba EBUILD rustup-9999.ebuild 2306 BLAKE2B 544c049200455f508e65cbb53a3282d345e2157c0047c27ef088d30a22ed13e0841b93c89ee4034d3f2c3ca1695f640925c475466926e7718e5d63b6488eec1c SHA512 ac6dc3fc91fa6434302e0374259e7b486a33959b6b88db7c7c73428c0594ab0a133ad57dd3e32f5638c9b21c6ed71bd5c2605ea1a20c9537c82b491f76addded MISC metadata.xml 326 BLAKE2B d7259e42d25b963fb8cb8529dee35d5ad91810ef5905bd3b08959da41fae8c573feba099f74eb576ff6b8cb94b80b43856d8f995c3bfd0a45038f66105fbf6e8 SHA512 e59ae1024b60ed8ec4ea300d74e9abab314e8e793236a699e1b1fd91734640a2dcbf72ec28b0d818091f83a84692494bdcb985b31b3f4204fefdc5a0a654fa3d 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" +} |