From b5e1feb40f6a9673c4ea132819861facb3f8149c Mon Sep 17 00:00:00 2001 From: Rahil Bhimjiani Date: Fri, 29 Sep 2023 16:49:40 +0530 Subject: virtual/rust: default to rust-bin Prefer dev-lang/rust-bin over dev-lang/rust. Keeps it consistent with virtual/{jre,jdk}. Prevent long compile times when some dependency unknowingly pulls in rust. Imagine new user (unaware of rust-bin) wanting simple app-crypt/certbot or app-admin/ansible-core but having to compile whole rust for that. Because dep graph goes like app-admin/ansible-core -> dev-python/cryptography -> virtual/rust -> dev-lang/rust [xen0n: revbumped everything for correct static dep operation] Closes: https://github.com/gentoo/gentoo/pull/33121 Signed-off-by: Rahil Bhimjiani Signed-off-by: WANG Xuerui --- virtual/rust/rust-1.66.1-r1.ebuild | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 virtual/rust/rust-1.66.1-r1.ebuild (limited to 'virtual/rust/rust-1.66.1-r1.ebuild') diff --git a/virtual/rust/rust-1.66.1-r1.ebuild b/virtual/rust/rust-1.66.1-r1.ebuild new file mode 100644 index 000000000000..006314ee8c24 --- /dev/null +++ b/virtual/rust/rust-1.66.1-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-build + +DESCRIPTION="Virtual for Rust language compiler" + +LICENSE="" + +# adjust when rust upstream bumps internal llvm +# we do not allow multiple llvm versions in dev-lang/rust for +# neither system nor bundled, so we just hardcode it here. +SLOT="0/llvm-15" +KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" +IUSE="rustfmt" + +BDEPEND="" +RDEPEND="|| ( + ~dev-lang/rust-bin-${PV}[rustfmt?,${MULTILIB_USEDEP}] + ~dev-lang/rust-${PV}[rustfmt?,${MULTILIB_USEDEP}] +)" -- cgit v1.2.3-65-gdbad