gui-apps/sfwbar:

Signed-off-by: Vincent Ahluwalia <vincentahluwalia@protonmail.com>

Add USE flags to enable/disable modules. Similar to waybar.
This commit is contained in:
Vincent Ahluwalia
2025-01-26 17:36:32 +01:00
parent 6ae085cc74
commit a91141febf
3 changed files with 47 additions and 19 deletions

View File

@@ -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>

View File

@@ -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
}

View File

@@ -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
}