commit:     bb1f19e7785e5cb836d6dbdca0ce17776bdf1a1b
Author:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
AuthorDate: Sun Sep 21 13:36:30 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Sep 25 07:01:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb1f19e7

dev-util/goland: bump 2025.2.2

* Last of the 2025.2.x series

Signed-off-by: Stefan Cristian B. <stefan.cristian+git <AT> rogentos.ro>
Part-of: https://github.com/gentoo/gentoo/pull/43886
Closes: https://github.com/gentoo/gentoo/pull/43886
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-util/goland/Manifest               |   2 +
 dev-util/goland/goland-2025.2.2.ebuild | 122 +++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/dev-util/goland/Manifest b/dev-util/goland/Manifest
index 6a7a25648802..42660dba3699 100644
--- a/dev-util/goland/Manifest
+++ b/dev-util/goland/Manifest
@@ -7,4 +7,6 @@ DIST goland-2025.1.3.tar.gz 1130055997 BLAKE2B 
e2aeb4705eb2397163d6d50d4c15f9eb7
 DIST goland-2025.1.4-aarch64.tar.gz 1084290498 BLAKE2B 
5e8050a4186ac20db75b8d570fd7809a57cf6647f9530d2b38fcf7b4afd84e7331469f45fe2c8b342c2139571bb467805f968358d9361fcbed5521c7610faecc
 SHA512 
45b569de9640c500792290fb61966d22c1d2ec8c52ac45da7a9f424bea263d89810a6f572b8b8384c965fe2c0a173e3ea6fa613bde20230419274c70f91d4658
 DIST goland-2025.1.4.tar.gz 1087590072 BLAKE2B 
93911accf03b5bf9768c60455ca7157b11f8fd394400fde9a943c77f95ad85cf2fe667674b7bde10811e72157a5349845605f632e875102b8deae94e0fff6f0c
 SHA512 
6fd045f57b5f478cbf2ac46fef91ce4f083d1a4cbd5034b59d4626ff57272b23d009353333dbde24d53de61b04421b09d4d33d20b639ea3946b847415e6eeb6a
 DIST goland-2025.2-aarch64.tar.gz 1183128280 BLAKE2B 
276cbe4f078b1e7883c97e47a2d39767f6a0c496fb5d059ae277628c63bee62fb1812ce58a6d24fdad93c7ac504ed0f9774b04d639b06341b4bc6a854ffc7603
 SHA512 
00c1d9fc28d92cf8dd41aa195129cdb92230a71e7292f72b311a7200677ec5464faf3cad8ff8b98cd1952a230c4d3a088480ac9b34d843697a1692f8a37c79c0
+DIST goland-2025.2.2-aarch64.tar.gz 1187509033 BLAKE2B 
634e4e8185f42736f779dde3d71be1dd663679ac9e30f8311b7a2c800e1217a60b3f6be6ea73f910880dfcf7ae5acac728f51a40abb56dafbc34d3aedb3241f3
 SHA512 
68bf436eee1bfa177abc4a648e6f5465483a350f7834cdd7dbc1496b8fd966bbb1b09bf71ca12e3814984b436a65b4c8c2b199b7471e5d6d72bf9b81862abce8
+DIST goland-2025.2.2.tar.gz 1190288046 BLAKE2B 
791599964dc262987c134c3f0b7248c7b43a1676ba898e4176cc6af6446d2cfa4085332be9b90c89e05c2d59dd98230e07d795c0e38d7196a1159c8b81a78bd5
 SHA512 
f79ceef5e354a3a385b433405874dcc7a427d5d70bf05221b0288ef2b9d1e1c1cb22a52f9e360505633701ae23d7fb862aa0144ad9d6ed93a5342a41bae7c1be
 DIST goland-2025.2.tar.gz 1185708177 BLAKE2B 
75f22876b373ba81255f943abcf4e3e15b27a4af6fb202554974fad18568e541e54768949192cff4190c95e176fbd6ec71543482f34a11102b79ebefe779fe68
 SHA512 
cc7636e6ec0473becfbde731fcba2b6eb3fcf37ecc90798dd5816db1893fb5d22dec461241d87f258cafee8d1a564d08823fd4aba23b47bcc72bac6e1c4aea81

