gui-apps/noctalia-shell: use optfeature for optional dependencies

Signed-off-by: Luke Gompertz <luke.gompz@gmail.com>
This commit is contained in:
Luke Gompertz
2025-12-28 15:31:44 +00:00
parent c7a532963f
commit b75edf970d
2 changed files with 12 additions and 25 deletions

View File

@@ -7,16 +7,6 @@
<upstream>
<remote-id type="github">noctalia-dev/noctalia-shell</remote-id>
</upstream>
<use>
<flag name="cava">Audio visualizer component</flag>
<flag name="cliphist">Clipboard history support</flag>
<flag name="evolution-data-server">Calendar events</flag>
<flag name="matugen">Material You color scheme generation</flag>
<flag name="polkit-kde-agent">Authenticate Battery Manager installation for laptop charge limits</flag>
<flag name="wlsunset">Night light functionality</flag>
<flag name="xdg-desktop-portal">Enables “Portal” option in screen recorder</flag>
<flag name="xwayland">Install xwayland-satellite for xwayland support</flag>
</use>
<longdescription>
Noctalia is a beautiful, minimal desktop shell for Wayland that actually gets out of your way. Built on Quickshell with a warm lavender aesthetic that you can easily customize to match your vibe.
</longdescription>

View File

@@ -3,6 +3,9 @@
EAPI=8
inherit systemd
inherit optfeature
DESCRIPTION="Noctalia Configuration for Quickshell"
HOMEPAGE="https://github.com/noctalia-dev/noctalia-shell"
SRC_URI="https://github.com/noctalia-dev/noctalia-shell/releases/download/v${PV}/noctalia-v${PV}.tar.gz"
@@ -12,9 +15,6 @@ S="${WORKDIR}/noctalia-release"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="cliphist cava wlsunset xdg-desktop-portal evolution-data-server polkit-kde-agent matugen xwayland"
inherit systemd
RDEPEND="
gui-apps/quickshell
@@ -22,18 +22,6 @@ RDEPEND="
app-misc/brightnessctl
"
# Optional dependencies
RDEPEND="${RDEPEND}
cliphist? ( app-misc/cliphist )
cava? ( media-sound/cava )
wlsunset? ( gui-apps/wlsunset )
xdg-desktop-portal? ( sys-apps/xdg-desktop-portal )
evolution-data-server? ( gnome-extra/evolution-data-server )
polkit-kde-agent? ( kde-plasma/polkit-kde-agent )
matugen? ( x11-misc/matugen )
xwayland? ( gui-apps/xwayland-satellite )
"
src_install() {
# Install configuration files
insinto /etc/xdg/quickshell/noctalia-shell
@@ -46,4 +34,13 @@ src_install() {
pkg_postinst() {
elog "Noctalia Quickshell configuration has been installed to /etc/xdg/quickshell/noctalia-shell."
elog "Note: uninstalling this package will not remove this configuration, so if you intend to keep using Quickshell you may want to remove it manually."
optfeature "Clipboard history support" app-misc/cliphist
optfeature "Audio visualizer component" media-sound/cava
optfeature "Night light functionality" gui-apps/wlsunset
optfeature "Enable 'Portal' option in screen recorder" sys-apps/xdg-desktop-portal
optfeature "Calendar events support" gnome-extra/evolution-data-server
optfeature "Authenticate Battery Manager installation for laptop charge limits" kde-plasma/polkit-kde-agent
optfeature "Material You color scheme generation" x11-misc/matugen
optfeature "Xwayland-satellite for xwayland support on niri" gui-apps/xwayland-satellite
}