git: 48060e03b677 - main - devel/py-gobject3: use USE_GNOME=pygobject3 helper

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 16:59:12 UTC
The branch main has been updated by vishwin:

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

commit 48060e03b677c1060149c64e8d90b93a3bd7bb2b
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2024-11-19 16:55:04 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2024-11-19 16:59:07 +0000

    devel/py-gobject3: use USE_GNOME=pygobject3 helper
    
    The helper is equivalent to the previous explicit dependency
    declaration so no functional or metadata changes.
    
    With hat: gnome
    PR: 273722
---
 accessibility/gammastep/Makefile         | 6 +++---
 accessibility/redshift/Makefile          | 4 ++--
 astro/gpsd/Makefile                      | 8 +++-----
 audio/py-audioread/Makefile              | 5 +++--
 comms/gnuradio/Makefile                  | 2 +-
 devel/py-pydbus/Makefile                 | 5 ++---
 games/jumpnbump/Makefile                 | 4 ++--
 games/py-pychess/Makefile                | 3 +--
 graphics/rapid-photo-downloader/Makefile | 4 ++--
 misc/alpaca/Makefile                     | 3 +--
 multimedia/py-mat2/Makefile              | 4 ++--
 multimedia/py-tartube/Makefile           | 4 ++--
 net-p2p/py-nicotine-plus/Makefile        | 3 +--
 news/sabnzbd/Makefile                    | 3 ++-
 print/pdfarranger/Makefile               | 3 +--
 science/v_sim/Makefile                   | 3 +--
 sysutils/devedeng/Makefile               | 3 +--
 x11-themes/wpgtk/Makefile                | 6 ++----
 x11/py-waypaper/Makefile                 | 6 +++---
 19 files changed, 35 insertions(+), 44 deletions(-)

diff --git a/accessibility/gammastep/Makefile b/accessibility/gammastep/Makefile
index 5e16f7c1da96..92f10294bc75 100644
--- a/accessibility/gammastep/Makefile
+++ b/accessibility/gammastep/Makefile
@@ -33,12 +33,12 @@ WAYLAND_DESC=		Support Wayland (wlroots) for changing colors
 
 GEO_BUILD_DEPENDS=	geoclue>=0:net/geoclue
 GEO_RUN_DEPENDS=	geoclue>=0:net/geoclue
-GEO_USE=		GNOME=glib20
+GEO_USE=		gnome=glib20
 GEO_CONFIGURE_ENABLE=	geoclue2
 
-GUI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
-			${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}
+GUI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}
 GUI_USES=		python
+GUI_USE=		gnome=pygobject3:run
 GUI_CONFIGURE_ENABLE=	gui
 
 NLS_USES=		gettext-runtime iconv
diff --git a/accessibility/redshift/Makefile b/accessibility/redshift/Makefile
index 14d6f3ea10a6..73d208192415 100644
--- a/accessibility/redshift/Makefile
+++ b/accessibility/redshift/Makefile
@@ -57,9 +57,9 @@ WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
 WAYLAND_CONFIGURE_ENABLE=	wayland
 
 GUI_USES=		python
+GUI_USE=		gnome=pygobject3:run
 GUI_CONFIGURE_ENABLE=	gui
-GUI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
-			${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}
+GUI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}
 
 GEO_CONFIGURE_ON=	--enable-geoclue2
 GEO_CONFIGURE_OFF=	--disable-geoclue2
diff --git a/astro/gpsd/Makefile b/astro/gpsd/Makefile
index baa6bc079526..be5742574cf5 100644
--- a/astro/gpsd/Makefile
+++ b/astro/gpsd/Makefile
@@ -146,12 +146,10 @@ RECONFIGURE_MAKE_ARGS_OFF=	reconfigure=no
 CPPBIND_MAKE_ARGS_OFF=		libgpsmm=no
 PYSERIAL_BUILD_DEPENDS=		${PYTHON_PKGNAMEPREFIX}pyserial>=0:comms/py-pyserial@${PY_FLAVOR}
 PYSERIAL_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}pyserial>=0:comms/py-pyserial@${PY_FLAVOR}
