devel/jetbrains-goland: Add default JDK runtime

PR:		268370
Reported by:	dmitry.wagin@ya.ru (maintainer)
This commit is contained in:
Dmitry Wagin 2022-12-15 08:39:09 +01:00 committed by Fernando Apesteguía
parent 762a8c90b5
commit c7805aea91
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= goland
PORTVERSION= 2022.3
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= https://download-cdn.jetbrains.com/go/
PKGNAMEPREFIX= jetbrains-
@ -20,8 +21,8 @@ RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
lsof:sysutils/lsof
USES= cpe python:run shebangfix
CPE_VENDOR= jetbrains
CPE_VENDOR= jetbrains
USE_JAVA= yes
JAVA_VERSION= 17+
@ -31,6 +32,7 @@ NO_ARCH= yes
NO_ARCH_IGNORE= libjnidispatch.so
NO_BUILD= yes
SUB_FILES= ${PORTNAME} ${PORTNAME}.desktop pkg-message
SUB_LIST= JAVA_HOME=${JAVA_HOME}
WRKSRC= ${WRKDIR}/GoLand-${PORTVERSION}

View File

@ -6,7 +6,7 @@ Name=GoLand
GenericName=GoLand
Comment=GoLand Integrated Development Environment
Icon=%%DATADIR%%/bin/goland.png
Exec=%%DATADIR%%/bin/goland.sh
Exec=%%PREFIX%%/bin/goland
Terminal=false
StartupNotify=true
Categories=Application;Development;

View File

@ -1,3 +1,6 @@
#!/bin/sh
export GOLAND_JDK=${GOLAND_JDK:-"%%JAVA_HOME%%"}
export SHELL="/bin/sh"
exec "%%DATADIR%%/bin/goland.sh" "$@"