git: 0d3fd1df08df - main - x11/libxkbcommon: Backport upstream patch for libxml2 2.14 compatibility with libxml 2.14+ and improve port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 18 Apr 2025 22:06:23 UTC
The branch main has been updated by diizzy:

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

commit 0d3fd1df08df350145bc344f90382595416f166a
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-04-18 07:38:19 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-04-18 22:06:17 +0000

    x11/libxkbcommon: Backport upstream patch for libxml2 2.14 compatibility with libxml 2.14+ and improve port
    
    * Backport upstream commit d7e112febb7ab756563da6eced0a650396be5945
    * Rework Makefile to closer follow Porters Handbook
      PORTVERSION --> DISTVERSION
      Move CPE_VENDOR, SHEBANG_FILES and USE_LDCONFIG to USES block
      Remove unused reference in MESON_ARGS
    
    Reference:
    https://github.com/xkbcommon/libxkbcommon/commit/d7e112febb7ab756563da6eced0a650396be5945
    
    PR:             285910
    Reviewed by:    manu
    Approved by:    x11 (manu)
---
 x11/libxkbcommon/Makefile | 24 ++++++++++++++----------
 x11/libxkbcommon/distinfo |  4 +++-
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/x11/libxkbcommon/Makefile b/x11/libxkbcommon/Makefile
index 90377035b8ff..324bdda2c4b9 100644
--- a/x11/libxkbcommon/Makefile
+++ b/x11/libxkbcommon/Makefile
@@ -1,8 +1,11 @@
 PORTNAME=	libxkbcommon
-PORTVERSION=	1.8.1
-PORTREVISION=	1
+DISTVERSION=	1.8.1
+PORTREVISION=	2
 CATEGORIES=	x11
 
+PATCH_SITES=	https://github.com/xkbcommon/libxkbcommon/commit/
+PATCHFILES=	d7e112febb7ab756563da6eced0a650396be5945.patch:-p1
+
 MAINTAINER=	x11@FreeBSD.org
 COMMENT=	Keymap handling library for toolkits and window systems
 WWW=		https://xkbcommon.org/
@@ -14,20 +17,21 @@ RUN_DEPENDS=	xkeyboard-config>0:x11/xkeyboard-config
 
 USES=		bison compiler:c11 cpe gnome meson pkgconfig python:test \
 		shebangfix
-USE_GNOME=	libxml2
-USE_GITHUB=	yes
-GH_ACCOUNT=	xkbcommon
-GH_TAGNAME=	${GH_ACCOUNT}-${PORTVERSION}
-USE_LDCONFIG=	yes
-MESON_ARGS=	-Denable-docs=false \
-		-Dx-locale-root="${PREFIX}/lib/X11/locale" \
-		${MESON_ARGS_${OPSYS}_${OSREL:R}}
 CPE_VENDOR=	xkbcommon
 SHEBANG_FILES=	test/xkeyboard-config-test.py.in \
 		test/*.py
+USE_GNOME=	libxml2
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	xkbcommon
+GH_TAGNAME=	${GH_ACCOUNT}-${DISTVERSION}
 
 HAS_SYMBOL_VERSION=	${PREFIX}/lib/libxkbregistry.so.0.8.1
 
+MESON_ARGS=	-Denable-docs=false \
+		-Dx-locale-root="${PREFIX}/lib/X11/locale"
+
 OPTIONS_DEFINE=	EVDEV WAYLAND X11
 OPTIONS_DEFAULT=EVDEV WAYLAND X11
 OPTIONS_SUB=	yes
diff --git a/x11/libxkbcommon/distinfo b/x11/libxkbcommon/distinfo
index 1c70b0f8d66e..8d2f820d16e7 100644
--- a/x11/libxkbcommon/distinfo
+++ b/x11/libxkbcommon/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1741855108
+TIMESTAMP = 1743897665
 SHA256 (xkbcommon-libxkbcommon-1.8.1-xkbcommon-1.8.1_GH0.tar.gz) = c65c668810db305c4454ba26a10b6d84a96b5469719fe3c729e1c6542b8d0d87
 SIZE (xkbcommon-libxkbcommon-1.8.1-xkbcommon-1.8.1_GH0.tar.gz) = 983334
+SHA256 (d7e112febb7ab756563da6eced0a650396be5945.patch) = 5701bd42031689331fe9b9746d0443cedcc3b0834ed42ec622392827e32f4c7c
+SIZE (d7e112febb7ab756563da6eced0a650396be5945.patch) = 1858