git: 3b3700f8f07f - main - */*: Use Gnome helper for defining libxml2 dependency

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 23 Dec 2024 21:08:43 UTC
The branch main has been updated by diizzy:

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

commit 3b3700f8f07fb1536af3464ed8be331334e5f486
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-12-23 20:59:34 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-12-23 21:08:39 +0000

    */*: Use Gnome helper for defining libxml2 dependency
    
    Replace LIB_DEPENDS with USES= gnome, USE_GNOME= libxml2
    
    Approved by:    portmgr (blanket)
---
 biology/ncbi-vdb/Makefile      | 6 +++---
 cad/pcb-rnd/Makefile           | 6 +++---
 deskutils/bookworm/Makefile    | 3 +--
 devel/libabigail/Makefile      | 7 ++++---
 devel/libdatovka/Makefile      | 5 ++---
 devel/liblangtag/Makefile      | 5 ++---
 devel/libsmpp34/Makefile       | 5 ++---
 devel/libvirt/Makefile         | 5 ++---
 devel/pcsc-cyberjack/Makefile  | 6 +++---
 devel/sope/Makefile            | 6 +++---
 devel/sope2/Makefile           | 6 +++---
 dns/bind9-devel/Makefile       | 6 +++---
 dns/bind918/Makefile           | 7 ++++---
 dns/bind920/Makefile           | 4 +++-
 dns/opendnssec2/Makefile       | 7 ++++---
 editors/xmlcopyeditor/Makefile | 3 +--
 filesystems/s3fs/Makefile      | 6 +++---
 finance/odoo/Makefile          | 6 +++---
 finance/odoo14/Makefile        | 6 +++---
 finance/odoo15/Makefile        | 6 +++---
 finance/odoo16/Makefile        | 6 +++---
 graphics/flam3/Makefile        | 6 +++---
 graphics/shotwell/Makefile     | 5 ++---
 graphics/tinyows/Makefile      | 4 ++--
 lang/crystal/Makefile          | 4 ++--
 lang/gnu-cobol/Makefile        | 6 +++---
 math/pdal/Makefile             | 4 ++--
 math/scilab/Makefile           | 4 ++--
 misc/hotkeys/Makefile          | 5 ++---
 misc/liblxi/Makefile           | 6 +++---
 misc/libsupertone/Makefile     | 6 +++---
 multimedia/handbrake/Makefile  | 4 ++--
 multimedia/mythtv/Makefile     | 4 ++--
 multimedia/vcdimager/Makefile  | 4 ++--
 net-mgmt/libfds/Makefile       | 8 ++++----
 net/fort/Makefile              | 7 ++++---
 net/libgrss/Makefile           | 5 ++---
 news/nzbget/Makefile           | 6 +++---
 science/abinit/Makefile        | 1 -
 science/afni/Makefile          | 5 ++---
 security/kc/Makefile           | 5 +++--
 security/openconnect/Makefile  | 4 ++--
 sysutils/xen-tools/Makefile    | 5 ++---
 textproc/lttoolbox/Makefile    | 7 ++++---
 www/pecl-solr/Makefile         | 6 +++---
 www/trafficserver/Makefile     | 6 +++---
 46 files changed, 120 insertions(+), 124 deletions(-)

diff --git a/biology/ncbi-vdb/Makefile b/biology/ncbi-vdb/Makefile
index c38dea3ffdb4..fc60b954bcd8 100644
--- a/biology/ncbi-vdb/Makefile
+++ b/biology/ncbi-vdb/Makefile
@@ -19,11 +19,11 @@ ONLY_FOR_ARCHS_REASON=	libs/search/nucstrstr.c requires SSE2 instructions
 BUILD_DEPENDS=	bash:shells/bash \
 		libepoll-shim>0:devel/libepoll-shim
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libhdf5.so:science/hdf5 \
+LIB_DEPENDS=	libhdf5.so:science/hdf5 \
 		libmbedtls.so:security/mbedtls
 
-USES=		compiler:c11 gmake localbase:ldflags perl5 shebangfix
+USES=		compiler:c11 gmake gnome localbase:ldflags perl5 shebangfix
+USE_GNOME=	libxml2
 USE_PERL5=	build
 USE_LDCONFIG=	yes
 
diff --git a/cad/pcb-rnd/Makefile b/cad/pcb-rnd/Makefile
index d4c6df4588ee..745b86b2e0db 100644
--- a/cad/pcb-rnd/Makefile
+++ b/cad/pcb-rnd/Makefile
@@ -14,10 +14,10 @@ LIB_DEPENDS=	libfungw.so:devel/fungw \
 		libfreetype.so:print/freetype2 \
 		libgd.so:graphics/gd \
 		libgenht.so:devel/genht \
-		librnd-hid.so:cad/librnd \
-		libxml2.so:textproc/libxml2
+		librnd-hid.so:cad/librnd
 
-USES=		gmake pkgconfig tar:bz2
+USES=		gmake gnome pkgconfig tar:bz2
+USE_GNOME=	libxml2
 
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--cflags/libs/sul/freetype2="-I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include/freetype2/freetype" \
diff --git a/deskutils/bookworm/Makefile b/deskutils/bookworm/Makefile
index 0e680d9107c3..5b306e39fa8f 100644
--- a/deskutils/bookworm/Makefile
+++ b/deskutils/bookworm/Makefile
@@ -17,8 +17,7 @@ LIB_DEPENDS=	libappstream-glib.so:devel/appstream-glib \
 		libgranite.so:x11-toolkits/granite \
 		libpoppler-glib.so:graphics/poppler-glib \
 		libsoup-2.4.so:devel/libsoup \
