Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dev-util/goland/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ DIST goland-2026.1.1-aarch64.tar.gz 1191786016 BLAKE2B 3439e64d8967821526f98f5fe
DIST goland-2026.1.1-amd64.tar.gz 1196398342 BLAKE2B b08ef73849f20e38e7db773339c056aa1718705e245016daee881e5b5b7d2b64bb670e930ebd18c7023836d263a0ec8d988242169fb4727c8c13088a64662801 SHA512 95ecadca52d6391601ef677cdf256ba95d010326afa4f0df2f7bd548826120366367e64241ebb11e0098e3ff462bdd757c5f41b7e805887eabe6e19d6a22d36a
DIST goland-2026.1.2-aarch64.tar.gz 1193506816 BLAKE2B 98a72025f2d262909c4277dd52eadaef9f41be98b65ee45267b86dfb36b43d03f21af17398be41a49c42abccf43ed829e2700890aaf771bbdf7141573975b704 SHA512 2081e8d96d8be0f1ded88ad0d81d565b52e5898440bf9393fd4ec9e2f0f6b494770adf0f5f2419d9df2d797610e2aeec053a7c46981e0bd8a7664a28b583fde7
DIST goland-2026.1.2-amd64.tar.gz 1198129399 BLAKE2B fc4eaa36285d906d20a9c0fa7455c6bca557efc502c5e4561572bb1ca537b0b3bf80f45685fdf648289836cac0cea31ea8db2180b3182110af5ee0cc37f5af2f SHA512 17570672e12d463e0dbdaf99d8fb4cd301b4e5075dcfc83e945bde6f29ceb49629ad35e687764625b0e240f78d202a9690b1ee37180b390f4a2443f8a323dda4
DIST goland-2026.2-aarch64.tar.gz 1266970342 BLAKE2B a47afe603d3a7d34b395b0e0efda942cadaf2f7c80ce8c2bf1cc90ff345430b5a12aa64f5e922d83a6805f143be8ddf5595007d6bdd4800765bc6ba7261a6cb0 SHA512 904913aef21a8a60a0373357004626b2fbe934a9686dc1d7752011b817012dd2d8c1191d52b12dc3f44156b28e97ae8799311c26d735f8564acebb083178eb2c
DIST goland-2026.2-amd64.tar.gz 1243386895 BLAKE2B 4b4ec5aff52d1e9f366150f35bb0c752487c7282814795fb6c569ba1a76644a96d99ff45cc1c1d7e11af5820042411657cc7276baed18bcb112fe0f2179dcb75 SHA512 ff26ae17c928f53d327dd9e3ebc14344c12d804e53761d4e3a8ff57a23ce0b35540fc7fd3107248635c9f4b1b689d28df6c725bdbe00a88e26148789ad35e98f
75 changes: 75 additions & 0 deletions dev-util/goland/goland-2026.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
QA_PREBUILT="opt/${PN}/bin/fsnotifier
opt/${PN}/bin/fsnotifier64
opt/${PN}/bin/fsnotifier-arm
opt/${PN}/bin/libyjpagent-linux.so
opt/${PN}/bin/libyjpagent-linux64.so"

inherit desktop eutils xdg

DESCRIPTION="Golang IDE by JetBrains"
HOMEPAGE="https://www.jetbrains.com/go"
SRC_URI="
amd64? ( https://download.jetbrains.com/go/goland-2026.2.tar.gz -> goland-2026.2-amd64.tar.gz )
arm64? ( https://download.jetbrains.com/go/goland-2026.2-aarch64.tar.gz -> goland-2026.2-aarch64.tar.gz )"
LICENSE="JetBrains"
SLOT="0"
KEYWORDS="*"
IUSE="+system-java +sysctl"
RDEPEND="system-java? ( virtual/jre )
dev-libs/libdbusmenu
dev-python/pip

"
S="${WORKDIR}/GoLand-2026.2"
post_src_unpack() {
if [ ! -d "$S" ]; then
einfo "Renaming source directory to predictable name..."
mv $(ls "${WORKDIR}") "GoLand-2026.2" || die
fi
}
src_install() {
patchelf --set-rpath '$ORIGIN' jbr/lib/jcef_helper jbr/lib/libjcef.so
local dir="/opt/goland"
local dst="${D}${dir}"
insinto "${dir}"
mv "${S}"/* "${dst}"
local bundled_script_name="${PN%-*}.sh" # bundled script is always lowercase, and doesn't have -ultimate, -professional suffix.
make_wrapper "goland" "${dir}/bin/$bundled_script_name" || die
local svgfile="$(find ${dst}/bin -maxdepth 1 -iname '*.svg')"
newicon $svgfile "goland.svg" || die
local pngfile="$(find ${dst}/bin -maxdepth 1 -iname '*.png')"
newicon $pngfile "goland.png" || die
make_desktop_entry goland "GoLand" goland "Development;IDE;" || die
if use system-java; then
rm -rf "$dst{jbr,jre{64}}" || die "Failed to remove bundled Java"
fi
if use sysctl; then
dodir /etc/sysctl.d
echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-goland-idea-inotify-watches.conf" || die
fi
}
pkg_postinst() {
xdg_pkg_postinst
if use sysctl; then
( /etc/init.d/sysctl restart >/dev/null 2>&1 )
einfo "An /etc/sysctl.d file was installed to optimally configure the IDE, with this"
einfo "setting:"
else
einfo "JetBrains recommends adding the following to /etc/sysctl.conf:"
fi
einfo
einfo "fs.inotify.max_user_watches = 524288"
einfo
einfo "See https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit for"
einfo "more information."
if use sysctl; then
einfo "If this change is undesired, set -sysctl in /etc/portage/package.use."
fi
}


# vim: filetype=ebuild