summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
authorStefan Cristian B. <stefan.cristian+git@rogentos.ro>2025-12-01 06:47:39 +0200
committerViorel Munteanu <ceamac@gentoo.org>2025-12-05 15:32:07 +0200
commitaae6912a9cba1d591ffb34e0a7ed1abb0abbcd9f (patch)
tree495e782eb7a0c307b92142eb252ecefb87ff8d30 /dev-util
parent239ee1fc784ac0fafa827c8138c79aec706a1a48 (diff)
downloadgentoo-aae6912a9cba1d591ffb34e0a7ed1abb0abbcd9f.tar.gz
gentoo-aae6912a9cba1d591ffb34e0a7ed1abb0abbcd9f.tar.bz2
gentoo-aae6912a9cba1d591ffb34e0a7ed1abb0abbcd9f.zip
dev-util/goland: bump 2025.2.5
Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro> Part-of: https://github.com/gentoo/gentoo/pull/44842 Closes: https://github.com/gentoo/gentoo/pull/44842 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/goland/Manifest2
-rw-r--r--dev-util/goland/goland-2025.2.5.ebuild122
2 files changed, 124 insertions, 0 deletions
diff --git a/dev-util/goland/Manifest b/dev-util/goland/Manifest
index 319fa4dc8d11..f75cdf1ea50a 100644
--- a/dev-util/goland/Manifest
+++ b/dev-util/goland/Manifest
@@ -7,4 +7,6 @@ DIST goland-2025.1.4.tar.gz 1087590072 BLAKE2B 93911accf03b5bf9768c60455ca7157b1
DIST goland-2025.2-aarch64.tar.gz 1183128280 BLAKE2B 276cbe4f078b1e7883c97e47a2d39767f6a0c496fb5d059ae277628c63bee62fb1812ce58a6d24fdad93c7ac504ed0f9774b04d639b06341b4bc6a854ffc7603 SHA512 00c1d9fc28d92cf8dd41aa195129cdb92230a71e7292f72b311a7200677ec5464faf3cad8ff8b98cd1952a230c4d3a088480ac9b34d843697a1692f8a37c79c0
DIST goland-2025.2.4-aarch64.tar.gz 1233161679 BLAKE2B 59dae1f921ae069bd97b9433d9260fc8edbee2b92e157b30aad2c2d47557c5c3e78e99d66ed7feee9989e68f8b234f08d8bfff9d4e9312e5112913bc59dae2ea SHA512 e040d16e483d3207dd72d1667c320f1fc5175570897802927715333deab031c5da1358335177db9f73eae90eb9bd04eead254bcd045c31517479e61bfe1dde9e
DIST goland-2025.2.4.tar.gz 1235922025 BLAKE2B 176dfaa24cb5f50c6dabdb0a1fb3ff71ee0664dac0af460515f925ee24cb45d53052bed08497b025f4a31a58ff8735c07650910c38c6b99764684d0b30b16572 SHA512 e47ac5010b7c96b55a2992a0c678d490054b8d633d132bd738d7d64e38624734deb5c6ce773c58dab3f2458e6b1f150ef376eb61250ba277771f95a43b0b3252
+DIST goland-2025.2.5-aarch64.tar.gz 1221837969 BLAKE2B fc2b81352b8f58a00bcdd177c010695720bbd32dbc7a4dc1fb67e79ed3053a7e382d941e2229f225a487042e9dc61d1355367a5a7bc337b349f95bd470990dbe SHA512 da64ed010841b7a830d0fb7cd99f2c905b7572432b8b8b1b2ffd0dc1b9d395cd452b7ca855ea817634eef36109415090d94b600f261aeb971bce4c936531b68e
+DIST goland-2025.2.5.tar.gz 1224607298 BLAKE2B b4dfa69e65ad3dd8fdf339bd3395d99a04749e7f57067317334e1dbb1a0eeb21805c8fb6594f2788c4363101644eb9c016cfddcef30b389316f654c68bfe8fbe SHA512 a71b9883d1c7ce4bced151945b670f5453c81039dcdf32764c8e525f6360d8a39070300bf1ed5bc656885c912dc3734aa1405eb7dc79661347ecbf59bf10de81
DIST goland-2025.2.tar.gz 1185708177 BLAKE2B 75f22876b373ba81255f943abcf4e3e15b27a4af6fb202554974fad18568e541e54768949192cff4190c95e176fbd6ec71543482f34a11102b79ebefe779fe68 SHA512 cc7636e6ec0473becfbde731fcba2b6eb3fcf37ecc90798dd5816db1893fb5d22dec461241d87f258cafee8d1a564d08823fd4aba23b47bcc72bac6e1c4aea81
diff --git a/dev-util/goland/goland-2025.2.5.ebuild b/dev-util/goland/goland-2025.2.5.ebuild
new file mode 100644
index 000000000000..b63a036a42b6
--- /dev/null
+++ b/dev-util/goland/goland-2025.2.5.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="
+ dev-lang/go
+ dev-libs/wayland
+ sys-libs/pam
+ sys-process/audit
+ >=virtual/jre-17:*
+"
+
+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"
+}