-		libwebkit2gtk-4.0.so:www/webkit2-gtk3 \
-		libxml2.so:textproc/libxml2
+		libwebkit2gtk-4.0.so:www/webkit2-gtk3
 RUN_DEPENDS=	bash:shells/bash \
 		pdftohtml:graphics/poppler-utils \
 		unar:archivers/unarchiver \
diff --git a/devel/libabigail/Makefile b/devel/libabigail/Makefile
index e38ef83d3a40..a3870ccc5518 100644
--- a/devel/libabigail/Makefile
+++ b/devel/libabigail/Makefile
@@ -11,10 +11,11 @@ WWW=		https://sourceware.org/libabigail/
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libdw.so:devel/elfutils
+LIB_DEPENDS=	libdw.so:devel/elfutils
 
-USES=		compiler:c++11-lang gmake libtool localbase pkgconfig python
+USES=		compiler:c++11-lang gmake gnome libtool localbase pkgconfig \
+		python
+USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-cxx11=yes
diff --git a/devel/libdatovka/Makefile b/devel/libdatovka/Makefile
index 84d7a2186131..9dc778eb1ce3 100644
--- a/devel/libdatovka/Makefile
+++ b/devel/libdatovka/Makefile
@@ -17,13 +17,12 @@ BUILD_DEPENDS=	docbook-xsl>0:textproc/docbook-xsl \
 		libiconv>0:converters/libiconv \
 		pkgconf:devel/pkgconf \
 		xsltproc:textproc/libxslt
-LIB_DEPENDS+=	libassuan.so:security/libassuan \
+LIB_DEPENDS=	libassuan.so:security/libassuan \
 		libcurl.so:ftp/curl \
 		libexpat.so:textproc/expat2 \
 		libgcrypt.so:security/libgcrypt \
 		libgpg-error.so:security/libgpg-error \
-		libgpgme.so:security/gpgme \
-		libxml2.so:textproc/libxml2
+		libgpgme.so:security/gpgme
 
 USES=		autoreconf gettext gmake gnome libtool localbase ssl tar:xz
 USE_GNOME=	libxml2 libxslt
diff --git a/devel/liblangtag/Makefile b/devel/liblangtag/Makefile
index 165bf8bf379f..ae49a3eec586 100644
--- a/devel/liblangtag/Makefile
+++ b/devel/liblangtag/Makefile
@@ -11,11 +11,10 @@ WWW=		https://bitbucket.org/tagoh/liblangtag/wiki/Home
 LICENSE=	LGPL3 MPL20
 LICENSE_COMB=	dual
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2
-
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
-USES=		iconv libtool pathfix pkgconfig tar:bzip2
+USES=		iconv gnome libtool pathfix pkgconfig tar:bzip2
+USE_GNOME=	libxml2
 INSTALL_TARGET=	install-strip
 
 CONFIGURE_ARGS=	--disable-introspection
diff --git a/devel/libsmpp34/Makefile b/devel/libsmpp34/Makefile
index a164c0159384..168d836171b6 100644
--- a/devel/libsmpp34/Makefile
+++ b/devel/libsmpp34/Makefile
@@ -11,9 +11,8 @@ WWW=		https://c-open-smpp-34.sourceforge.net/
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2
-
-USES=		autoreconf libtool pathfix
+USES=		autoreconf gnome libtool pathfix
+USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile
index 96500977e6fe..0d0bb27ff2a9 100644
--- a/devel/libvirt/Makefile
+++ b/devel/libvirt/Makefile
@@ -11,8 +11,7 @@ WWW=		https://libvirt.org/
 LICENSE=	LGPL3
 
 LIB_DEPENDS=	libcurl.so:ftp/curl \
-		libgnutls.so:security/gnutls \
-		libxml2.so:textproc/libxml2
+		libgnutls.so:security/gnutls
 BUILD_DEPENDS=	dnsmasq:dns/dnsmasq \
 		${LOCALBASE}/bin/grep:textproc/gnugrep \
 		gsed:textproc/gsed \
@@ -132,7 +131,7 @@ LDFLAGS+=	-L${LOCALBASE}/lib -fstack-protector
 
 USES=		gnome charsetfix compiler:c++0x cpe gettext-runtime gmake \
 	        meson pathfix perl5 python:build pkgconfig shebangfix tar:xz
-USE_GNOME=	glib20
+USE_GNOME=	glib20 libxml2
 USE_RC_SUBR=	libvirtd virtlogd
 CPE_VENDOR=	redhat
 USE_PERL5=	build
diff --git a/devel/pcsc-cyberjack/Makefile b/devel/pcsc-cyberjack/Makefile
index d6e574a664bf..32d8f684c458 100644
--- a/devel/pcsc-cyberjack/Makefile
+++ b/devel/pcsc-cyberjack/Makefile
@@ -12,10 +12,10 @@ LICENSE_COMB=	dual
 LICENSE_FILE_GPLv2=	${WRKSRC}/COPYRIGHT.GPL
 LICENSE_FILE_LGPL20=	${WRKSRC}/COPYRIGHT.LGPL
 
-LIB_DEPENDS=	libpcsclite.so:devel/pcsc-lite \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libpcsclite.so:devel/pcsc-lite
 
-USES=		autoreconf dos2unix libtool localbase pkgconfig tar:bzip2
+USES=		autoreconf dos2unix gnome libtool localbase pkgconfig tar:bzip2
+USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-release --with-usbdropdir=${PREFIX}/lib/pcsc/drivers
diff --git a/devel/sope/Makefile b/devel/sope/Makefile
index ed64ca7b7ba4..03d6d5a42b1a 100644
--- a/devel/sope/Makefile
+++ b/devel/sope/Makefile
@@ -10,10 +10,10 @@ WWW=			https://sogo.nu/
 
 LICENSE=		LGPL20
 
