git: 108dc6c3d06d - main - devel/pycharm-ce: depend on devel/jetbrains-restarter

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Sun, 14 Jan 2024 10:08:14 UTC
The branch main has been updated by pi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=108dc6c3d06dc30975935a7af69f8867230c93ae

commit 108dc6c3d06dc30975935a7af69f8867230c93ae
Author:     BjJonathan Chen <jonc@chen.org.nz>
AuthorDate: 2024-01-14 10:04:27 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2024-01-14 10:08:00 +0000

    devel/pycharm-ce: depend on devel/jetbrains-restarter
    
    PR:     276192
    Author: Jonathan Chen <jonc@chen.org.nz>
---
 devel/pycharm-ce/Makefile  | 9 ++++++---
 devel/pycharm-ce/pkg-plist | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/devel/pycharm-ce/Makefile b/devel/pycharm-ce/Makefile
index 9abb3571da3a..f2f2a7574bff 100644
--- a/devel/pycharm-ce/Makefile
+++ b/devel/pycharm-ce/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pycharm-ce
-DISTVERSION=	2023.3.2
+PORTVERSION=	2023.3.2
+PORTREVISION=	1
 CATEGORIES=	devel java python
 MASTER_SITES=	https://download.jetbrains.com/python/ \
 		http://download.jetbrains.com/python/
@@ -14,6 +15,7 @@ LICENSE=	APACHE20
 BUILD_DEPENDS=	jna>0:devel/jna
 RUN_DEPENDS=	intellij-fsnotifier>0:java/intellij-fsnotifier \
 		jetbrains-pty4j>=0.12.13:devel/jetbrains-pty4j \
+		jetbrains-restarter>=233.11799.241:devel/jetbrains-restarter \
 		jetbrains-sqlite>=232.8660.185:devel/jetbrains-sqlite
 
 USES=		python:run shebangfix
@@ -37,8 +39,7 @@ post-extract:
 	@${FIND} ${WRKSRC}/lib ${WRKSRC}/plugins -type d -empty -delete
 	@${RM} -r ${WRKSRC}/plugins/cwm-plugin/quiche-native
 	@${RM} -r ${WRKSRC}/plugins/python-ce/helpers/pydev/pydevd_attach_to_process
-# Remove the bundled native Pty4J support libraries, they are replaced
-# by java/intellij-pty4j
+# Remove the bundled native Pty4J support libraries, they are replaced by java/jetbrains-pty4j
 	@${RM} -r ${WRKSRC}/lib/pty4j
 # Remove bundled linux-only JRE
 	@${RM} -r ${WRKSRC}/jbr
@@ -61,6 +62,8 @@ do-install:
 # Use pty4j replacement provided by devel/jetbrains-pty4j
 	${MKDIR} ${STAGEDIR}${DATADIR}/lib/pty4j/freebsd/x86-64
 	${LN} -sf ../../../../../jetbrains/pty4j/amd64/libpty.so ${STAGEDIR}${DATADIR}/lib/pty4j/freebsd/x86-64/libpty.so
+# Use restarter provided by devel/jetbrains-restarter
+	${LN} -sf ../../jetbrains/restarter/restarter ${STAGEDIR}${DATADIR}/bin/restarter
 # Use sqlite replacement provided by devel/jetbrains-sqlite
 	${MKDIR} ${STAGEDIR}${DATADIR}/lib/native/linux-x86_64
 	${LN} -sf ../../../../jetbrains/sqlite/amd64/libsqliteij.so ${STAGEDIR}${DATADIR}/lib/native/linux-x86_64/libsqliteij.so
diff --git a/devel/pycharm-ce/pkg-plist b/devel/pycharm-ce/pkg-plist
index 56f1ecd06e16..15d28534fad0 100644
--- a/devel/pycharm-ce/pkg-plist
+++ b/devel/pycharm-ce/pkg-plist
@@ -12,6 +12,7 @@ share/applications/pycharm-ce.desktop
 %%DATADIR%%/bin/pycharm.sh
 %%DATADIR%%/bin/pycharm.svg
 %%DATADIR%%/bin/pycharm64.vmoptions
+%%DATADIR%%/bin/restarter
 %%DATADIR%%/build.txt
 %%DATADIR%%/help/ReferenceCard.pdf
 %%DATADIR%%/help/ReferenceCardForMac.pdf