See also:
https://specifications.freedesktop.org/sound-naming-spec/latest/
https://bugs.gentoo.org/941986
https://github.com/gentoo/gentoo/pull/38648 (as part of a libcanberra split)
https://bugs.gentoo.org/323379 (some history)
media-libs/libcanberra is still broadly used as sound event library, even 
media-video/pipewire[X] depends on it, and KDE Plasma packages as well.

media-libs/libcanberra has IUSE=+sounds, which currently pulls in x11-themes/
sound-theme-freedesktop. But it can be replaced by other sound themes as long 
as they adhere to freedesktop.org spec, which essentially seems to come down 
to standardised notification sound names and some index file in

/usr/share/sounds/<theme-name>/index.them

In KDE world there are two alternatives:
- kde-plasma/ocean-sound-theme
- kde-plasma/oxygen-sounds

But it is possible there are other themes already in ::gentoo that I am not 
aware of, or maybe other DE maintainers have their own ideas, so CCing 
relevant maintainers.

Current x11-themes/sound-theme-freedesktop RDEPENDs:

gnome-base/gnome
gnome-extra/gnome-tweaks
kde-plasma/kpipewire
kde-plasma/plasma-pa
media-libs/libcanberra-0.30-r7:sound

There are also a few media-libs/libcanberra[sound] revdeps that are addressed 
in the linked PR.


Subject: [PATCH] virtual/sound-theme: new package, add 0

- IUSE sound: derived from media-libs/libcanberra[sound]
- KEYWORDS: derived from x11-themes/sound-theme-freedesktop
  plus ~s390 for media-libs/libcanberra

Bug: https://bugs.gentoo.org/323379
Bug: https://bugs.gentoo.org/941986
Signed-off-by: Andreas Sturmlechner <ast...@gentoo.org>
---
 create mode 100644 virtual/sound-theme/metadata.xml
 create mode 100644 virtual/sound-theme/sound-theme-0.ebuild

diff --git a/virtual/sound-theme/metadata.xml b/virtual/sound-theme/
metadata.xml
new file mode 100644
index 0000000000000..ff357f23fed56
--- /dev/null
+++ b/virtual/sound-theme/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>freedesktop-b...@gentoo.org</email>
+       </maintainer>
+       <stabilize-allarches/>
+       <use>
+               <flag name="sound">Install freedesktop.org spec compliant 
theme for desktop environment system sounds</flag>
+       </use>
+</pkgmetadata>
diff --git a/virtual/sound-theme/sound-theme-0.ebuild b/virtual/sound-theme/
sound-theme-0.ebuild
new file mode 100644
index 0000000000000..c57c588d63aa9
--- /dev/null
+++ b/virtual/sound-theme/sound-theme-0.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Virtual for themes following the freedesktop.org sound naming 
spec"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="+sound"
+
+RDEPEND="
+       sound? ( || (
+               x11-themes/sound-theme-freedesktop
+               kde-plasma/ocean-sound-theme:*
+               >=kde-plasma/oxygen-sounds-6.0.0:*
+       ) )
+"

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to