-LIB_DEPENDS=		libxml2.so:textproc/libxml2 \
-			libmemcached.so:databases/libmemcached
+LIB_DEPENDS=		libmemcached.so:databases/libmemcached
 
-USES=			gmake iconv gnustep
+USES=			gmake gnome iconv gnustep
+USE_GNOME=		libxml2
 USE_GNUSTEP=		base build
 USE_LDCONFIG=		${GNUSTEP_LOCAL_LIBRARIES}
 
diff --git a/devel/sope2/Makefile b/devel/sope2/Makefile
index 1b7abfcdc6a9..9c7ae9c539da 100644
--- a/devel/sope2/Makefile
+++ b/devel/sope2/Makefile
@@ -11,8 +11,7 @@ WWW=		https://sogo.nu/
 
 LICENSE=		LGPL20
 
-LIB_DEPENDS=		libxml2.so:textproc/libxml2 \
-			libmemcached.so:databases/libmemcached
+LIB_DEPENDS=		libmemcached.so:databases/libmemcached
 
 WRKSRC=			${WRKDIR}/SOPE
 
@@ -24,7 +23,8 @@ MYSQL_DESC=		Build with MySQL support
 PGSQL_DESC=		Build with PostgreSQL support
 MEMCACHED_DESC=		Install memcached
 
-USES=			gmake iconv gnustep ssl
+USES=			gmake gnome iconv gnustep ssl
+USE_GNOME=		libxml2
 USE_GNUSTEP=		base build
 USE_LDCONFIG=		${GNUSTEP_LOCAL_LIBRARIES}
 LLD_UNSAFE=		yes # PR 230608
diff --git a/dns/bind9-devel/Makefile b/dns/bind9-devel/Makefile
index 2276f4733a43..50fff6e129fa 100644
--- a/dns/bind9-devel/Makefile
+++ b/dns/bind9-devel/Makefile
@@ -37,20 +37,20 @@ LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
 LIB_DEPENDS=	libuv.so:devel/libuv \
 		libnghttp2.so:www/libnghttp2 \
-		liburcu.so:sysutils/liburcu \
-		libxml2.so:textproc/libxml2
+		liburcu.so:sysutils/liburcu
 
 .if !defined(BIND_TOOLS_SLAVE)
 RUN_DEPENDS=	bind-tools>0:dns/bind-tools
 .endif
 
