git: 755d5c1bfec3 - main - sysutils/synergy: replace hardcoded path for evdev.xml

From: Koichiro Iwao <meta_at_FreeBSD.org>
Date: Sun, 01 Oct 2023 13:07:45 UTC
The branch main has been updated by meta:

URL: https://cgit.FreeBSD.org/ports/commit/?id=755d5c1bfec3e50b4b6b4fce895dc992c568f5a9

commit 755d5c1bfec3e50b4b6b4fce895dc992c568f5a9
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2023-09-25 07:31:09 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2023-10-01 13:06:28 +0000

    sysutils/synergy: replace hardcoded path for evdev.xml
    
    PR:             271200
    Reported by:    Koine Yuusuke <koinec@yahoo.co.jp>
    Tested by:      Koine Yuusuke <koinec@yahoo.co.jp>
    Reviewed by:    meta
    Approved by:    maintainer timeout (> 4 months)
---
 sysutils/synergy/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sysutils/synergy/Makefile b/sysutils/synergy/Makefile
index 4ef1e45dddf1..1b93684741e9 100644
--- a/sysutils/synergy/Makefile
+++ b/sysutils/synergy/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	synergy
 DISTVERSION=	1.14.6.19
 DISTVERSIONSUFFIX=	-stable
+PORTREVISION=	1
 PORTEPOCH=	3
 CATEGORIES=	sysutils
 
@@ -50,6 +51,10 @@ LEGACY_CONFIGURE_ENV_OFF=	SYNERGY_NO_LEGACY=true
 LEGACY_USE=			QT=gui
 
 post-patch:
+	# Hardcoded path needs to be replaced with
+	#   --with-xkb-base defined in x11/keyboard-config
+	@${REINPLACE_CMD} -e 's|/usr/share/X11/xkb|${PREFIX}/share/X11/xkb"|' \
+		${WRKSRC}/src/lib/synergy/unix/AppUtilUnix.cpp
 	@${REINPLACE_CMD} -e 's|return "/etc"|return "${PREFIX}/etc"|' \
 		${WRKSRC}/src/lib/arch/unix/ArchFileUnix.cpp
 	@${REINPLACE_CMD} -e 's|/etc/synergy.conf|${PREFIX}/etc/synergy.conf|' \