git: c15f7044ae27 - main - sysutils/keyd: switch to upstream build fix

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 19 Jun 2022 03:08:21 UTC
The branch main has been updated by jbeich:

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

commit c15f7044ae27aa5669aa3bdfd9ea30f7c5e9c787
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-06-19 03:07:39 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-06-19 03:08:01 +0000

    sysutils/keyd: switch to upstream build fix
---
 sysutils/keyd/Makefile | 4 +++-
 sysutils/keyd/distinfo | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/sysutils/keyd/Makefile b/sysutils/keyd/Makefile
index c628549192e3..e30748753ced 100644
--- a/sysutils/keyd/Makefile
+++ b/sysutils/keyd/Makefile
@@ -3,6 +3,9 @@ DISTVERSIONPREFIX=	v
 DISTVERSION=	2.4.1
 CATEGORIES=	sysutils
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+=	bb49007fb074.patch:-p1 # https://github.com/rvaiya/keyd/pull/239
+
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Key remapping daemon for evdev
 
@@ -41,7 +44,6 @@ post-patch:
 	@${REINPLACE_CMD} -e 's,/etc,$$(PREFIX)&,' \
 		-e 's,/usr/local,${LOCALBASE},' \
 		-e 's,${DOCSDIR_REL}/examples,${EXAMPLESDIR_REL},' \
-		-e '/_XOPEN_SOURCE/d' \
 		-e 's/ -O3//' \
 		${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's,/usr,${PREFIX}&,' \
diff --git a/sysutils/keyd/distinfo b/sysutils/keyd/distinfo
index 65852db36a0e..a67eccd54abe 100644
--- a/sysutils/keyd/distinfo
+++ b/sysutils/keyd/distinfo
@@ -1,3 +1,5 @@
 TIMESTAMP = 1655534821
 SHA256 (rvaiya-keyd-v2.4.1_GH0.tar.gz) = 23e6eac529b0c07ad99420c2a8a75967b7cadb0c3509284cc0f7633056dc50e2
 SIZE (rvaiya-keyd-v2.4.1_GH0.tar.gz) = 628300
+SHA256 (bb49007fb074.patch) = 2e288ef7a64897c3820ef0a21453f848c37ac0279124b799128aac1900bac75b
+SIZE (bb49007fb074.patch) = 769