From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 610A3158091 for ; Tue, 24 Jun 2025 01:18:26 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 49BA434128C for ; Tue, 24 Jun 2025 01:18:26 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 51620110553; Tue, 24 Jun 2025 01:18:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 47371110553 for ; Tue, 24 Jun 2025 01:18:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ECCD534120D for ; Tue, 24 Jun 2025 01:18:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 622172A73 for ; Tue, 24 Jun 2025 01:18:19 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1750727117.ea565096d8e2344b2b816402db8cda6ed6f7e655.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/goland/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/goland/Manifest dev-util/goland/goland-2025.1.2.ebuild X-VCS-Directories: dev-util/goland/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ea565096d8e2344b2b816402db8cda6ed6f7e655 X-VCS-Branch: master Date: Tue, 24 Jun 2025 01:18:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f880385-f76d-4577-99a1-2862f45c0976 X-Archives-Hash: a1a2350786e378f98ba06fefb0b75cc5 commit: ea565096d8e2344b2b816402db8cda6ed6f7e655 Author: Stefan Cristian B. rogentos ro> AuthorDate: Mon Jun 23 12:52:38 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 24 01:05:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea565096 dev-util/goland: bump 2025.1.2 Signed-off-by: Stefan Cristian B. rogentos.ro> Part-of: https://github.com/gentoo/gentoo/pull/42706 Closes: https://github.com/gentoo/gentoo/pull/42706 Signed-off-by: Sam James gentoo.org> dev-util/goland/Manifest | 2 + dev-util/goland/goland-2025.1.2.ebuild | 122 +++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/dev-util/goland/Manifest b/dev-util/goland/Manifest index 27130f3db48d..21dfbf151a57 100644 --- a/dev-util/goland/Manifest +++ b/dev-util/goland/Manifest @@ -3,4 +3,6 @@ DIST goland-2022.3.3.tar.gz 673567402 BLAKE2B e1771f0890e12e43099d50907aeaa479de DIST goland-2024.3.5-aarch64.tar.gz 1108972234 BLAKE2B 6f9cf2b9d5b61b4608dde0006b282ca929484d2a74a918806efdde032bf8239b23ef00bf46f5c3b33a7cfd77625e5588f474f5524cfed20b9ca14fdf81db252f SHA512 e6acbd595531ee66ed132d4f70df3fa2c3181e126c7570a083df89d87f203789263576f96c496593d311866475c4f845d50e08dd137556bcc26ece810568fa27 DIST goland-2024.3.5.tar.gz 1109319258 BLAKE2B 03c0f91313f492b2db3cbc139eef866193d17a56f4f20a45a64c7cf9a27f36cd9ebf87c95689cb406dabbe7f147a6802fa27a4eab2b33acb5c732e470b21836b SHA512 40a81c037d29210294920bf6400778104bc20dde37966c6f9305e0003ca546cb582aa4aa1fb74001e6c340d0c25b692dd84f6d3c881381b06fc20ea57842636d DIST goland-2025.1-aarch64.tar.gz 1117409123 BLAKE2B 2fa42ac22ce494296eb1404744d30d81d7316c8c887f020b619d57855dafec3b44d02921e085261238ca79373396fdc7c86696bfa7f49413eb6b8d7161cda007 SHA512 e2d0508f443a6f7de9085d40b1e428c3d6a88c9985ecbb5cf3c8d0c1972a98a3e65166e5702a3702da14a15ee74aae97bc3166909e4d408fc5f51d9f6309b81e +DIST goland-2025.1.2-aarch64.tar.gz 1120462912 BLAKE2B 1cac98b5c694326a6bfd7c6d80ad843ab134af114781e1c7a67e517480ef8e2040e209400336c949490cf6f6deaf1a0c377cb4995bacb52df8998a2658b6ff3e SHA512 72c614eea83ca9fcaf6be7c14c93ad61ea49a7f4160204dba6ef2720d684df5552432d83dba25a6e5a3335578305da8773a2ccc155e11e87a158d102dbfaf362 +DIST goland-2025.1.2.tar.gz 1123057926 BLAKE2B edd64f21897c40da5ee7c53a53d24dcd01d2018ca4c01789a909b30062d59ecfc8c56b46f5860da40fb2685f88ddf732942703f803e91c53cb122b19aebdf57f SHA512 bb889dd521b98ef989c693ff43a3afd9f657bf36cb9575c0095bf08dad51d02c834dd20526fd15ec91ceacece72bda11a9ab6482c988d91a89e1a79dfd7567d3 DIST goland-2025.1.tar.gz 1120023437 BLAKE2B 6a7ea2ac5c4bfa3a2bdcd84425ff7045d36d89541d703328fc6247f4a6cebbf7655f39e1d9da97298ae266ae6e53e2391dced3be9c3014afe9a4516dc8d4a8f3 SHA512 4ef5eac89186334ec04cda6c8668b1b4651b0955bbe87d9d80646d9e6f7c547967a628973f8393fd003a1dcf5118013347120552f6f7331ebdb4ecfea6c84ff9 diff --git a/dev-util/goland/goland-2025.1.2.ebuild b/dev-util/goland/goland-2025.1.2.ebuild new file mode 100644 index 000000000000..648352aa3813 --- /dev/null +++ b/dev-util/goland/goland-2025.1.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" +}