-X11_BUILD_DEPENDS=		${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} \
-				${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR}
-X11_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} \
-				${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR}
+X11_BUILD_DEPENDS=		${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR}
+X11_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR}
 X11_USES=			gnome
-X11_USE=			GNOME=gtk30
+X11_USE=			gnome=gtk30 pygobject3
 X11_MAKE_ARGS_OFF=		xgps=no
 
 # Build control
diff --git a/audio/py-audioread/Makefile b/audio/py-audioread/Makefile
index 74675b1f1022..993bb6c6c751 100644
--- a/audio/py-audioread/Makefile
+++ b/audio/py-audioread/Makefile
@@ -26,8 +26,9 @@ GSTREAMER_DESC=	Use gstreamer as backend
 PYMAD_DESC=	Use pymad as backend
 
 FFMPEG_RUN_DEPENDS=	ffmpeg:multimedia/ffmpeg
-GSTREAMER_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR} \
-			${PYTHON_PKGNAMEPREFIX}gstreamer1>=1.0:multimedia/py-gstreamer1@${PY_FLAVOR}
+GSTREAMER_USES=		gnome
+GSTREAMER_USE=		gnome=pygobject3:run
+GSTREAMER_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gstreamer1>=1.0:multimedia/py-gstreamer1@${PY_FLAVOR}
 PYMAD_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pymad>=0:audio/py-pymad@${PY_FLAVOR}
 
 .include <bsd.port.mk>
diff --git a/comms/gnuradio/Makefile b/comms/gnuradio/Makefile
index c4f176fa4e56..88962ae1f84e 100644
--- a/comms/gnuradio/Makefile
+++ b/comms/gnuradio/Makefile
@@ -17,7 +17,6 @@ BUILD_DEPENDS=	volk>0:devel/volk \
 		${PYNUMPY} \
 		${PYTHON_SITELIBDIR}/mako/__init__.py:textproc/py-mako@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyyaml>=3.11:devel/py-pyyaml@${PY_FLAVOR} \
-		${PYTHON_SITELIBDIR}/gi/__init__.py:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_SITELIBDIR}/cairo/__init__.py:graphics/py-cairo@${PY_FLAVOR} \
 		${PYTHON_SITELIBDIR}/six.py:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_SITELIBDIR}/click/__init__.py:devel/py-click@${PY_FLAVOR} \
@@ -69,6 +68,7 @@ CMAKE_ARGS+=	-DCMAKE_INSTALL_RPATH:STRING="${LOCALBASE}/lib/gcc${_GCC_VER}" \
 #CMAKE_ARGS+=	--debug-output --trace
 USE_CXXSTD=	c++11
 USE_GITHUB=	yes
+USE_GNOME=	pygobject3
 USE_PYQT=	pyqt5
 USE_WX=		3.2
 USE_QT=		buildtools core gui xml qmake widgets
diff --git a/devel/py-pydbus/Makefile b/devel/py-pydbus/Makefile
index 34c6a4723ab5..2a6de77a0aeb 100644
--- a/devel/py-pydbus/Makefile
+++ b/devel/py-pydbus/Makefile
@@ -11,9 +11,8 @@ WWW=		https://github.com/LEW21/pydbus/
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=3.42.2:devel/py-gobject3@${PY_FLAVOR}
-
-USES=		python
+USES=		gnome python
+USE_GNOME=	pygobject3:run
 USE_PYTHON=	autoplist distutils
 
 .include <bsd.port.mk>
diff --git a/games/jumpnbump/Makefile b/games/jumpnbump/Makefile
index b900f98a17df..fb35eaa5f281 100644
--- a/games/jumpnbump/Makefile
+++ b/games/jumpnbump/Makefile
@@ -24,8 +24,8 @@ OPTIONS_DEFAULT=LAUNCHER
 OPTIONS_SUB=	yes
 
 LAUNCHER_DESC=		Install pygtk launcher