diff --git a/dev-util/goland/goland-2025.2.2.ebuild 
b/dev-util/goland/goland-2025.2.2.ebuild
new file mode 100644
index 000000000000..648352aa3813
--- /dev/null
+++ b/dev-util/goland/goland-2025.2.2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop wrapper toolchain-funcs
+
+DESCRIPTION="Golang IDE by JetBrains"
+HOMEPAGE="https://www.jetbrains.com/go/";
+SRC_URI="
+       amd64? ( https://download.jetbrains.com/go/${P}.tar.gz )
+       arm64? ( https://download.jetbrains.com/go/${P}-aarch64.tar.gz )
+"
+S="${WORKDIR}/GoLand-${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/2025"
+KEYWORDS="~amd64 ~arm64"
+IUSE="wayland"
+
+RESTRICT="bindist mirror"
+QA_PREBUILT="opt/${P}/*"
+
+BDEPEND="
+       dev-util/debugedit
+       dev-util/patchelf
+"
+RDEPEND="
+       >=virtual/jre-17:*
+       dev-lang/go
+       dev-libs/wayland
+       sys-libs/pam
+       sys-process/audit
+"
+
+src_prepare() {
+       tc-export OBJCOPY
+       default
+
+       if ! use arm64; then
+               local remove_me=(
+                       lib/async-profiler/aarch64
+                       plugins/go-plugin/lib/dlv/linuxarm/dlv
+                       plugins/go-plugin/lib/dlv/linuxarmmusl/dlv
+               )
+       elif ! use amd64; then
+               local remove_me=(
+                       lib/async-profiler/amd64
+                       plugins/go-plugin/lib/dlv/linuxmusl/dlv
+               )
+       fi
+
+       rm -rv "${remove_me[@]}" || die
+
+       # excepting files that should be kept for remote plugins
+       if ! use arm64 ; then
+               local skip_remote_files=(
+                       
"plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release"
+                       
"plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64"
+               )
+       elif ! use amd64; then
+               local skip_remote_files=(
+                       
"plugins/platform-ijent-impl/ijent-x86_64-unknown-linux-musl-release"
+                       
"plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-amd64"
+               )
+       fi
+
+       # removing debug symbols and relocating debug files as per #876295
+       # we're escaping all the files that contain $() in their name
+       # as they should not be executed
+       find . -type f ! -name '*$(*)*' -print0 | while IFS= read -r -d '' 
file; do
+               for skip in "${skip_remote_files[@]}"; do
+                       [[ ${file} == ./"${skip}" ]] && continue 2
+               done
+               if file "${file}" | grep -qE "ELF (32|64)-bit"; then
+                       ${OBJCOPY} --remove-section .note.gnu.build-id 
"${file}" || die
+                       debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" 
-i "${file}" || die
+               fi
+       done
+
+       patchelf --set-rpath '$ORIGIN' "jbr/lib/libjcef.so" || die
+       patchelf --set-rpath '$ORIGIN' "jbr/lib/jcef_helper" || die
+
+       # As per 
https://blog.jetbrains.com/platform/2024/07/wayland-support-preview-in-2024-2/ 
for full wayland support
+       if use wayland; then
+               echo "-Dawt.toolkit.name=WLToolkit" >> bin/webstorm64.vmoptions 
|| die
+       fi
+}
+
+src_install() {
+       local dir="/opt/${P}"
+
+       insinto "${dir}"
+       doins -r *
+       fperms 755 
"${dir}"/bin/{format.sh,goland.sh,inspect.sh,ltedit.sh,remote-dev-server.sh,restarter,fsnotifier}
+       fperms 755 
"${dir}"/jbr/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,keytool,rmiregistry,serialver}
+       fperms 755 
"${dir}"/jbr/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}
+       fperms 755 "${dir}"/plugins/go-plugin/lib/dlv/linux/dlv
+
+       make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+       newicon "bin/${PN}.png" "${PN}.png"
+       make_desktop_entry "${PN}" "Goland ${PV}" "${PN}" "Development;IDE;"
+
+       # recommended by: 
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+       insinto /usr/lib/sysctl.d
+       newins - 30-"${PN}"-inotify-watches.conf 
<<<"fs.inotify.max_user_watches = 524288"
+}

Reply via email to