mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
Add := to virtual/zlib deps, part 1 Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Add := to virtual/zlib deps Done via: ``` git grep -l 'virtual/zlib ' | xargs sed -i -e 's@virtual/zlib @virtual/zlib:= @g' ``` Unify virtual/zlib:0= to virtual/zlib:= Done via: ``` git grep -l 'virtual/zlib:0=' | xargs sed -i -e 's@virtual/zlib:0=@virtual/zlib:=@g' ``` Add := to virtual/zlib deps, part 3 Done via: ``` git grep -l 'virtual/zlib:0' | xargs sed -i -e 's@virtual/zlib:0@virtual/zlib:=@g' git grep -l 'virtual/zlib:=/' | xargs sed -i -e 's@virtual/zlib:=/@virtual/zlib:0/@g' ``` Add := to virtual/zlib deps, part 4 Done via: ``` git grep -l 'virtual/zlib\[' | xargs sed -i -e 's@virtual/zlib\[@virtual/zlib:=\[@g' ``` Use := on virtual/zlib deps, part 5 Done via: ``` git grep -l 'virtual/zlib-' | xargs sed -i -r -e 's@virtual/zlib-[0-9.]*(-r[0-9]*)?@&:=@g' git grep -l 'virtual/zlib-' | xargs sed -i -e 's@:=:=@:=@g' pkgcheck scan --commits \ -c SourcingCheck,VisibilityCheck,DependencyCheck --exit error ``` Use := on virtual/zlib deps, part 6 Done via: ``` git grep -l 'virtual/zlib"' | xargs sed -i -e 's@virtual/zlib"@virtual/zlib:="@' ``` Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
135 lines
3.2 KiB
Bash
135 lines
3.2 KiB
Bash
# Copyright 1999-2024 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"
|
|
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/intellij-rust/bin/linux/arm64
|
|
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
|
|
}
|
|
|
|
src_install() {
|
|
local DIR="/opt/RustRover"
|
|
local JRE_DIR="jbr"
|
|
|
|
insinto ${DIR}
|
|
doins -r *
|
|
|
|
fperms 755 "${DIR}"/bin/{format.sh,fsnotifier,inspect.sh,jetbrains_client.sh,ltedit.sh,rustrover,rustrover.sh,repair,restarter}
|
|
fperms 755 "${DIR}/${JRE_DIR}"/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,keytool,rmiregistry,serialver}
|
|
fperms 755 "${DIR}"/${JRE_DIR}/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}
|
|
|
|
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
|
|
}
|