Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2024 04:24:23 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d340d8ff321a - main - audio/pasystray: new port had been added (+)
Message-ID:  <202403210424.42L4ONDf040281@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

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

commit d340d8ff321ab0f121147fb5e08c2b98c04c3f8d
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-03-21 04:23:46 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-03-21 04:23:46 +0000

    audio/pasystray: new port had been added (+)
    
    PulseAudio system tray, replacement for deprecated padevchooser.
    Add several options to disable unneeded features; unfortunately,
    AppIndicator support currently implies GTK v3 (the default one).
    
    PR:     264327
---
 audio/Makefile            |  1 +
 audio/pasystray/Makefile  | 42 ++++++++++++++++++++++++++++++++++++++++++
 audio/pasystray/distinfo  |  3 +++
 audio/pasystray/pkg-descr |  5 +++++
 audio/pasystray/pkg-plist |  6 ++++++
 5 files changed, 57 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index c9ef444b9e81..711ddfd3707e 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -579,6 +579,7 @@
     SUBDIR += paman
     SUBDIR += pamixer
     SUBDIR += paprefs
+    SUBDIR += pasystray
     SUBDIR += patchage
     SUBDIR += pavucontrol
     SUBDIR += pavucontrol-qt
diff --git a/audio/pasystray/Makefile b/audio/pasystray/Makefile
new file mode 100644
index 000000000000..c19caa17031e
--- /dev/null
+++ b/audio/pasystray/Makefile
@@ -0,0 +1,42 @@
+PORTNAME=	pasystray
+PORTVERSION=	0.8.2
+CATEGORIES=	audio
+
+MAINTAINER=	julien+freebsdports@delhaye.me
+COMMENT=	System tray applet to control PulseAudio
+WWW=		https://github.com/christophgysin/pasystray
+
+LICENSE=	LGPL21+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libpulse.so:audio/pulseaudio
+
+USES=		autoreconf gnome pkgconfig
+USE_GNOME=	cairo gdkpixbuf2
+GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
+USE_GITHUB=	yes
+GH_ACCOUNT=	christophgysin
+
+OPTIONS_DEFINE=	APPINDICATOR AVAHI GTK2 NOTIFY
+OPTIONS_DEFAULT=	APPINDICATOR AVAHI NOTIFY
+
+APPINDICATOR_DESC=	AppIndicator support
+APPINDICATOR_LIB_DEPENDS=	libappindicator3.so:devel/libappindicator
+APPINDICATOR_CONFIGURE_OFF=	--disable-appindicator
+
+AVAHI_LIB_DEPENDS=	libavahi-client.so:net/avahi-app
+AVAHI_CONFIGURE_OFF=	--disable-avahi
+
+GTK2_DESC=		Use GTK 2 instead of GTK 3
+GTK2_CONFIGURE_ON=	--with-gtk=2
+GTK2_USE=		GNOME=gtk20
+GTK2_USE_OFF=		GNOME=gtk30
+GTK2_PLIST_FILES=	${DATADIR_REL}/${PORTNAME}.gtk2.glade
+GTK2_PLIST_FILES_OFF=	${DATADIR_REL}/${PORTNAME}.gtk3.glade
+GTK2_PREVENTS=		APPINDICATOR
+
+NOTIFY_LIB_DEPENDS=	libnotify.so:devel/libnotify
+NOTIFY_CONFIGURE_OFF=	--disable-notify
+
+.include <bsd.port.mk>
diff --git a/audio/pasystray/distinfo b/audio/pasystray/distinfo
new file mode 100644
index 000000000000..fefb9780057e
--- /dev/null
+++ b/audio/pasystray/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1676063460
+SHA256 (christophgysin-pasystray-0.8.2_GH0.tar.gz) = 9c6fc5859a203f0a6dd8ce2038fea85b7bac44b1baff5c4cf73643229fafa641
+SIZE (christophgysin-pasystray-0.8.2_GH0.tar.gz) = 59654
diff --git a/audio/pasystray/pkg-descr b/audio/pasystray/pkg-descr
new file mode 100644
index 000000000000..f87c2d5efd21
--- /dev/null
+++ b/audio/pasystray/pkg-descr
@@ -0,0 +1,5 @@
+PulseAudio system tray, a replacement for the deprecated padevchooser.
+
+pasystray allows setting the default PulseAudio source/sink and moving
+streams on the fly between sources/sinks without restarting the client
+applications.
diff --git a/audio/pasystray/pkg-plist b/audio/pasystray/pkg-plist
new file mode 100644
index 000000000000..c64d370eac42
--- /dev/null
+++ b/audio/pasystray/pkg-plist
@@ -0,0 +1,6 @@
+bin/pasystray
+etc/xdg/autostart/pasystray.desktop
+share/applications/pasystray.desktop
+share/icons/hicolor/scalable/apps/pasystray.svg
+share/man/man1/pasystray.1.gz
+share/pixmaps/pasystray.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403210424.42L4ONDf040281>