git: 0d3d89ff5b16 - main - audio/xfce4-pulseaudio-plugin: Update to 0.5.0

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Sat, 12 Apr 2025 20:55:36 UTC
The branch main has been updated by madpilot:

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

commit 0d3d89ff5b166b3f0d1f41c401782c0fae7dca40
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2025-04-12 20:53:38 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2025-04-12 20:53:38 +0000

    audio/xfce4-pulseaudio-plugin: Update to 0.5.0
    
    - Convert to meson build
---
 audio/xfce4-pulseaudio-plugin/Makefile  | 31 ++++++++++++++-----------------
 audio/xfce4-pulseaudio-plugin/distinfo  |  6 +++---
 audio/xfce4-pulseaudio-plugin/pkg-plist |  3 +++
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/audio/xfce4-pulseaudio-plugin/Makefile b/audio/xfce4-pulseaudio-plugin/Makefile
index fe1bec213d96..1414d97f6fe9 100644
--- a/audio/xfce4-pulseaudio-plugin/Makefile
+++ b/audio/xfce4-pulseaudio-plugin/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	xfce4-pulseaudio-plugin
-PORTVERSION=	0.4.9
-PORTREVISION=	1
+PORTVERSION=	0.5.0
 CATEGORIES=	audio xfce
 MASTER_SITES=	XFCE/panel-plugins
 DIST_SUBDIR=	xfce4
@@ -12,25 +11,21 @@ WWW=		https://gitlab.xfce.org/panel-plugins/xfce4-pulseaudio-plugin
 LICENSE=	GPLv2
 
 LIB_DEPENDS=	libcanberra.so:audio/libcanberra \
-		libharfbuzz.so:print/harfbuzz \
 		libnotify.so:devel/libnotify \
 		libpulse-mainloop-glib.so:audio/pulseaudio
 RUN_DEPENDS=	pavucontrol>=2.0:audio/pavucontrol
 
-USES=		compiler:c11 gettext-tools gmake gnome libtool pkgconfig \
-		tar:bzip2 xfce xorg
-USE_GNOME=	cairo gdkpixbuf glib20 gtk30 libwnck3
+USES=		compiler:c11 gettext-tools gnome libtool meson pkgconfig tar:xz \
+		xfce xorg
+USE_GNOME=	cairo gdkpixbuf glib20 gtk30
 USE_XFCE=	libexo panel windowing xfconf
 USE_XORG=	x11
 
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-libxfce4windowing \
-		--enable-mpris2 \
-		--enable-wnck \
-		--with-mixer-command=${LOCALBASE}/bin/pavucontrol
-INSTALL_TARGET=	install-strip
-
-CFLAGS+=	-Wno-return-type
+MESON_ARGS=	-Dlibcanberra=enabled \
+		-Dlibnotify=enabled \
+		-Dlibxfce4windowing=enabled \
+		-Dmixer-command=${LOCALBASE}/bin/pavucontrol \
+		-Dmpris2=enabled
 
 OPTIONS_DEFINE=		KEYBINDER NLS
 OPTIONS_DEFAULT=	KEYBINDER
@@ -38,9 +33,11 @@ OPTIONS_SUB=		yes
 
 KEYBINDER_DESC=			Keyboard shortcuts
 KEYBINDER_LIB_DEPENDS=		libkeybinder-3.0.so:x11/keybinder-gtk3
-KEYBINDER_CONFIGURE_ENABLE=	keybinder
+KEYBINDER_MESON_ENABLED=	keybinder
+
+NLS_USES=	gettext-runtime
 
-NLS_USES=		gettext-runtime
-NLS_CONFIGURE_ENABLE=	nls
+post-patch-NLS-off:
+	@${REINPLACE_CMD} -e "/^subdir('po')/d" ${WRKSRC}/meson.build
 
 .include <bsd.port.mk>
diff --git a/audio/xfce4-pulseaudio-plugin/distinfo b/audio/xfce4-pulseaudio-plugin/distinfo
index 1070a50084dd..77c331e29b57 100644
--- a/audio/xfce4-pulseaudio-plugin/distinfo
+++ b/audio/xfce4-pulseaudio-plugin/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1733504367
-SHA256 (xfce4/xfce4-pulseaudio-plugin-0.4.9.tar.bz2) = a0807615fb2848d0361b7e4568a44f26d189fda48011c7ba074986c8bfddc99a
-SIZE (xfce4/xfce4-pulseaudio-plugin-0.4.9.tar.bz2) = 483722
+TIMESTAMP = 1744407647
+SHA256 (xfce4/xfce4-pulseaudio-plugin-0.5.0.tar.xz) = 3fe69bc6f9c0dd68bd317c0a7813975cf162ba1dd64e23c2ffef372d4b4f808a
+SIZE (xfce4/xfce4-pulseaudio-plugin-0.5.0.tar.xz) = 117632
diff --git a/audio/xfce4-pulseaudio-plugin/pkg-plist b/audio/xfce4-pulseaudio-plugin/pkg-plist
index e561b9ba4c95..08105e3e25cf 100644
--- a/audio/xfce4-pulseaudio-plugin/pkg-plist
+++ b/audio/xfce4-pulseaudio-plugin/pkg-plist
@@ -1,4 +1,5 @@
 lib/xfce4/panel/plugins/libpulseaudio-plugin.so
+share/icons/hicolor/32x32/apps/xfce4-pulseaudio-plugin.png
 share/icons/hicolor/48x48/apps/xfce4-pulseaudio-plugin.png
 share/icons/hicolor/scalable/apps/xfce4-pulseaudio-plugin.svg
 share/icons/hicolor/scalable/status/audio-volume-high-symbolic.svg
@@ -47,6 +48,7 @@ share/icons/hicolor/scalable/status/microphone-sensitivity-muted-symbolic.svg
 %%NLS%%share/locale/pl/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/pt/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/pt_BR/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/ru/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/sk/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/sl/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
@@ -56,6 +58,7 @@ share/icons/hicolor/scalable/status/microphone-sensitivity-muted-symbolic.svg
 %%NLS%%share/locale/th/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/tr/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/uk/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/xfce4-pulseaudio-plugin.mo
 share/xfce4/panel/plugins/pulseaudio.desktop