Skip to content

Commit

Permalink
devel/jetbrains-goland: Add default JDK runtime
Browse files Browse the repository at this point in the history
PR:		268370
Reported by:	dmitry.wagin@ya.ru (maintainer)
  • Loading branch information
dwagin authored and fernape committed Dec 15, 2022
1 parent 762a8c9 commit c7805ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion devel/jetbrains-goland/Makefile
@@ -1,5 +1,6 @@
PORTNAME= goland
PORTVERSION= 2022.3
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= https://download-cdn.jetbrains.com/go/
PKGNAMEPREFIX= jetbrains-
Expand All @@ -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+

Expand All @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion devel/jetbrains-goland/files/goland.desktop.in
Expand Up @@ -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;
3 changes: 3 additions & 0 deletions devel/jetbrains-goland/files/goland.in
@@ -1,3 +1,6 @@
#!/bin/sh

export GOLAND_JDK=${GOLAND_JDK:-"%%JAVA_HOME%%"}
export SHELL="/bin/sh"

exec "%%DATADIR%%/bin/goland.sh" "$@"

0 comments on commit c7805ae

Please sign in to comment.