commit:     b75edf970d19cea7cb0bacdc2c33cedc1037f0f6
Author:     Luke Gompertz <luke.gompz <AT> gmail <DOT> com>
AuthorDate: Sun Dec 28 15:31:44 2025 +0000
Commit:     Luke Gompertz <luke.gompz <AT> gmail <DOT> com>
CommitDate: Sun Dec 28 15:31:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b75edf97

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

Signed-off-by: Luke Gompertz <luke.gompz <AT> gmail.com>

 gui-apps/noctalia-shell/metadata.xml               | 10 --------
 .../noctalia-shell/noctalia-shell-3.7.5.ebuild     | 27 ++++++++++------------
 2 files changed, 12 insertions(+), 25 deletions(-)

diff --git a/gui-apps/noctalia-shell/metadata.xml 
b/gui-apps/noctalia-shell/metadata.xml
index 5f37d92d87..c2dda0ddf5 100644
--- a/gui-apps/noctalia-shell/metadata.xml
+++ b/gui-apps/noctalia-shell/metadata.xml
@@ -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>

diff --git a/gui-apps/noctalia-shell/noctalia-shell-3.7.5.ebuild 
b/gui-apps/noctalia-shell/noctalia-shell-3.7.5.ebuild
index 3f59cc7df7..459a86511a 100644
--- a/gui-apps/noctalia-shell/noctalia-shell-3.7.5.ebuild
+++ b/gui-apps/noctalia-shell/noctalia-shell-3.7.5.ebuild
@@ -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
 }

Reply via email to