devel/jetbrains-clion: define default JAVA_HOME
bin/clion tries to figure out the proper JAVA_HOME, while giving the user the ability to override it. This can lead to it picking up a too old Java version: > clion java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 To fix this, make the ports tree fill in its JAVA_HOME into bin/clion. Users can still override it to something specific by overriding CLION_JDK: > env CLION_JDK=/some/other/jdk/installation clion PR: 268358
This commit is contained in:
parent
016f8aac17
commit
4fecb32759
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= clion
|
||||
PORTVERSION= 2022.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= https://download-cdn.jetbrains.com/cpp/
|
||||
PKGNAMEPREFIX= jetbrains-
|
||||
|
@ -22,11 +23,10 @@ RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
|
|||
|
||||
USES= cpe python:run shebangfix
|
||||
|
||||
CPE_VENDOR= jetbrains
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 17+
|
||||
|
||||
CPE_VENDOR= jetbrains
|
||||
|
||||
SHEBANG_FILES= bin/restart.py \
|
||||
plugins/python-ce/helpers/typeshed/scripts/generate_proto_stubs.sh
|
||||
|
||||
|
@ -34,6 +34,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}/clion-${PORTVERSION}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Name=CLion
|
|||
GenericName=CLion
|
||||
Comment=CLion Integrated Development Environment
|
||||
Icon=%%DATADIR%%/bin/clion.png
|
||||
Exec=%%DATADIR%%/bin/clion.sh
|
||||
Exec=%%PREFIX%%/bin/clion
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Categories=Application;Development;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
export CLION_JDK=${CLION_JDK:-"%%JAVA_HOME%%"}
|
||||
export SHELL="/bin/sh"
|
||||
|
||||
exec "%%DATADIR%%/bin/clion.sh" "$@"
|
||||
|
|
Loading…
Reference in New Issue
Block a user