From: Andreas Sturmlechner <asturm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] RFC: virtual/sound-theme: New package providing freedesktop.org spec compliant theme for desktop env. system sounds
Date: Wed, 23 Oct 2024 20:19:09 +0200 [thread overview]
Message-ID: <4962238.31r3eYUQgx@tuxbrain.fritz.box> (raw)
[-- Attachment #1: Type: text/plain, Size: 3056 bytes --]
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 <asturm@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-bugs@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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 789 bytes --]
next reply other threads:[~2024-10-23 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-23 18:19 Andreas Sturmlechner [this message]
2024-11-01 11:56 ` [gentoo-dev] RFC v2: virtual/sound-theme: New package providing freedesktop.org spec compliant theme for desktop env. system sounds Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4962238.31r3eYUQgx@tuxbrain.fritz.box \
--to=asturm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox