media-sound/qsynth: Switch make_desktop_entry to --eapi9

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-12-08 18:56:14 +01:00
parent 0f9d0cd7cc
commit befef34e0f
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 14 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors # Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -45,16 +45,14 @@ src_install() {
# depending on useflags # depending on useflags
rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die
local cmd local args
if use jack; then if use pulseaudio; then
cmd="qsynth" args="-a pulseaudio"
elif use pulseaudio; then
cmd="qsynth -a pulseaudio"
elif use alsa; then elif use alsa; then
cmd="qsynth -a alsa" args="-a alsa"
else else
cmd="qsynth -a oss" args="-a oss"
fi fi
make_desktop_entry "${cmd}" Qsynth org.rncbc.qsynth make_desktop_entry --eapi9 qsynth -a "${args}" -n Qsynth -i org.rncbc.qsynth
} }

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors # Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -45,16 +45,14 @@ src_install() {
# depending on useflags # depending on useflags
rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die
local cmd local args
if use jack; then if use pulseaudio; then
cmd="qsynth" args="-a pulseaudio"
elif use pulseaudio; then
cmd="qsynth -a pulseaudio"
elif use alsa; then elif use alsa; then
cmd="qsynth -a alsa" args="-a alsa"
else else
cmd="qsynth -a oss" args="-a oss"
fi fi
make_desktop_entry "${cmd}" Qsynth org.rncbc.qsynth make_desktop_entry --eapi9 qsynth -a "${args}" -n Qsynth -i org.rncbc.qsynth
} }