git: 9308b879e235 - main - cad/veroroute: Fix paths in .desktop file

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 30 Apr 2022 18:42:41 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9308b879e2359aad90de076eb1b144da322e00b3

commit 9308b879e2359aad90de076eb1b144da322e00b3
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-04-30 18:40:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-04-30 18:42:35 +0000

    cad/veroroute: Fix paths in .desktop file
    
    PR:             263689
    Reported by:    Torfinn Ingolfsen <tingox+freebsd@gmail.com>
---
 cad/veroroute/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cad/veroroute/Makefile b/cad/veroroute/Makefile
index 7f84d5f6d4f9..3a0c0aaecac1 100644
--- a/cad/veroroute/Makefile
+++ b/cad/veroroute/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	veroroute
 DISTVERSION=	2.25
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	cad
 MASTER_SITES=	SF/${PORTNAME}/
@@ -19,5 +20,8 @@ WRKSRC_SUBDIR=	Src
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/veroroute
+	# workaround for https://sourceforge.net/p/veroroute/tickets/26/
+	@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|' \
+		${STAGEDIR}${PREFIX}/share/applications/veroroute.desktop
 
 .include <bsd.port.mk>