commit:     7834e6ae179065f800c06187e0fe0d8265e9313a
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 27 21:05:22 2020 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Sat Jun 27 21:05:28 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7834e6ae

media-sound/spotify: fix pulseaudio / apulse dependency

Closes: https://bugs.gentoo.org/728800
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 media-sound/spotify/metadata.xml                                     | 1 +
 .../spotify/{spotify-1.1.26.ebuild => spotify-1.1.26-r1.ebuild}      | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-sound/spotify/metadata.xml b/media-sound/spotify/metadata.xml
index 1e06c14d2fd..ff06ccc103f 100644
--- a/media-sound/spotify/metadata.xml
+++ b/media-sound/spotify/metadata.xml
@@ -3,6 +3,7 @@
 <pkgmetadata>
   <use>
     <flag name="pax_kernel">Triggers a paxmarking of the main Spotify 
binary</flag>
+    <flag name="pulseaudio">Constrols the dependency on pulseaudio or 
apulse</flag>
     <flag name="systray">Pulls in dependencies needed for systray support on 
some desktop environments</flag>
   </use>
 <maintainer type="person">

diff --git a/media-sound/spotify/spotify-1.1.26.ebuild 
b/media-sound/spotify/spotify-1.1.26-r1.ebuild
similarity index 95%
rename from media-sound/spotify/spotify-1.1.26.ebuild
rename to media-sound/spotify/spotify-1.1.26-r1.ebuild
index 1d3b666674b..2310f6ff5af 100644
--- a/media-sound/spotify/spotify-1.1.26.ebuild
+++ b/media-sound/spotify/spotify-1.1.26-r1.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb"
 LICENSE="Spotify"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="libnotify libressl systray pax_kernel"
+IUSE="libnotify libressl systray pax_kernel pulseaudio"
 RESTRICT="mirror strip"
 
 BDEPEND=">=dev-util/patchelf-0.10"
@@ -29,7 +29,8 @@ RDEPEND="
        media-libs/mesa[X(+)]
        net-misc/curl[ssl]
        net-print/cups[ssl]
-       || ( media-sound/pulseaudio media-sound/apulse )
+       pulseaudio? ( media-sound/pulseaudio )
+       !pulseaudio? ( media-sound/apulse )
        systray? ( gnome-extra/gnome-integration-spotify )
        x11-libs/gtk+:2
        app-accessibility/at-spi2-atk

Reply via email to