git: 3f586f68b2b0 - main - deskutils/flameshot: fix path in .desktop file

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Mon, 26 Sep 2022 09:46:33 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f586f68b2b015a8a0aa9a497485ae352d22f53d

commit 3f586f68b2b015a8a0aa9a497485ae352d22f53d
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2022-09-26 09:44:45 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2022-09-26 09:44:45 +0000

    deskutils/flameshot: fix path in .desktop file
    
    - Add devel/desktop-file-utils to run dependencies
    - Bump PORTREVISION
---
 deskutils/flameshot/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/deskutils/flameshot/Makefile b/deskutils/flameshot/Makefile
index 32c4a92ce8c9..11b034bc457a 100644
--- a/deskutils/flameshot/Makefile
+++ b/deskutils/flameshot/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	flameshot
 PORTVERSION=	12.1.0
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	deskutils wayland
 
 MAINTAINER=	nivit@FreeBSD.org
@@ -10,7 +11,7 @@ WWW=		https://flameshot.org/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		cmake compiler:c++11-lang gl qmake qt:5
+USES=		cmake compiler:c++11-lang desktop-file-utils gl qmake qt:5
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	flameshot-org
@@ -21,7 +22,7 @@ CMAKE_INSTALL_PREFIX=	${STAGEDIR}/${PREFIX}
 
 post-patch:
 	        @${REINPLACE_CMD} -e 's,$${CMAKE_INSTALL_FULL_BINDIR},${LOCALBASE}/bin,1' \
-			-e 's,^\(Exec=\)@LAUNCHER_EXECUTABLE@,\1${LOCALBASE}/bin,1' \
+			-e 's,^\(Exec=\)@LAUNCHER_EXECUTABLE@,\1${LOCALBASE}/bin/${PORTNAME},1' \
 	                ${WRKSRC}/data/dbus/org.flameshot.Flameshot.service.in \
 	                ${WRKSRC}/data/desktopEntry/package/org.flameshot.Flameshot.desktop