dev-util/rust-rover: add 2025.3.2

Signed-off-by: Aniela Starzyk <kubastarzyk6554@gmail.com>
This commit is contained in:
Aniela Starzyk
2026-01-26 17:25:53 +01:00
parent b873cb6a1c
commit 9b6fcbbcca
3 changed files with 156 additions and 0 deletions

View File

@@ -5,4 +5,5 @@ DIST RustRover-2025.2.3.tar.gz 1259787752 BLAKE2B dd22886cb2e6bbfe894a42a4556289
DIST RustRover-2025.2.4.1.tar.gz 1272188839 BLAKE2B 6107b2d45c975ab36e8de104eb992a4e4822f0adde9a0cf3cec49501283c261ad9b1935ecb826999f862701242769722827216b5c0924fffb37ecfa8d14bba5d SHA512 c14687ad8a1af5d4d67b2ac59539a36d029b266b175aa21aab555c29daae8f3cbdc88cb2f78dd5187624a3b3ef3dfef81257290233dfb2f69f71e238dc3b2593
DIST RustRover-2025.2.5.tar.gz 1261960785 BLAKE2B 49e0c9fe5eb0069704eb1488dbbb40398a94bc1ac802f45e26298bd45702194cfc18ed69398d17f271e6443ba7b95a0f7266eaa9d82aab06d46f060cc0c3562e SHA512 c351ae8194b99f8f3d53cda4b86cc7750aa4173d6cf93936b10016d26511b891a245f804c1a4dd5262502fd27ececa574f926026c2bd766b3b8e89f29288bdee
DIST RustRover-2025.3.1.tar.gz 1171124810 BLAKE2B 346cdb14b6fac191994aefeb355b67a77566e9b772cb629e482b0504ae85b717a9b25736c7567a8fa6bfb8c010de2618540bb1041518d4997635758ded0ac03e SHA512 2cb362464f8ec6c53fad15cc1d7ca942f003b04a2e5c6332fe25aa9af952357231925697dc6480e052eb3911daaf256da2db8ed89caebd58881edce9244549d6
DIST RustRover-2025.3.2.tar.gz 1172422789 BLAKE2B 7dc724e20c68d073c8d301e917b54b8177481d0e332187894200c004b0ac1823b0819fdf7eed3a758113089901b932193071c60ff4f342c3c449e99db82f95a7 SHA512 cf6ef7309e6dc8038469835b306df99305dde23e00ec5a9069eae419d189ac3ad26ef9711432aefb921fbe8f8ab5a2487242ad782e82d7f9347f0af3fb9084c7
DIST RustRover-2025.3.tar.gz 1172355225 BLAKE2B cf66ae8d5bad43c89471d93b72157971f23e5562616e657a29f46ea9356baabbc8021527f3a8603878379d553df4ec33105465246455751295f6d65e47440525 SHA512 27d44459cc91f09826baa5dcc680d0d62dbd816b6c9e6e8e7a84d288bb26922245f948bbed281d3e2efaebe4d5519d407a0573001a7ee1489a6a6b821ec3c59b

View File

@@ -7,5 +7,6 @@
</maintainer>
<use>
<flag name="bundled-jdk">Use bundled jdk</flag>
<flag name="nvidia">Apply markdown preview patch for Nvidia cards</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,154 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper xdg-utils
DESCRIPTION="A feature-rich Rust IDE with timely support by JetBrarins"
HOMEPAGE="https://www.jetbrains.com/rust/"
SRC_URI="https://download.jetbrains.com/rustrover/RustRover-${PV}.tar.gz"
# to keep it tidy.
S="${WORKDIR}/RustRover-${PV}"
LICENSE="|| ( JetBrains-business JetBrains-classroom JetBrains-educational JetBrains-individual )
Apache-2.0
BSD
CC0-1.0
CDDL
CDDL-1.1
EPL-1.0
GPL-2
GPL-2-with-classpath-exception
ISC
LGPL-2.1
LGPL-3
MIT
MPL-1.1
OFL-1.1
ZLIB
"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+bundled-jdk nvidia"
RESTRICT="bindist mirror"
QA_PREBUILT="opt/RustRover/*"
BDEPEND="dev-util/patchelf"
RDEPEND="!bundled-jdk? ( >=virtual/jre-1.8 )
>=app-accessibility/at-spi2-core-2.46.0:2
dev-debug/gdb
llvm-core/lldb
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
dev-libs/wayland
media-libs/alsa-lib
media-libs/freetype:2
media-libs/mesa
net-print/cups
sys-apps/dbus
virtual/zlib:=
x11-libs/cairo
x11-libs/libdrm
x11-libs/libX11
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/libXxf86vm
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
"
src_prepare() {
default
local remove_me=(
Install-Linux-tar.txt
bin/gdb
bin/lldb
plugins/remote-dev-server/selfcontained
plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64
plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release
lib/async-profiler/aarch64
)
rm -rv "${remove_me[@]}" || die
sed -i \
-e "\$a\\\\" \
-e "\$a#-----------------------------------------------------------------------" \
-e "\$a# Disable automatic updates as these are handled through Gentoo's" \
-e "\$a# package manager. See bug #704494" \
-e "\$a#-----------------------------------------------------------------------" \
-e "\$aide.no.platform.update=Gentoo" bin/idea.properties
for file in "jbr/lib/"/{libjcef.so,jcef_helper}
do
if [[ -f "${file}" ]]; then
patchelf --set-rpath '$ORIGIN' ${file} || die
fi
done
if use nvidia; then
grep -q '^-Dide.browser.jcef.out-of-process.enabled=' \
bin/rustrover64.vmoptions \
|| echo "-Dide.browser.jcef.out-of-process.enabled=false" \
>> bin/rustrover64.vmoptions || die
fi
}
src_install() {
local DIR="/opt/RustRover"
local JRE_DIR="jbr"
insinto ${DIR}
doins -r *
# bin files
for _f in format.sh fsnotifier inspect.sh jetbrains_client.sh ltedit.sh \
rustrover rustrover.sh restarter native-helper/intellij-rust-native-helper; do
fperms 755 "${DIR}/bin/$_f"
done
# JRE bin files
for _f in java javac javadoc jcmd jdb jfr jhsdb jinfo jmap \
jps jrunscript jstack jstat keytool rmiregistry serialver; do
fperms 755 "${DIR}/${JRE_DIR}/bin/$_f"
done
# lib files
for _f in chrome-sandbox jcef_helper jexec jspawnhelper; do
fperms 755 "${DIR}/${JRE_DIR}/lib/$_f"
done
if ! use bundled-jdk; then
rm -r "${D}/${DIR}/${JRE_DIR}" || die
fi
make_wrapper "rustrover" "${DIR}/bin/rustrover"
newicon "bin/rustrover.svg" "rustrover.svg"
make_desktop_entry "rustrover" "RustRover" "rustrover" "Development;IDE;"
# recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
dodir /etc/sysctl.d/
echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}