-LAUNCHER_USES=		python:run
-LAUNCHER_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR}
+LAUNCHER_USES=		gnome python:run
+LAUNCHER_USE=		gnome=pygobject3:run
 LAUNCHER_ALL_TARGET=	jnbmenu
 LAUNCHER_INSTALL_TARGET=jnbmenuinstall
 
diff --git a/games/py-pychess/Makefile b/games/py-pychess/Makefile
index 5e3561527d8c..9d2c77476c75 100644
--- a/games/py-pychess/Makefile
+++ b/games/py-pychess/Makefile
@@ -13,7 +13,6 @@ LICENSE=	GPLv3
 COMMON_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sqlalchemy20>0:databases/py-sqlalchemy20@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>0.:sysutils/py-psutil@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>2:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}websockets>11.:devel/py-websockets@${PY_FLAVOR}
 RUN_DEPENDS=	${COMMON_DEPENDS}
 BUILD_DEPENDS=	${COMMON_DEPENDS}
@@ -24,7 +23,7 @@ USES=		desktop-file-utils display:configure gettext gnome gstreamer python
 _USES_$t+=	${_USES_configure}
 .endfor
 USE_PYTHON=	distutils autoplist
-USE_GNOME=	gtksourceview3:run glib20 gtk30 librsvg2 introspection
+USE_GNOME=	gtksourceview3:run glib20 gtk30 librsvg2 introspection pygobject3
 PYDISTUTILS_INSTALLNOSINGLE=	nope
 
 NO_ARCH=	yes
diff --git a/graphics/rapid-photo-downloader/Makefile b/graphics/rapid-photo-downloader/Makefile
index d84f634acc93..2bed4cf78c3a 100644
--- a/graphics/rapid-photo-downloader/Makefile
+++ b/graphics/rapid-photo-downloader/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}colour>0:graphics/py-colour@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-dateutil>2.2:devel/py-python-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}easygui>=0:x11-toolkits/py-easygui@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}gphoto2>=1.4.0:graphics/py-gphoto2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}gstreamer1>=1.0:multimedia/py-gstreamer1@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}notify2>0:devel/py-notify2@${PY_FLAVOR} \
@@ -34,7 +33,8 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
 		exiftool:graphics/p5-Image-ExifTool
 
-USES=		desktop-file-utils gettext pyqt:5 python qt:5
+USES=		desktop-file-utils gettext gnome pyqt:5 python qt:5
+USE_GNOME=	pygobject3:run
 USE_PYTHON=	autoplist distutils noflavors
 USE_QT=		imageformats:run
 USE_PYQT=	pyqt5
diff --git a/misc/alpaca/Makefile b/misc/alpaca/Makefile
index 8e3ff6f1b0f1..10cac0930654 100644
--- a/misc/alpaca/Makefile
+++ b/misc/alpaca/Makefile
@@ -12,7 +12,6 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libappstream.so:devel/appstream \
 		libgtksourceview-5.so:x11-toolkits/gtksourceview5
 RUN_DEPENDS=	${PY_PILLOW} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>=3.42.2:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}html2text>=2.2.3:textproc/py-html2text@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pypdf>=4.3.1:print/py-pypdf@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytube>=15.0.0:multimedia/py-pytube@${PY_FLAVOR} \
@@ -25,7 +24,7 @@ USES=		desktop-file-utils gettext-runtime gettext-tools gnome meson \
 USE_GITHUB=	yes
 GH_ACCOUNT=	Jeffser
 GH_PROJECT=	Alpaca
-USE_GNOME=	vte3
+USE_GNOME=	pygobject3:run vte3
 
 post-patch:
 	@${REINPLACE_CMD} \