-USES=		autoreconf compiler:c11 cpe libedit libtool pkgconfig ssl tar:xz
+USES=		autoreconf compiler:c11 cpe gnome libedit libtool pkgconfig ssl tar:xz
 
 CPE_VENDOR=	isc
 CPE_VERSION=	${DISTVERSION:C/-.*//}
 .if ${DISTVERSION:M*-*}
 CPE_UPDATE=	${DISTVERSION:C/.*-//:tl}
 .endif
+USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
diff --git a/dns/bind918/Makefile b/dns/bind918/Makefile
index 9d951f79f2d1..950a1abc4bfa 100644
--- a/dns/bind918/Makefile
+++ b/dns/bind918/Makefile
@@ -20,12 +20,13 @@ LICENSE=	MPL20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libuv.so:devel/libuv \
-		libnghttp2.so:www/libnghttp2 \
-		libxml2.so:textproc/libxml2
+		libnghttp2.so:www/libnghttp2
 
 RUN_DEPENDS=	bind-tools>0:dns/bind-tools
 
-USES=		autoreconf compiler:c11 cpe libedit libtool pkgconfig ssl tar:xz
+USES=		autoreconf compiler:c11 cpe gnome libedit libtool pkgconfig ssl \
+		tar:xz
+USE_GNOME=	libxml2
 
 CPE_VENDOR=	isc
 CPE_VERSION=	${DISTVERSION:C/-.*//}
diff --git a/dns/bind920/Makefile b/dns/bind920/Makefile
index 85c6700015a8..ac02ff159561 100644
--- a/dns/bind920/Makefile
+++ b/dns/bind920/Makefile
@@ -43,13 +43,15 @@ LIB_DEPENDS=	libuv.so:devel/libuv \
 RUN_DEPENDS=	bind-tools>0:dns/bind-tools
 .endif
 
-USES=		autoreconf compiler:c11 cpe libedit libtool pkgconfig ssl tar:xz
+USES=		autoreconf compiler:c11 cpe gnome libedit libtool pkgconfig ssl \
+		tar:xz
 
 CPE_VENDOR=	isc
 CPE_VERSION=	${DISTVERSION:C/-.*//}
 .if ${DISTVERSION:M*-*}
 CPE_UPDATE=	${DISTVERSION:C/.*-//:tl}
 .endif
+USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
diff --git a/dns/opendnssec2/Makefile b/dns/opendnssec2/Makefile
index 2c6859c0820e..fe23a2bc75df 100644
--- a/dns/opendnssec2/Makefile
+++ b/dns/opendnssec2/Makefile
@@ -12,10 +12,11 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	ldns>=1.6.16:dns/ldns
-LIB_DEPENDS=	libldns.so:dns/ldns \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libldns.so:dns/ldns
+
+USES=		autoreconf cpe gnome libtool ssl
+USE_GNOME=	libxml2
 
-USES=		autoreconf cpe libtool ssl
 USE_RC_SUBR=	opendnssec
 
 GNU_CONFIGURE=	yes
diff --git a/editors/xmlcopyeditor/Makefile b/editors/xmlcopyeditor/Makefile
index f0dfd3757d4d..e20453a86ef9 100644
--- a/editors/xmlcopyeditor/Makefile
+++ b/editors/xmlcopyeditor/Makefile
@@ -17,12 +17,11 @@ LIB_DEPENDS=	libaspell.so:textproc/aspell \
 		libharfbuzz.so:print/harfbuzz \
 		libpcre2-8.so:devel/pcre2 \
 		libxerces-c.so:textproc/xerces-c3 \
-		libxml2.so:textproc/libxml2 \
 		libxslt.so:textproc/libxslt
 
 USES=		autoreconf compiler:c++11-lang desktop-file-utils dos2unix \
 		gettext-tools gmake gnome iconv libtool localbase pkgconfig
-USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk30 intltool pango
+USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk30 intltool libxml2 pango
 USE_WX=		3.0 # fails to build with 3.2
 WX_COMPS=	wx
 WX_CONF_ARGS=	absolute
diff --git a/filesystems/s3fs/Makefile b/filesystems/s3fs/Makefile
index 20cdfb4ae528..b72ce0134ef8 100644
--- a/filesystems/s3fs/Makefile
+++ b/filesystems/s3fs/Makefile
@@ -12,10 +12,10 @@ WWW=		https://github.com/s3fs-fuse/s3fs-fuse
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libcurl.so:ftp/curl \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libcurl.so:ftp/curl
 
-USES=		autoreconf fuse pkgconfig ssl
+USES=		autoreconf fuse gnome pkgconfig ssl
+USE_GNOME=	libxml2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	s3fs-fuse
diff --git a/finance/odoo/Makefile b/finance/odoo/Makefile
index 610b4ead4a06..fbeed2b99d68 100644
--- a/finance/odoo/Makefile
+++ b/finance/odoo/Makefile
@@ -13,8 +13,7 @@ LICENSE=	LGPL3
 USE_GITHUB=	yes
 GH_TAGNAME=	c18b9f44be3d666ca1e082807a2fdfc7ef2049d2
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libxslt.so:textproc/libxslt \
+LIB_DEPENDS=	libxslt.so:textproc/libxslt \
 		libevent.so:devel/libevent \
 		libsasl2.so:security/cyrus-sasl2
 RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
@@ -70,7 +69,8 @@ RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
 		${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR}
 
-USES=		cpe ldap python pgsql shebangfix
+USES=		cpe gnome ldap python pgsql shebangfix
+USE_GNOME=	libxml2
 USE_PYTHON=	cryptography distutils
 
 SHEBANG_LANG=	python
diff --git a/finance/odoo14/Makefile b/finance/odoo14/Makefile
index 9019766a4770..76ff0168969c 100644
--- a/finance/odoo14/Makefile
+++ b/finance/odoo14/Makefile
@@ -14,8 +14,7 @@ LICENSE=	LGPL3
 USE_GITHUB=	yes
 GH_TAGNAME=	c976a0920dd8d7910c7635cc1e2bbff47edcafa9
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libxslt.so:textproc/libxslt \
+LIB_DEPENDS=	libxslt.so:textproc/libxslt \
 		libevent.so:devel/libevent \
 		libsasl2.so:security/cyrus-sasl2
 RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
@@ -66,7 +65,8 @@ RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
 		${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR}
 
-USES=		cpe ldap python pgsql shebangfix
+USES=		cpe gnome ldap python pgsql shebangfix
+USE_GNOME=	libxml2
 USE_PYTHON=	distutils
 
 SHEBANG_LANG=	python
diff --git a/finance/odoo15/Makefile b/finance/odoo15/Makefile
index 64735edc1af6..d89ee6e2d36c 100644
--- a/finance/odoo15/Makefile
+++ b/finance/odoo15/Makefile
@@ -14,8 +14,7 @@ LICENSE=	LGPL3
 USE_GITHUB=	yes
 GH_TAGNAME=	02b4e98ebb2c45d9a4af10fe1bc732f048708f85
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libxslt.so:textproc/libxslt \
+LIB_DEPENDS=	libxslt.so:textproc/libxslt \
 		libevent.so:devel/libevent \
 		libsasl2.so:security/cyrus-sasl2
 RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
@@ -66,7 +65,8 @@ RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
 		${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR}
 
-USES=		cpe ldap python pgsql shebangfix
+USES=		cpe gnome ldap python pgsql shebangfix
+USE_GNOME=	libxml2
 USE_PYTHON=	distutils
 
 SHEBANG_LANG=	python
diff --git a/finance/odoo16/Makefile b/finance/odoo16/Makefile
index 4d0fa70e5edc..dc887422cf04 100644
--- a/finance/odoo16/Makefile
+++ b/finance/odoo16/Makefile
@@ -14,8 +14,7 @@ LICENSE=	LGPL3
 USE_GITHUB=	yes
 GH_TAGNAME=	ecb1f0268adde613bbcb0aa122c0c53847a600a9
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libxslt.so:textproc/libxslt \
+LIB_DEPENDS=	libxslt.so:textproc/libxslt \
 		libevent.so:devel/libevent \
 		libsasl2.so:security/cyrus-sasl2
 RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
@@ -68,7 +67,8 @@ RUN_DEPENDS=	wkhtmltopdf>0:converters/wkhtmltopdf \
 		${PYTHON_PKGNAMEPREFIX}rjsmin>0:archivers/py-rjsmin@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cryptography-legacy>0:security/py-cryptography-legacy@${PY_FLAVOR}
 
-USES=		cpe ldap python pgsql shebangfix
+USES=		cpe gnome ldap python pgsql shebangfix
+USE_GNOME=	libxml2
 USE_PYTHON=	distutils
 
 SHEBANG_LANG=	python
diff --git a/graphics/flam3/Makefile b/graphics/flam3/Makefile
index 352e189f1dba..7b5e7f49be9a 100644
--- a/graphics/flam3/Makefile
+++ b/graphics/flam3/Makefile
@@ -12,10 +12,10 @@ WWW=		http://flam3.com/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libpng.so:graphics/png \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libpng.so:graphics/png
 
-USES=		gmake jpeg libtool localbase pathfix
+USES=		gmake gnome jpeg libtool localbase pathfix
+USE_GNOME=	libxml2
 USE_GITHUB=	yes
 GH_ACCOUNT=	scottdraves
 GNU_CONFIGURE=	yes
diff --git a/graphics/shotwell/Makefile b/graphics/shotwell/Makefile
index 5ea94b63664d..87251963b81a 100644
--- a/graphics/shotwell/Makefile
+++ b/graphics/shotwell/Makefile
@@ -25,13 +25,12 @@ LIB_DEPENDS=	libportal.so:deskutils/libportal \
 		libraw.so:graphics/libraw \
 		libwebp.so:graphics/webp \
 		libgcr-ui-3.so:security/gcr3 \
-		libsecret-1.so:security/libsecret \
-		libxml2.so:textproc/libxml2
+		libsecret-1.so:security/libsecret
 
 USES=		compiler:c++11-lib cpe desktop-file-utils gettext gnome gstreamer meson \
 		ninja pkgconfig python:build sqlite tar:xz vala:build xorg
 CPE_VENDOR=	gnome
-USE_GNOME=	cairo gtk30
+USE_GNOME=	cairo gtk30 libxml2
 USE_LDCONFIG=	yes
 USE_XORG=	x11
 
diff --git a/graphics/tinyows/Makefile b/graphics/tinyows/Makefile
index a4f223c3100c..25eac83f3955 100644
--- a/graphics/tinyows/Makefile
+++ b/graphics/tinyows/Makefile
@@ -12,10 +12,10 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${LOCALBASE}/share/postgresql/extension/postgis.control:databases/postgis31
-LIB_DEPENDS=	libxml2.so:textproc/libxml2
 RUN_DEPENDS=	${LOCALBASE}/share/postgresql/extension/postgis.control:databases/postgis31
 
-USES=		autoreconf pgsql
+USES=		autoreconf gnome pgsql
+USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes
 
diff --git a/lang/crystal/Makefile b/lang/crystal/Makefile
index 174e4f0475b9..55001b2642e0 100644
--- a/lang/crystal/Makefile
+++ b/lang/crystal/Makefile
@@ -26,11 +26,11 @@ LIB_DEPENDS=	libLLVM-${LLVM_VERSION}.so:devel/llvm${LLVM_VERSION} \
 		libgmp.so:math/gmp \
 		libpcre.so:devel/pcre \
 		libpcre2-8.so:devel/pcre2 \
-		libxml2.so:textproc/libxml2 \
 		libyaml.so:textproc/libyaml
 RUN_DEPENDS=	pkg-config:devel/pkgconf
 
-USES=		compiler gmake pkgconfig ssl
+USES=		compiler gmake gnome pkgconfig ssl
+USE_GNOME=	libxml2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	crystal-lang
diff --git a/lang/gnu-cobol/Makefile b/lang/gnu-cobol/Makefile
index 6adde92b82d6..6277b81e0fa8 100644
--- a/lang/gnu-cobol/Makefile
+++ b/lang/gnu-cobol/Makefile
@@ -12,10 +12,10 @@ LICENSE=	GPLv3 LGPL3
 LICENSE_COMB=	multi
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
-		libcjson.so:devel/libcjson \
-		libxml2.so:textproc/libxml2
+		libcjson.so:devel/libcjson
 
-USES=		bdb gmake libtool ncurses tar:xz
+USES=		bdb gmake gnome libtool ncurses tar:xz
+USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
diff --git a/math/pdal/Makefile b/math/pdal/Makefile
index fc2e429f573e..c14df6be3b46 100644
--- a/math/pdal/Makefile
+++ b/math/pdal/Makefile
@@ -19,7 +19,6 @@ LIB_DEPENDS=	libgdal.so:graphics/gdal \
 		libboost_thread.so:devel/boost-libs \
 		libcurl.so:ftp/curl \
 		libgeotiff.so:graphics/libgeotiff \
-		libxml2.so:textproc/libxml2 \
 		liblaszip.so:archivers/laszip \
 		libzstd.so:archivers/zstd \
 		${LIB_DEPENDS_${ARCH}}
@@ -30,7 +29,8 @@ LIB_DEPENDS_i386=	libunwind.so:devel/libunwind
 LIB_DEPENDS_powerpc64=	libunwind.so:devel/libunwind
 LIB_DEPENDS_powerpc64le=libunwind.so:devel/libunwind
 
-USES=		cmake compiler:c++11-lib pathfix pkgconfig ssl tar:bz2
+USES=		cmake compiler:c++11-lib gnome pathfix pkgconfig ssl tar:bz2
+USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME:tu}-${DISTVERSION}-src
diff --git a/math/scilab/Makefile b/math/scilab/Makefile
index e0b85e20534b..dd46fedd7898 100644
--- a/math/scilab/Makefile
+++ b/math/scilab/Makefile
@@ -14,8 +14,7 @@ LICENSE_COMB=	dual
 LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
 LICENSE_FILE_BSD3CLAUSE=	${WRKSRC}/COPYING-BSD
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
-		libpcre.so:devel/pcre \
+LIB_DEPENDS=	libpcre.so:devel/pcre \
 		libcurl.so:ftp/curl \
 		libhdf5.so:science/hdf5 \
 		libarpack.so:math/arpack-ng \
@@ -28,6 +27,7 @@ RUN_DEPENDS=	xdg-open:devel/xdg-utils
 USES=		compiler:c++17-lang cpe desktop-file-utils eigen:3,build \
 		fortran gettext gmake gnome iconv:wchar_t libtool \
 		localbase ncurses pathfix pkgconfig shared-mime-info
+USE_GNOME=	libxml2
 USE_LOCALE=	en_US.UTF-8
 
 GNU_CONFIGURE=	yes
diff --git a/misc/hotkeys/Makefile b/misc/hotkeys/Makefile
index a7fe76d94f97..727344735357 100644
--- a/misc/hotkeys/Makefile
+++ b/misc/hotkeys/Makefile
@@ -14,11 +14,10 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz \
 		libfreetype.so:print/freetype2 \
-		libxml2.so:textproc/libxml2 \
 		libfontconfig.so:x11-fonts/fontconfig
 
-USES=		bdb gettext-runtime gmake xorg
-USE_GNOME=	glib20 pango
+USES=		bdb gettext-runtime gmake gnome xorg
+USE_GNOME=	glib20 libxml2 pango
 USE_XORG=	x11 xext xft xinerama xkbfile xmu
 
 GNU_CONFIGURE=	yes
diff --git a/misc/liblxi/Makefile b/misc/liblxi/Makefile
index 854e24c01817..e85a66d9617b 100644
--- a/misc/liblxi/Makefile
+++ b/misc/liblxi/Makefile
@@ -11,10 +11,10 @@ WWW=		https://lxi-tools.github.io
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libavahi-client.so:net/avahi-app \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libavahi-client.so:net/avahi-app
 
-USES=		meson pkgconfig
+USES=		gnome meson pkgconfig
+USE_GNOME=	libxml2
 USE_GITHUB=	yes
 GH_ACCOUNT=	lxi-tools
 USE_LDCONFIG=	yes
diff --git a/misc/libsupertone/Makefile b/misc/libsupertone/Makefile
index 510f79bb49be..fbf194adfb7b 100644
--- a/misc/libsupertone/Makefile
+++ b/misc/libsupertone/Makefile
@@ -12,10 +12,10 @@ LICENSE=	LGPL21
 
 LIB_DEPENDS=	libaudiofile.so:audio/libaudiofile \
 		libspandsp.so:comms/spandsp \
-		libtiff.so:graphics/tiff \
-		libxml2.so:textproc/libxml2
+		libtiff.so:graphics/tiff
 
-USES=		tar:tgz libtool
+USES=		gnome tar:tgz libtool
+USE_GNOME=	libxml2
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
diff --git a/multimedia/handbrake/Makefile b/multimedia/handbrake/Makefile
index 44e2ff08bba3..30d42bb84bda 100644
--- a/multimedia/handbrake/Makefile
+++ b/multimedia/handbrake/Makefile
@@ -29,7 +29,6 @@ LIB_DEPENDS=	libdbus-1.so:devel/dbus \
 		libfreetype.so:print/freetype2 \
 		libfribidi.so:converters/fribidi \
 		libturbojpeg.so:graphics/libjpeg-turbo \
-		libxml2.so:textproc/libxml2 \
 		libass.so:multimedia/libass \
 		libspeex.so:audio/speex \
 		libogg.so:audio/libogg \
@@ -43,8 +42,9 @@ LIB_DEPENDS=	libdbus-1.so:devel/dbus \
 		libopus.so:audio/opus \
 		libjansson.so:devel/jansson
 
-USES=		autoreconf:build compiler:c11 gmake iconv libtool:build \
+USES=		autoreconf:build compiler:c11 gmake gnome iconv libtool:build \
 		localbase:ldflags ninja:build pkgconfig python:build
+USE_GNOME=	libxml2
 
 CONTRIB_FILES=	SVT-AV1-v1.7.0.tar.gz \
 		fdk-aac-2.0.2.tar.gz \
diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile
index 7cfa1d2ea26d..4b362cf4b84c 100644
--- a/multimedia/mythtv/Makefile
+++ b/multimedia/mythtv/Makefile
@@ -27,7 +27,6 @@ LIB_DEPENDS=	liblzo2.so:archivers/lzo2 \
 		libfftw3_threads.so:math/fftw3 \
 		libfftw3f.so:math/fftw3-float \
 		libfreetype.so:print/freetype2 \
-		libxml2.so:textproc/libxml2 \
 		libdav1d.so:multimedia/dav1d \
 		libaom.so:multimedia/aom \
 		libdrm.so:graphics/libdrm \
@@ -42,12 +41,13 @@ LIB_DEPENDS=	liblzo2.so:archivers/lzo2 \
 BUILD_DEPENDS=	yasm:devel/yasm \
 		${LOCALBASE}/include/linux/input.h:devel/evdev-proto
 
-USES=		compiler:c++17-lang gmake gl iconv libtool pkgconfig pathfix \
+USES=		compiler:c++17-lang gmake gl gnome iconv libtool pkgconfig pathfix \
 		perl5 python qmake:no_env qt:5 shebangfix ssl xorg
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	MythTV
 USE_GL=		gl
+USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 USE_QT=		buildtools:build core dbus gui imageformats:run \
 		linguist:build multimedia network opengl qmake:build script \
diff --git a/multimedia/vcdimager/Makefile b/multimedia/vcdimager/Makefile
index b040342f707b..7f5ca4a0b3a0 100644
--- a/multimedia/vcdimager/Makefile
+++ b/multimedia/vcdimager/Makefile
@@ -12,10 +12,10 @@ LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libpopt.so:devel/popt \
-		libxml2.so:textproc/libxml2 \
 		libcdio.so:sysutils/libcdio
 
-USES=		gmake libtool localbase makeinfo pathfix pkgconfig
+USES=		gmake gnome libtool localbase makeinfo pathfix pkgconfig
+USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
diff --git a/net-mgmt/libfds/Makefile b/net-mgmt/libfds/Makefile
index 792e16fdb8b5..ba2e06a5fcaa 100644
--- a/net-mgmt/libfds/Makefile
+++ b/net-mgmt/libfds/Makefile
@@ -10,11 +10,11 @@ WWW=		https://github.com/CESNET/libfds
 LICENSE=		GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	 libxml2.so:textproc/libxml2 \
-			 liblz4.so:archivers/liblz4 \
-			 libzstd.so:archivers/zstd
+LIB_DEPENDS=	 liblz4.so:archivers/liblz4 \
+		 libzstd.so:archivers/zstd
 
-USES=		cmake localbase:ldflags pkgconfig
+USES=		cmake gnome localbase:ldflags pkgconfig
+USE_GNOME=	libxml2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	CESNET
diff --git a/net/fort/Makefile b/net/fort/Makefile
index 8acdd8d98300..3527116e5da4 100644
--- a/net/fort/Makefile
+++ b/net/fort/Makefile
@@ -9,11 +9,12 @@ WWW=		https://fortproject.net/en/validator
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libcurl.so:ftp/curl libjansson.so:devel/jansson \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libcurl.so:ftp/curl \
+		libjansson.so:devel/jansson
 RUN_DEPENDS=	${LOCALBASE}/bin/rsync:net/rsync
 
-USES=		autoreconf compiler:c11 pkgconfig ssl
+USES=		autoreconf compiler:c11 gnome pkgconfig ssl
+USE_GNOME=	libxml2
 USE_GITHUB=	yes
 USE_RC_SUBR=	fort
 
diff --git a/net/libgrss/Makefile b/net/libgrss/Makefile
index d9f0fe9261af..9094199fc89d 100644
--- a/net/libgrss/Makefile
+++ b/net/libgrss/Makefile
@@ -12,12 +12,11 @@ WWW=		https://www.gnome.org/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup
 
 USES=		cpe gettext gmake gnome libtool localbase pathfix pkgconfig tar:xz
 CPE_VENDOR=	gnome
-USE_GNOME=	glib20 intlhack introspection:build
+USE_GNOME=	glib20 intlhack introspection:build libxml2
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-gtk-doc
diff --git a/news/nzbget/Makefile b/news/nzbget/Makefile
index 84016f5469f7..eb8e1f893d1b 100644
--- a/news/nzbget/Makefile
+++ b/news/nzbget/Makefile
@@ -10,8 +10,7 @@ WWW=		https://nzbget.net/
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	libboost_json.so:devel/boost-libs \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libboost_json.so:devel/boost-libs
 RUN_DEPENDS=	7-zip>0:archivers/7-zip \
 		unrar>0:archivers/unrar
 
@@ -19,7 +18,8 @@ RUN_DEPENDS=	7-zip>0:archivers/7-zip \
 # See https://github.com/nzbgetcom/nzbget/blob/v24.4/cmake/par2-turbo.cmake for the version to pull
 PAR2CMDLINE_TURBO_VERSION=1.1.1-nzbget
 
-USES=		cmake:testing ssl
+USES=		cmake:testing gnome ssl
+USE_GNOME=	libxml2
 USE_GITHUB=	yes
 GH_ACCOUNT=	nzbgetcom
 GH_PROJECT=	nzbget par2cmdline-turbo:par2
diff --git a/science/abinit/Makefile b/science/abinit/Makefile
index 1d387262d9ee..c3c3e81d36e8 100644
--- a/science/abinit/Makefile
+++ b/science/abinit/Makefile
@@ -21,7 +21,6 @@ LIB_DEPENDS=	libelpa.so:math/elpa		\
 		libxc.so:science/libxc		\
 		libfftw3.so:math/fftw3		\
 		libhdf5.so:science/hdf5		\
-		libxml2.so:textproc/libxml2	\
 		libnetcdf.so:science/netcdf	\
 		libxmlf90.so:textproc/xmlf90	\
 		libwannier.so:science/wannier90	\
diff --git a/science/afni/Makefile b/science/afni/Makefile
index 33be8851ee5b..2a056997e47a 100644
--- a/science/afni/Makefile
+++ b/science/afni/Makefile
@@ -28,8 +28,7 @@ LIB_DEPENDS=	libexpat.so:textproc/expat2 \
 		libnetcdff.so:science/netcdf-fortran \
 		libnetpbm.so:graphics/netpbm \
 		libpcre2-8.so:devel/pcre2 \
-		libpng16.so:graphics/png \
-		libxml2.so:textproc/libxml2
+		libpng16.so:graphics/png
 
 # Remote execution of suma.  Also needed for glxinfo.
 RUN_DEPENDS=	endian:sysutils/endian \
@@ -42,7 +41,7 @@ USES=		gettext gl gmake gnome iconv jpeg:run motif readline
 USES+=		perl5 python shebangfix tar:xz xorg
 USE_GITHUB=	yes
 USE_GL=		gl glu
-USE_GNOME=	glib20
+USE_GNOME=	glib20 libxml2
 USE_XORG= 	ice sm x11 xau xcb xdmcp xext xft xi xmu xrender xt
 
 SHEBANG_FILES=	scripts_install/* \
diff --git a/security/kc/Makefile b/security/kc/Makefile
index a9c101e171c2..6d034b44451e 100644
--- a/security/kc/Makefile
+++ b/security/kc/Makefile
@@ -10,10 +10,11 @@ WWW=		https://github.com/levaidaniel/kc
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2
 TEST_DEPENDS=	bash:shells/bash
 
-USES=		ncurses pkgconfig ssl uidfix
+USES=		gnome ncurses pkgconfig ssl uidfix
+USE_GNOME=	libxml2
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	levaidaniel
 
diff --git a/security/openconnect/Makefile b/security/openconnect/Makefile
index b02d8502b1d3..dde1ab75f49e 100644
--- a/security/openconnect/Makefile
+++ b/security/openconnect/Makefile
@@ -12,7 +12,6 @@ WWW=		https://www.infradead.org/openconnect/
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING.LGPL
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2
 RUN_DEPENDS=	vpnc-script:sysutils/vpnc-scripts
 
 GNU_CONFIGURE=	yes
@@ -21,7 +20,7 @@ CONFIGURE_ARGS=	--disable-nls --with-vpnc-script=${LOCALBASE}/sbin/vpnc-script \
 		--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
 		--without-openssl-version-check --without-libpcsclite \
 		--without-libpskc
-USES=		cpe gmake iconv libtool localbase pkgconfig python:build ssl \
+USES=		cpe gmake gnome iconv libtool localbase pkgconfig python:build ssl \
 		shebangfix
 CPE_VENDOR=	infradead
 INSTALL_TARGET=	install-strip
@@ -31,6 +30,7 @@ SH_OLD_CMD+=	/system/bin/sh
 SHEBANG_FILES=	trojans/csd-post.sh trojans/csd-wrapper.sh \
 		trojans/tncc-emulate.py \
 		trojans/hipreport-android.sh trojans/tncc-wrapper.py
+USE_GNOME=	libxml2
 PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS PROXY GNUTLS GSSAPI LZ4 P11 STOKEN
diff --git a/sysutils/xen-tools/Makefile b/sysutils/xen-tools/Makefile
index 6284145eb025..5c4a15aafb60 100644
--- a/sysutils/xen-tools/Makefile
+++ b/sysutils/xen-tools/Makefile
@@ -23,8 +23,7 @@ LICENSE_COMB=	multi
 LIB_DEPENDS=	libyajl.so:devel/yajl \
 		liblzo2.so:archivers/lzo2 \
 		libpixman-1.so:x11/pixman \
-		libargp.so:devel/argp-standalone \
-		libxml2.so:textproc/libxml2
+		libargp.so:devel/argp-standalone
 BUILD_DEPENDS=	seabios>0:misc/seabios \
 		${LOCALBASE}/share/edk2-xen/XEN_X64_EFI.fd:sysutils/edk2@xen_x64 \
 		bash>0:shells/bash
@@ -45,7 +44,7 @@ ONLY_FOR_ARCHS_REASON=	not yet ported to anything other than amd64
 
 USES=		cpe gettext gmake gnome libtool localbase:ldflags perl5 \
 		pkgconfig python shebangfix iconv bison ninja:build
-USE_GNOME=	glib20
+USE_GNOME=	glib20 libxml2
 USE_LDCONFIG=	yes
 USE_PYTHON=	py3kplist
 HAS_CONFIGURE=	yes
diff --git a/textproc/lttoolbox/Makefile b/textproc/lttoolbox/Makefile
index ae406d79d937..c97b720746fd 100644
--- a/textproc/lttoolbox/Makefile
+++ b/textproc/lttoolbox/Makefile
@@ -12,10 +12,11 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	utf8cpp>=4.0.3:devel/utf8cpp
-LIB_DEPENDS=	libicuio.so:devel/icu \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libicuio.so:devel/icu
 
-USES=		autoreconf compiler:c++14-lang libtool pathfix pkgconfig tar:bz2
+USES=		autoreconf compiler:c++14-lang gnome libtool pathfix pkgconfig \
+		tar:bz2
+USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
diff --git a/www/pecl-solr/Makefile b/www/pecl-solr/Makefile
index 83c351ff0997..90899c8c8e97 100644
--- a/www/pecl-solr/Makefile
+++ b/www/pecl-solr/Makefile
@@ -9,10 +9,10 @@ WWW=		https://pecl.php.net/package/solr
 LICENSE=	PHP301
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libcurl.so:ftp/curl \
-		libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libcurl.so:ftp/curl
 
-USES=		php:build,pecl pkgconfig
+USES=		gnome php:build,pecl pkgconfig
+USE_GNOME=	libxml2
 IGNORE_WITH_PHP=	84
 
 CONFIGURE_ARGS=	LIBXML_CFLAGS=-I${LOCALBASE}/include/libxml2 \
diff --git a/www/trafficserver/Makefile b/www/trafficserver/Makefile
index acbc80151d68..6bc3995b0724 100644
--- a/www/trafficserver/Makefile
+++ b/www/trafficserver/Makefile
@@ -14,13 +14,13 @@ ONLY_FOR_ARCHS=	amd64 powerpc64 powerpc64le
 LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libhwloc.so:devel/hwloc2 \
 		libpcre.so:devel/pcre \
-		libxml2.so:textproc/libxml2 \
 		libbrotlienc.so:archivers/brotli
 
-USES=		compiler:c++17-lang cpe gmake libtool localbase luajit \
-		ncurses pathfix perl5 pkgconfig sqlite ssl tar:bzip2
*** 8 LINES SKIPPED ***