commit: a91141febf3ba035efe6eba5a6c9fa6582088b55
Author: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
AuthorDate: Sun Jan 26 16:36:32 2025 +0000
Commit: Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
CommitDate: Sun Jan 26 16:36:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a91141fe
gui-apps/sfwbar:
Signed-off-by: Vincent Ahluwalia <vincentahluwalia <AT> protonmail.com>
Add USE flags to enable/disable modules. Similar to waybar.
gui-apps/sfwbar/metadata.xml | 11 ++++++++++-
gui-apps/sfwbar/sfwbar-1.0_beta15.ebuild | 25 +++++++++++++++++--------
gui-apps/sfwbar/sfwbar-1.0_beta16.ebuild | 30 ++++++++++++++++++++----------
3 files changed, 47 insertions(+), 19 deletions(-)
diff --git a/gui-apps/sfwbar/metadata.xml b/gui-apps/sfwbar/metadata.xml
index 08fb0fd94..6a26d78d1 100644
--- a/gui-apps/sfwbar/metadata.xml
+++ b/gui-apps/sfwbar/metadata.xml
@@ -6,7 +6,16 @@
<name>Lev Babiev</name>
</maintainer>
<use>
- <flag name="mpd">Add support for Music Player Daemon</flag>
+ <flag name="mpd">Enable support for Music Player Daemon</flag>
+ <flag name="menu">Enable support for application menu
generator. Default enabled by upstream</flag>
+ <flag name="network">Enable support for network related
features</flag>
+ <flag name="networkmanager">Enable support for the
networkmanager wifi module</flag>
+ <flag name="iwd">Enable support for the iwd wifi module</flag>
+ <flag name="notification">Enable support for notification
center and idle notifications</flag>
+ <flag name="bluetooth">Enable support for bluetooth with the
bluez module</flag>
+ <flag name="idleinhibit">Enable support for Idle inhibit
protocol. Prevents screenlockers (e.g swaylock) from popping up by inhibiting
idle mode</flag>
+ <flag name="bsdctl">Enable support for BSD sysctl module.
Default disabled by upstream</flag>
+ <flag name="man">Rebuild man pages from rst files</flag>
</use>
<upstream>
<remote-id type="github">LBCrion/sfwbar</remote-id>
diff --git a/gui-apps/sfwbar/sfwbar-1.0_beta15.ebuild
b/gui-apps/sfwbar/sfwbar-1.0_beta15.ebuild
index 1080f80af..d8b75c535 100644
--- a/gui-apps/sfwbar/sfwbar-1.0_beta15.ebuild
+++ b/gui-apps/sfwbar/sfwbar-1.0_beta15.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit meson xdg
+inherit meson xdg-utils
DESCRIPTION="S* Floating Window Bar"
HOMEPAGE="https://github.com/LBCrion/sfwbar"
@@ -13,7 +13,7 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="X mpd pulseaudio alsa"
+IUSE="X mpd pulseaudio alsa network networkmanager iwd bluetooth man
idleinhibit bsdctl"
COMMON_DEPEND="
dev-libs/glib:2
@@ -43,13 +43,22 @@ src_configure() {
$(meson_feature mpd)
$(meson_feature pulseaudio pulse)
$(meson_feature X xkb)
- -Dnetwork=enabled
- -Didleinhibit=enabled
- -Dbluez=enabled
- -Dbsdctl=disabled
- -Diwd=enabled
- -Dnm=enabled
+ $(meson_feature network)
+ $(meson_feature networkmanager nm)
+ $(meson_feature iwd)
+ $(meson_feature bluetooth bluez)
+ $(meson_feature bsdctl)
+ $(meson_feature man build-docs)
+ $(meson_feature idleinhibit)
)
meson_src_configure
}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}
diff --git a/gui-apps/sfwbar/sfwbar-1.0_beta16.ebuild
b/gui-apps/sfwbar/sfwbar-1.0_beta16.ebuild
index aef330080..101df4142 100644
--- a/gui-apps/sfwbar/sfwbar-1.0_beta16.ebuild
+++ b/gui-apps/sfwbar/sfwbar-1.0_beta16.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit meson xdg
+inherit meson xdg-utils
DESCRIPTION="S* Floating Window Bar"
HOMEPAGE="https://github.com/LBCrion/sfwbar"
@@ -13,7 +13,7 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="X mpd pulseaudio alsa"
+IUSE="+menu X mpd pulseaudio alsa network networkmanager iwd bluetooth
notification man idleinhibit bsdctl"
COMMON_DEPEND="
dev-libs/glib:2
@@ -43,15 +43,25 @@ src_configure() {
$(meson_feature mpd)
$(meson_feature pulseaudio pulse)
$(meson_feature X xkb)
- -Dnetwork=enabled
- -Didleinhibit=enabled
- -Dbluez=enabled
- -Dbsdctl=disabled
- -Diwd=enabled
- -Dnm=enabled
- -Dappmenu=enabled
- -Dncenter=enabled
+ $(meson_feature network)
+ $(meson_feature networkmanager nm)
+ $(meson_feature iwd)
+ $(meson_feature menu appmenu)
+ $(meson_feature bluetooth bluez)
+ $(meson_feature bsdctl)
+ $(meson_feature notification ncenter)
+ $(meson_feature notification idle)
+ $(meson_feature man build-docs)
+ $(meson_feature idleinhibit)
)
meson_src_configure
}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}