diff --git a/multimedia/py-mat2/Makefile b/multimedia/py-mat2/Makefile
index efb6185d1f1b..fc9c3ce715f8 100644
--- a/multimedia/py-mat2/Makefile
+++ b/multimedia/py-mat2/Makefile
@@ -12,13 +12,13 @@ WWW=		https://0xacab.org/jvoisin/mat2
 LICENSE=	LGPL3+
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \
 		gdk-pixbuf2>0:graphics/gdk-pixbuf2 \
 		librsvg2-rust>0:graphics/librsvg2-rust \
 		poppler-glib>0:graphics/poppler-glib
 
-USES=		python
+USES=		gnome python
+USE_GNOME=	pygobject3:run
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
diff --git a/multimedia/py-tartube/Makefile b/multimedia/py-tartube/Makefile
index a731c1fc708c..c6d6405b3c23 100644
--- a/multimedia/py-tartube/Makefile
+++ b/multimedia/py-tartube/Makefile
@@ -12,7 +12,6 @@ LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}feedparser>=6.0.8:textproc/py-feedparser@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>=3.42.2:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>=3.7.1:math/py-matplotlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}moviepy>=1.0.3:multimedia/py-moviepy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}playsound>=1.3.0:audio/py-playsound@${PY_FLAVOR} \
@@ -23,7 +22,8 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}feedparser>=6.0.8:textproc/py-feedparser@${P
 		ffmpeg:multimedia/ffmpeg \
 		yt-dlp:www/yt-dlp
 
-USES=		python
+USES=		gnome python
+USE_GNOME=	pygobject3:run
 USE_PYTHON=	autoplist distutils
 
 MAKE_ENV=	TARTUBE_PKG_STRICT=1
diff --git a/net-p2p/py-nicotine-plus/Makefile b/net-p2p/py-nicotine-plus/Makefile
index 7279fda6bc03..0847efd814be 100644
--- a/net-p2p/py-nicotine-plus/Makefile
+++ b/net-p2p/py-nicotine-plus/Makefile
@@ -13,11 +13,10 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gdbm>=3.6:databases/py-gdbm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>=3.16:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}mutagen>=1.42:audio/py-mutagen@${PY_FLAVOR}
 
 USES=		gettext-tools gnome python
-USE_GNOME=	gtk30
+USE_GNOME=	gtk30 pygobject3:run
 USE_PYTHON=	autoplist concurrent distutils unittest
 
 .include <bsd.port.mk>
diff --git a/news/sabnzbd/Makefile b/news/sabnzbd/Makefile
index f46770b68328..fb27efa55a02 100644
--- a/news/sabnzbd/Makefile
+++ b/news/sabnzbd/Makefile
@@ -60,7 +60,8 @@ DBUS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR}
 NLS_USES=		gettext-tools
 NOTIFY2_IMPLIES=	DBUS
 NOTIFY2_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}notify2>=0:devel/py-notify2@${PY_FLAVOR}
-PYGOBJECT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=3.10.2:devel/py-gobject3@${PY_FLAVOR}
+PYGOBJECT_USES=		gnome
+PYGOBJECT_USE=		gnome=pygobject3:run
 SSL_USE=		PYTHON=cryptography
 
 post-patch:
diff --git a/print/pdfarranger/Makefile b/print/pdfarranger/Makefile
index ac3ad4762ef9..ebfa1fbad92e 100644
--- a/print/pdfarranger/Makefile
+++ b/print/pdfarranger/Makefile
@@ -11,13 +11,12 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python-dateutil>0:devel/py-python-dateutil@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pikepdf>0:textproc/py-pikepdf@${PY_FLAVOR} \
 		poppler-glib>0:graphics/poppler-glib
 
 USES=		gettext gnome python
 USE_GITHUB=	yes
-USE_GNOME=	gtk30 intltool:build
+USE_GNOME=	gtk30 intltool:build pygobject3:run
 USE_PYTHON=	distutils
 
 NO_ARCH=	yes
