You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.4 KiB
90 lines
2.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit desktop eutils
|
||
|
|
||
|
SLOT=0
|
||
|
|
||
|
SRC_URI="https://download.jetbrains.com/go/${P}.tar.gz"
|
||
|
DESCRIPTION="Golang IDE by JetBrains"
|
||
|
HOMEPAGE="https://www.jetbrains.com/go"
|
||
|
|
||
|
# JetBrains supports officially only x86_64 even though some 32bit binaries are
|
||
|
# provided. See https://www.jetbrains.com/go/download/#section=linux
|
||
|
KEYWORDS="~amd64"
|
||
|
|
||
|
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
|
||
|
ZLIB
|
||
|
"
|
||
|
|
||
|
RESTRICT="bindist mirror"
|
||
|
|
||
|
QA_PREBUILT="opt/${P}/*"
|
||
|
|
||
|
S="${WORKDIR}/GoLand-${PV}"
|
||
|
|
||
|
RDEPEND="
|
||
|
virtual/jdk
|
||
|
dev-lang/go
|
||
|
"
|
||
|
|
||
|
src_install() {
|
||
|
local dir="/opt/${P}"
|
||
|
|
||
|
insinto "${dir}"
|
||
|
doins -r *
|
||
3 years ago
|
fperms 755 "${dir}"/bin/{${PN}.sh,fsnotifier}
|
||
4 years ago
|
fperms 755 "${dir}"/jbr/bin/{jaotc,java,javac,jdb,jfr,jhsdb,jjs,jrunscript,keytool,pack200,rmid,rmiregistry,serialver,unpack200}
|
||
|
fperms 755 "${dir}"/plugins/go/lib/dlv/linux/dlv
|
||
5 years ago
|
|
||
|
make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
|
||
|
newicon "bin/${PN}.png" "${PN}.png"
|
||
3 years ago
|
make_desktop_entry "${PN}" "goland" "${PN}" "Development;IDE;"
|
||
5 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||
|
# This is a new installation, so:
|
||
|
echo
|
||
|
elog "It is strongly recommended to increase the inotify watch limit"
|
||
|
elog "to at least 524288. You can achieve this e.g. by calling"
|
||
|
elog "echo \"fs.inotify.max_user_watches = 524288\" > /etc/sysctl.d/30-idea-inotify-watches.conf"
|
||
|
elog "and reloading with \"sysctl --system\" (and restarting the IDE)."
|
||
|
elog "For details see:"
|
||
|
elog " https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit"
|
||
|
fi
|
||
|
|
||
|
local replacing_version
|
||
|
for replacing_version in ${REPLACING_VERSIONS} ; do
|
||
|
if ver_test "${replacing_version}" -lt "2019.3-r1"; then
|
||
|
# This revbump requires user interaction.
|
||
|
echo
|
||
|
ewarn "Previous versions configured fs.inotify.max_user_watches without user interaction."
|
||
|
ewarn "Since version 2019.3-r1 you need to do so manually, e.g. by calling"
|
||
|
ewarn "echo \"fs.inotify.max_user_watches = 524288\" > /etc/sysctl.d/30-idea-inotify-watches.conf"
|
||
|
ewarn "and reloading with \"sysctl --system\" (and restarting the IDE)."
|
||
|
ewarn "For details see:"
|
||
|
ewarn " https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit"
|
||
|
|
||
|
# Show this ewarn only once
|
||
|
break
|
||
|
fi
|
||
|
done
|
||
|
}
|