diff --git a/deskutils/freeplane/Makefile b/deskutils/freeplane/Makefile index aa9e7d5a680a..9ea903648dee 100644 --- a/deskutils/freeplane/Makefile +++ b/deskutils/freeplane/Makefile @@ -1,37 +1,38 @@ PORTNAME= freeplane DISTVERSION= 1.12.9 +PORTREVISION= 1 CATEGORIES= deskutils editors java MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable DISTNAME= ${PORTNAME}_bin-${PORTVERSION} MAINTAINER= nivit@FreeBSD.org COMMENT= Free mind mapping and knowledge management software WWW= https://www.freeplane.org/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/license.txt RUN_DEPENDS= bash:shells/bash USES= cpe desktop-file-utils java shebangfix zip SHEBANG_FILES= ${WRKSRC}/freeplane.sh NO_ARCH= yes NO_BUILD= yes SUB_FILES= freeplane freeplane.desktop SUB_LIST= DATADIR=${DATADIR} \ PREFIX=${PREFIX} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PLIST_SUB= PORTVERSION="${PORTVERSION}" do-install: cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \ "! ( -name license\.txt -or -name *\.bat -or -name *\.exe -or -name *\.orig -or -name *\.bak -or -name freeplane.sh )" ${INSTALL_DATA} ${WRKDIR}/freeplane.desktop ${STAGEDIR}${DESKTOPDIR}/ ${INSTALL_SCRIPT} ${WRKSRC}/freeplane.sh ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKDIR}/freeplane ${STAGEDIR}${PREFIX}/bin/ .include diff --git a/deskutils/freeplane/files/freeplane.in b/deskutils/freeplane/files/freeplane.in index c61217966e84..4b0ff3dad1ac 100644 --- a/deskutils/freeplane/files/freeplane.in +++ b/deskutils/freeplane/files/freeplane.in @@ -1,3 +1,9 @@ #!/bin/sh +# Fix an issue with dropdown menu in Wayland that prevents +# to open or select any items with the mouse cursor. +if [ -n "$WAYLAND_DISPLAY" ]; then + export _JAVA_AWT_WM_NONREPARENTING=1 +fi + exec %%DATADIR%%/freeplane.sh "$@"