commit: 67d7e9992d8f4ee20a73ae5b53c29fa69de4e85b
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Thu Dec 18 17:42:43 2025 +0000
Commit: orbea <orbea <AT> riseup <DOT> net>
CommitDate: Thu Dec 18 17:43:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=67d7e999
dev-lang/rust: add 1.92.0_p1-r1
Signed-off-by: orbea <orbea <AT> riseup.net>
...t-1.92.0_p1.ebuild => rust-1.92.0_p1-r1.ebuild} | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/dev-lang/rust/rust-1.92.0_p1.ebuild
b/dev-lang/rust/rust-1.92.0_p1-r1.ebuild
similarity index 98%
rename from dev-lang/rust/rust-1.92.0_p1.ebuild
rename to dev-lang/rust/rust-1.92.0_p1-r1.ebuild
index 844e6d0..5945692 100644
--- a/dev-lang/rust/rust-1.92.0_p1.ebuild
+++ b/dev-lang/rust/rust-1.92.0_p1-r1.ebuild
@@ -19,6 +19,7 @@ PYTHON_COMPAT=( python3_{11..14} )
RUST_MAX_VER=${PV%%_*}
RUST_PV=${PV%%_p*}
+RUST_P=${PN}-${RUST_PV}
[[ -z ${RUST_PATCH_VER} ]] && RUST_PATCH_VER=${PV}
if [[ ${PV} == *9999* ]]; then
@@ -792,7 +793,7 @@ src_install() {
# we need realpath on /usr/bin/* symlink return
version-appended binary path.
# so /usr/bin/rustc should point to
/usr/lib/rust/<ver>/bin/rustc-<ver>
# need to fix eselect-rust to remove this hack.
- local ver_i="${i}-${PV%%_*}"
+ local ver_i="${i}-${RUST_PV%%_*}"
if [[ -f "${ED}/usr/lib/${PN}/${SLOT}/bin/${i}" ]]; then
einfo "Installing ${i} symlink"
ln -v "${ED}/usr/lib/${PN}/${SLOT}/bin/${i}"
"${ED}/usr/lib/${PN}/${SLOT}/bin/${ver_i}" || die
@@ -808,9 +809,9 @@ src_install() {
use rust-analyzer && dosym "${SLOT}/libexec"
"/usr/lib/${PN}/libexec-${SLOT}"
dosym "${SLOT}/share/man" "/usr/lib/${PN}/man-${SLOT}"
dosym "rust/${SLOT}/lib/rustlib" "/usr/lib/rustlib-${SLOT}"
- dosym "../../lib/${PN}/${SLOT}/share/doc/rust" "/usr/share/doc/${P}"
+ dosym "../../lib/${PN}/${SLOT}/share/doc/rust"
"/usr/share/doc/${RUST_P}"
- newenvd - "50${P}" <<-_EOF_
+ newenvd - "50${RUST_P}" <<-_EOF_
MANPATH="${EPREFIX}/usr/lib/rust/man-${SLOT}"
_EOF_
@@ -832,20 +833,20 @@ src_install() {
_EOF_
if use clippy; then
- echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
- echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
+ echo /usr/bin/clippy-driver >> "${T}/provider-${RUST_P}"
+ echo /usr/bin/cargo-clippy >> "${T}/provider-${RUST_P}"
fi
if [[ ${SLOT} == *9999* ]] && use miri; then
- echo /usr/bin/miri >> "${T}/provider-${P}"
- echo /usr/bin/cargo-miri >> "${T}/provider-${P}"
+ echo /usr/bin/miri >> "${T}/provider-${RUST_P}"
+ echo /usr/bin/cargo-miri >> "${T}/provider-${RUST_P}"
fi
if use rustfmt; then
- echo /usr/bin/rustfmt >> "${T}/provider-${P}"
- echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
+ echo /usr/bin/rustfmt >> "${T}/provider-${RUST_P}"
+ echo /usr/bin/cargo-fmt >> "${T}/provider-${RUST_P}"
fi
if use rust-analyzer; then
- echo /usr/lib/rust/libexec >> "${T}/provider-${P}"
- echo /usr/bin/rust-analyzer >> "${T}/provider-${P}"
+ echo /usr/lib/rust/libexec >> "${T}/provider-${RUST_P}"
+ echo /usr/bin/rust-analyzer >> "${T}/provider-${RUST_P}"
fi
insinto /etc/env.d/rust
@@ -859,7 +860,6 @@ src_install() {
}
pkg_postinst() {
-
eselect rust update
if has_version dev-debug/gdb || has_version llvm-core/lldb; then