git: 4b4539c77959 - main - x11/wapanel: convert PULSEAUDIO to subpackage

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 27 Jan 2024 23:05:19 UTC
The branch main has been updated by jbeich:

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

commit 4b4539c77959a64fc0f59e46b1112d4f76557ac2
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-01-24 15:43:31 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-01-27 23:01:09 +0000

    x11/wapanel: convert PULSEAUDIO to subpackage
    
    Avoid heavy dependency if users control volume via WM hotkeys.
    
    Approved by:    pizzamig (portmgr)
    Differential Revision:  https://reviews.freebsd.org/D43577
---
 x11/wapanel/Makefile             |  6 ++++--
 x11/wapanel/pkg-descr.pulseaudio | 10 ++++++++++
 x11/wapanel/pkg-message          |  9 +++++++++
 x11/wapanel/pkg-plist            |  2 +-
 4 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/x11/wapanel/Makefile b/x11/wapanel/Makefile
index 763bbb2affad..27ffc5822e9c 100644
--- a/x11/wapanel/Makefile
+++ b/x11/wapanel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	wapanel
 DISTVERSION=	1.1.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -25,7 +25,9 @@ OPTIONS_DEFINE=	PULSEAUDIO
 OPTIONS_DEFAULT=PULSEAUDIO
 OPTIONS_SUB=	yes
 
-PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
+PULSEAUDIO_SUBPACKAGES=	pulseaudio
+LIB_DEPENDS.pulseaudio=	libpulse.so:audio/pulseaudio
+SELF_DEPENDS.pulseaudio=main
 PULSEAUDIO_MESON_TRUE=	volume-control
 
 post-patch:
diff --git a/x11/wapanel/pkg-descr.pulseaudio b/x11/wapanel/pkg-descr.pulseaudio
new file mode 100644
index 000000000000..37fe3ddd4b26
--- /dev/null
+++ b/x11/wapanel/pkg-descr.pulseaudio
@@ -0,0 +1,10 @@
+Simple panel/status bar/task bar for your custom stacking
+Wayland-based desktop.
+
+Features:
+- Good configurability
+- Config hot reload
+- Exposed API for writing custom applets
+- Custom themes with CSS
+
+This package provides PulseAudio-based volume applet.
diff --git a/x11/wapanel/pkg-message b/x11/wapanel/pkg-message
new file mode 100644
index 000000000000..bd57b6bf6b1d
--- /dev/null
+++ b/x11/wapanel/pkg-message
@@ -0,0 +1,9 @@
+[
+{ type: upgrade
+  maximum_version: "1.1.0_4"
+  message: <<EOD
+Applets with extra dependencies moved into subpackages:
+- wapanel-pulseaudio
+EOD
+}
+]
diff --git a/x11/wapanel/pkg-plist b/x11/wapanel/pkg-plist
index e3057e9ef4da..7541c3c79123 100644
--- a/x11/wapanel/pkg-plist
+++ b/x11/wapanel/pkg-plist
@@ -6,7 +6,7 @@ lib/wapanel/applets/libwapanel-applet-app-finder.so
 lib/wapanel/applets/libwapanel-applet-clock.so
 lib/wapanel/applets/libwapanel-applet-separator.so
 lib/wapanel/applets/libwapanel-applet-task-switcher.so
-%%PULSEAUDIO%%lib/wapanel/applets/libwapanel-applet-volume-control.so
+%%PULSEAUDIO%%@@pulseaudio@@lib/wapanel/applets/libwapanel-applet-volume-control.so
 libdata/pkgconfig/wapanel-appletapi.pc
 %%DATADIR%%/3RD_PARTY_LICENSES
 %%DATADIR%%/icons/hicolor/scalable/actions/wapa-account.svg