mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-util/rustup: sync live
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -16,13 +16,16 @@ if [[ ${PV} == "9999" ]] ; then
|
||||
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 ${CRATES})"
|
||||
${CARGO_CRATE_URIS}"
|
||||
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"
|
||||
LICENSE="|| ( Apache-2.0 MIT )"
|
||||
# Dependent crate licenses
|
||||
LICENSE+=" Apache-2.0 BSD ISC MIT Unicode-DFS-2016"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
# uses network
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
app-arch/xz-utils
|
||||
@@ -32,13 +35,11 @@ DEPEND="
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/rust"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/.*"
|
||||
|
||||
# uses network
|
||||
RESTRICT="test"
|
||||
# rust does not use *FLAGS from make.conf, silence portage warning
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
else
|
||||
@@ -56,7 +57,7 @@ src_configure() {
|
||||
reqwest-default-tls
|
||||
)
|
||||
case ${ARCH} in
|
||||
ppc*|mips*|riscv*|s390*)
|
||||
ppc* | mips* | riscv* | s390*)
|
||||
;;
|
||||
*) myfeatures+=( reqwest-rustls-tls )
|
||||
;;
|
||||
@@ -85,11 +86,11 @@ src_install() {
|
||||
}
|
||||
|
||||
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"
|
||||
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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user