blob: 0e838bda521628d3297268c6d7acbea790bf84de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
PORTNAME= goland
PORTVERSION= 2020.3.4
CATEGORIES= devel java
MASTER_SITES= https://download-cf.jetbrains.com/go/
PKGNAMEPREFIX= jetbrains-
DIST_SUBDIR= jetbrains
MAINTAINER= dmitry.wagin@ya.ru
COMMENT= JetBrains GoLand IDE
LICENSE= IntelliJ-GoLand
LICENSE_NAME= Subscription license agreement for business and organizations
LICENSE_TEXT= See: https://www.jetbrains.com/store/license.html
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
intellij-pty4j>=0.11.4:java/intellij-pty4j \
lsof:sysutils/lsof
USES= python:run shebangfix
USE_JAVA= yes
JAVA_VERSION= 11+
SHEBANG_FILES= bin/printenv.py bin/restart.py
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= ${PORTNAME} ${PORTNAME}.desktop pkg-message
WRKSRC= ${WRKDIR}/GoLand-${PORTVERSION}
OPTIONS_DEFINE_amd64= DELVE
OPTIONS_DEFAULT_amd64= DELVE
DELVE_DESC= Debugger for the Go programming language
DELVE_RUN_DEPENDS= delve>0:devel/delve
do-install:
# Initial JDK 15+ support
@${REINPLACE_CMD} '/UseConcMarkSweepGC/d' ${WRKSRC}/bin/${PORTNAME}.vmoptions
@${REINPLACE_CMD} '/UseConcMarkSweepGC/d' ${WRKSRC}/bin/${PORTNAME}64.vmoptions
# Linux/Windows/OS X only so remove them
@${RM} -r \
${WRKSRC}/bin/fsnotifier \
${WRKSRC}/bin/fsnotifier-arm \
${WRKSRC}/bin/fsnotifier64 \
${WRKSRC}/jbr \
${WRKSRC}/jre64 \
${WRKSRC}/lib/pty4j-native \
${WRKSRC}/plugins/go/lib/dlv \
${WRKSRC}/plugins/performanceTesting/bin
${MKDIR} ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \
"! -name *\.bak ! -name *\.so ! -name *\.dll ! -name *\.dylib ! -name *\.pdb ! -name *\.sh")
@(cd ${WRKSRC} && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR} "-name *\.sh")
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
# Use fsnotifier replacement provided by java/intellij-fsnotifier
${ECHO} "idea.filewatcher.executable.path=${PREFIX}/intellij/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
# Use pty4j replacement provided by java/intellij-pty4j
${LN} -sf ../../../intellij/lib/libpty ${STAGEDIR}${DATADIR}/lib/pty4j-native
do-install-DELVE-on:
${ECHO} "dlv.path=${PREFIX}/bin/dlv" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
.include <bsd.port.mk>
|