diff --git a/science/v_sim/Makefile b/science/v_sim/Makefile
index 0f2564d53395..e6d1b8ed60ca 100644
--- a/science/v_sim/Makefile
+++ b/science/v_sim/Makefile
@@ -28,7 +28,6 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig	\
 RUN_DEPENDS=	${PYNUMPY}	\
 		xcrysden:science/xcrysden	\
 		libarchive>0:archivers/libarchive	\
-		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
 
 USES=		autoreconf blaslapack compiler:c11 fortran gl gmake gnome	\
@@ -36,7 +35,7 @@ USES=		autoreconf blaslapack compiler:c11 fortran gl gmake gnome	\
 		shebangfix tar:bzip2 xorg
 SHEBANG_GLOB=	*.py
 USE_XORG=	x11
-USE_GNOME=	cairo gtk30 gdkpixbuf2 intltool introspection
+USE_GNOME=	cairo gtk30 gdkpixbuf2 intltool introspection pygobject3:run
 USE_GL=		gl glu
 USE_GITLAB=	yes
 GL_ACCOUNT=	l_sim
diff --git a/sysutils/devedeng/Makefile b/sysutils/devedeng/Makefile
index 32492fd1c92f..2a23263d81fe 100644
--- a/sysutils/devedeng/Makefile
+++ b/sysutils/devedeng/Makefile
@@ -12,7 +12,6 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libcanberra.so:audio/libcanberra
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${PY_FLAVOR} \
 		ffmpeg>1.2.6:multimedia/ffmpeg \
 		dvdauthor:multimedia/dvdauthor \
@@ -23,7 +22,7 @@ USES=		python gettext-tools gnome
 USE_GITLAB=	yes
 GL_ACCOUNT=	rastersoft
 GL_TAGNAME=	8cd457b494c1b746633d2490e319c07f6905e1f2
-USE_GNOME=	gtk30
+USE_GNOME=	gtk30 pygobject3:run
 USE_PYTHON=	distutils autoplist
 
 NO_ARCH=	yes
diff --git a/x11-themes/wpgtk/Makefile b/x11-themes/wpgtk/Makefile
index 43a5f48407e6..5faced62bae8 100644
--- a/x11-themes/wpgtk/Makefile
+++ b/x11-themes/wpgtk/Makefile
@@ -11,19 +11,17 @@ WWW=		https://deviantfero.github.io/wpgtk
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
 		wal:graphics/pywal@${PY_FLAVOR} \
 		${PY_SETUPTOOLS}
 RUN_DEPENDS=	feh:graphics/feh \
-		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
 		wal:graphics/pywal@${PY_FLAVOR} \
 		xsettingsd:x11/xsettingsd
 
 USES=		gnome python
-USE_GNOME=	gtk30
+USE_GNOME=	gtk30 pygobject3
 USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
diff --git a/x11/py-waypaper/Makefile b/x11/py-waypaper/Makefile
index 9b26bf6551cd..6b3fa87b65e1 100644
--- a/x11/py-waypaper/Makefile
+++ b/x11/py-waypaper/Makefile
@@ -13,8 +13,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0.44.0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=3.42:devel/py-gobject3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=8.5.0:devel/py-importlib-metadata@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=8.5.0:devel/py-importlib-metadata@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pillow>=10.4.0:graphics/py-pillow@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}platformdirs>=4.2.2:devel/py-platformdirs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}imageio>=2.36.0:graphics/py-imageio@${PY_FLAVOR} \
@@ -23,7 +22,8 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=3.42:devel/py-gobject3@${PY_FLAVOR
 		feh:graphics/feh \
 		swaybg:x11/swaybg
 
-USES=		python
+USES=		gnome python
+USE_GNOME=	pygobject3:run
 USE_PYTHON=	autoplist pep517
 
 .include <bsd.port.mk>