diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-util/rust-rover | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-util/rust-rover')
| -rw-r--r-- | dev-util/rust-rover/Manifest | 13 | ||||
| -rw-r--r-- | dev-util/rust-rover/metadata.xml | 12 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2024.2.1-r1.ebuild | 134 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.2.1.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.2.2.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.2.3.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.2.4.1.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.2.5.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.3.1.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.3.2.ebuild | 154 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.3.3.ebuild | 154 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.3.4.ebuild | 154 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2025.3.ebuild | 146 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2026.1.1.ebuild | 154 | ||||
| -rw-r--r-- | dev-util/rust-rover/rust-rover-2026.1.ebuild | 154 |
15 files changed, 1951 insertions, 0 deletions
diff --git a/dev-util/rust-rover/Manifest b/dev-util/rust-rover/Manifest new file mode 100644 index 000000000000..64bec198e394 --- /dev/null +++ b/dev-util/rust-rover/Manifest @@ -0,0 +1,13 @@ +DIST RustRover-2024.2.1.tar.gz 1052249211 BLAKE2B 4035f514ec6556e15ce02c283965f87db20c78a96c03654cb4445dc8af5da715f0421eea4c3a32d50abed96d83c4a2aaa0db8baf5ab0ec530af89f0a7c70d5f7 SHA512 7b77850297869a5863b60521307b23738edef5315299881e2d920095823ab183618085d1c8a1ec3d058ab2b0365cc795c41755f1a57882e4d182428d5ccb5b8b +DIST RustRover-2025.2.1.tar.gz 1257721397 BLAKE2B 1b7f3e9cb1f54630eb213308141e55e812a84ef2bfe5bb9003f7bcf0aabe59b9b476200ffdf90c7aeb7370ec8513d1a7b874282342e3f20ee793db9a75cd0659 SHA512 cb1d7829efa2aecaaeb1d9ed76d914a83ae15da5d58d38d02d0e4f248b7e7bd14f7ac4b8a82ecd3d0f29a11e857b847f1689125353d03783399cbd3ce8cf2d73 +DIST RustRover-2025.2.2.tar.gz 1261938223 BLAKE2B 97bd96ede0b25e0558ead227d8db105f684f6b70b9cdc130e1e4dade2eeac23e8e79d4966eb66b6a6aa54d828992e17a062955391205d609b6e533eed953c1c3 SHA512 c77526fd9f8d3cbb5cff23043d51dcd397c77ffddedc9c820cd83d6a5403eb5850e4d543a4b8e0582e827b104027c98f1bf340a1c3c35d7b950406f514afc9d4 +DIST RustRover-2025.2.3.tar.gz 1259787752 BLAKE2B dd22886cb2e6bbfe894a42a4556289d591237ffa1d5e964fc8f07588b982262b57c3b69c19cb1f662a12311fb7fc983b0a540db22441fae7ab48186785bdc2b1 SHA512 1fdc60b682f08d98ace3b0d2ac299ca34dea29c346343fd7d421f215df77ac6a6c7bb250dd8afb01fc405d0ac5d752d7cf220504fac1758ff271ceb47d858847 +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.3.tar.gz 1173748979 BLAKE2B 416b8c427606adf1a2f816ce028c7896abafd12a0dcf13b5d6306cd35123a774b49572fbbfb672460f79696966e65631d3f55830d1cb9cd1165f80a9c206e2bc SHA512 789f0b37b204cb0cf51f2679d9555fd643129692fb9ca083d670ef0e3a1146644a02f4a7c4710ede6cf5fcae783f2b655b15da29a2146f4b885ab43375f9b945 +DIST RustRover-2025.3.4.tar.gz 1176804386 BLAKE2B d476efb9e97000c4f7b44fb6c33286d5bb4a3ddd84018095c1d928564b610de9fa5f4ca219a8152963fdd74e654bbf3724ad51b7f67a0faa6d4b499e9c8c2dae SHA512 6a6f0762e6117de45f30ca4718e43da44d3725368724b6eda7093b216fb00eec645bc9c457d35a583dc088fe5dd1e11b3912ca81261c47f9a0f5bd9e6cfe717d +DIST RustRover-2025.3.tar.gz 1172355225 BLAKE2B cf66ae8d5bad43c89471d93b72157971f23e5562616e657a29f46ea9356baabbc8021527f3a8603878379d553df4ec33105465246455751295f6d65e47440525 SHA512 27d44459cc91f09826baa5dcc680d0d62dbd816b6c9e6e8e7a84d288bb26922245f948bbed281d3e2efaebe4d5519d407a0573001a7ee1489a6a6b821ec3c59b +DIST RustRover-2026.1.1.tar.gz 1198023832 BLAKE2B f445c8a5deb706ed271e7487fbd2311c35d52818ed19ae4863ede0a3f778a8d83cd4c669eecec06c2c092ee9b8a2683235f15896f307504abb59fc921d5e3ce3 SHA512 0dd9614da527770fafa336880b9be37e5f2649e067a68b5dd2a9468d32ff06a5c6a543bb2411f90e45d4260610d475434bd60ad9dc14034ea2d15286b628743a +DIST RustRover-2026.1.tar.gz 1197862145 BLAKE2B 17883e042a04c75bd9979ce15d12a609bee57f1c9a867126351d6d7cbe0bc96cc2f4d4b63b9df50eb09c7d1467c3efafffd9a8d853f11dfc30a8ea9db85e8526 SHA512 77dd974a0c28300e15432c42882efd096513a27f51997b6e4af5ae04d8ceed6d98e88b885338495bc4b75a8b4de4cf3c5a5d83cf9594afbafc0fbdc94940d2cd diff --git a/dev-util/rust-rover/metadata.xml b/dev-util/rust-rover/metadata.xml new file mode 100644 index 000000000000..486ac1218de9 --- /dev/null +++ b/dev-util/rust-rover/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>me@sanielia.dev</email> + <name>Aniela Starzyk</name> +</maintainer> +<use> + <flag name="bundled-jdk">Use bundled jdk</flag> + <flag name="nvidia">Apply markdown preview patch for Nvidia cards</flag> +</use> +</pkgmetadata> diff --git a/dev-util/rust-rover/rust-rover-2024.2.1-r1.ebuild b/dev-util/rust-rover/rust-rover-2024.2.1-r1.ebuild new file mode 100644 index 000000000000..eef40a8fa5ac --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2024.2.1-r1.ebuild @@ -0,0 +1,134 @@ +# 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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.2.1.ebuild b/dev-util/rust-rover/rust-rover-2025.2.1.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.2.1.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.2.2.ebuild b/dev-util/rust-rover/rust-rover-2025.2.2.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.2.2.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.2.3.ebuild b/dev-util/rust-rover/rust-rover-2025.2.3.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.2.3.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.2.4.1.ebuild b/dev-util/rust-rover/rust-rover-2025.2.4.1.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.2.4.1.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.2.5.ebuild b/dev-util/rust-rover/rust-rover-2025.2.5.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.2.5.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.3.1.ebuild b/dev-util/rust-rover/rust-rover-2025.3.1.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.3.1.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.3.2.ebuild b/dev-util/rust-rover/rust-rover-2025.3.2.ebuild new file mode 100644 index 000000000000..35b79f1bc82c --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.3.2.ebuild @@ -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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.3.3.ebuild b/dev-util/rust-rover/rust-rover-2025.3.3.ebuild new file mode 100644 index 000000000000..35b79f1bc82c --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.3.3.ebuild @@ -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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.3.4.ebuild b/dev-util/rust-rover/rust-rover-2025.3.4.ebuild new file mode 100644 index 000000000000..35b79f1bc82c --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.3.4.ebuild @@ -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 +} diff --git a/dev-util/rust-rover/rust-rover-2025.3.ebuild b/dev-util/rust-rover/rust-rover-2025.3.ebuild new file mode 100644 index 000000000000..07f93e2da158 --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2025.3.ebuild @@ -0,0 +1,146 @@ +# 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" +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 +} + +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 +} diff --git a/dev-util/rust-rover/rust-rover-2026.1.1.ebuild b/dev-util/rust-rover/rust-rover-2026.1.1.ebuild new file mode 100644 index 000000000000..35b79f1bc82c --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2026.1.1.ebuild @@ -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 +} diff --git a/dev-util/rust-rover/rust-rover-2026.1.ebuild b/dev-util/rust-rover/rust-rover-2026.1.ebuild new file mode 100644 index 000000000000..35b79f1bc82c --- /dev/null +++ b/dev-util/rust-rover/rust-rover-2026.1.ebuild @@ -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 +} |
