mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
dev-util/rust-rover: add 2026.2
Signed-off-by: Aniela Starzyk <me@sanielia.dev>
This commit is contained in:
2 files changed
+161
No files matched your search
@@ -1,2 +1,3 @@
|
||||
DIST RustRover-2026.1.1.tar.gz 1198023832 BLAKE2B f445c8a5deb706ed271e7487fbd2311c35d52818ed19ae4863ede0a3f778a8d83cd4c669eecec06c2c092ee9b8a2683235f15896f307504abb59fc921d5e3ce3 SHA512 0dd9614da527770fafa336880b9be37e5f2649e067a68b5dd2a9468d32ff06a5c6a543bb2411f90e45d4260610d475434bd60ad9dc14034ea2d15286b628743a
|
||||
DIST RustRover-2026.1.3.tar.gz 1208229832 BLAKE2B 2c59fe85aa02773c07c2b24a55acda0963f40650958ff78e2015898c23096aecf4259fe4fc95efd116aa34ca27d3e0b8d2686e8ad2bed24daa71ccfd1ecb9c77 SHA512 9fc097987c43b36252ae0dcd5345cc651c5c19d021be7e58ef3f50a495cea72aabb47543ace06672dad51eee544012004514d37b8534b6e81a96cdff74be8250
|
||||
DIST RustRover-2026.2.tar.gz 1349812167 BLAKE2B fee058e33e593d26ea6bc2cba9b7cdd594079b0f5807f4f5397a02b1811e6ffbc60efce28faf1791dcc0b5c78ef3b69f6d37920e462abc43c22cccb3955f05e7 SHA512 53d365971f2e967f4924bede1b3c97f672cf619f8d1e0aed0d46cc2b8301ecbd18aea2ffd0d5dff4fb44c2de33d495a529e9ef780ab1bd38017cee712cf80436
|
||||
@@ -0,0 +1,160 @@
|
||||
# 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
|
||||
dev-libs/openssl-compat:1.1.1
|
||||
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/linux/x64/lib/python3.12
|
||||
plugins/remote-dev-server/selfcontained
|
||||
plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64
|
||||
plugins/nativeDebug-plugin/bin/lldb/linux/aarch64
|
||||
plugins/platform-ijent-bundledBinaries/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 "plugins/jcef-plugin/jcef"/{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 jexec jspawnhelper; do
|
||||
fperms 755 "${DIR}/${JRE_DIR}/lib/$_f"
|
||||
done
|
||||
|
||||
# jcef files
|
||||
for _f in chrome-sandbox jcef_helper; do
|
||||
fperms 755 "${DIR}/plugins/jcef-plugin/jcef/$_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
|
||||
}
|
||||
Reference in new issue
Block a user