commit:     d8c8d8abd012c709551cc96802d2615fa69b5212
Author:     Gergely Nagy <ngg <AT> ngg <DOT> hu>
AuthorDate: Wed Jul 17 12:40:03 2019 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 15:14:29 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8c8d8ab

media-sound/spotify: use apulse if available

Adding apulse libraries to LD_LIBRARY_PATH make spotify work
even if pulseaudio is not installed. If pulseaudio is installed
instead of apulse, this has no effect.

Signed-off-by: Gergely Nagy <ngg <AT> ngg.hu>
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 media-sound/spotify/spotify-1.1.5-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/media-sound/spotify/spotify-1.1.5-r1.ebuild 
b/media-sound/spotify/spotify-1.1.5-r1.ebuild
index 5fe58e2255f..a681fe950c0 100644
--- a/media-sound/spotify/spotify-1.1.5-r1.ebuild
+++ b/media-sound/spotify/spotify-1.1.5-r1.ebuild
@@ -75,6 +75,7 @@ src_install() {
        dodir /usr/bin
        cat <<-EOF >"${D}"/usr/bin/spotify || die
                #! /bin/sh
+               LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse" \\
                exec ${SPOTIFY_HOME}/spotify "\$@"
        EOF
        fperms +x /usr/bin/spotify

Reply via email to