media-sound/spotify: use apulse if available
authorGergely Nagy <ngg@ngg.hu>
Wed, 17 Jul 2019 12:40:03 +0000 (14:40 +0200)
committerMatthew Thode <prometheanfire@gentoo.org>
Wed, 17 Jul 2019 15:14:29 +0000 (10:14 -0500)
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@ngg.hu>
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
media-sound/spotify/spotify-1.1.5-r1.ebuild

index 5fe58e2255fce70248418f05eccc47de389d3503..a681fe950c04205cdba375245d2d4a7586bf3568 100644 (file)
@@ -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