commit:     efef456592af073ce9232747dae15e066e95eb96
Author:     brettalcox <brettalcox <AT> gmail <DOT> com>
AuthorDate: Tue Dec 12 15:39:46 2023 +0000
Commit:     Brett Alcox <brettalcox <AT> gmail <DOT> com>
CommitDate: Tue Dec 12 15:40:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=efef4565

media-sound/spotify-player:

fixing up 9999 ebuild

Signed-off-by: brettalcox <brettalcox <AT> gmail.com>

 .../spotify-player/spotify-player-9999.ebuild      | 29 +++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)

diff --git a/media-sound/spotify-player/spotify-player-9999.ebuild 
b/media-sound/spotify-player/spotify-player-9999.ebuild
index 17bdd0a324..d365f53df8 100644
--- a/media-sound/spotify-player/spotify-player-9999.ebuild
+++ b/media-sound/spotify-player/spotify-player-9999.ebuild
@@ -12,19 +12,42 @@ 
EGIT_REPO_URI="https://github.com/aome510/spotify-player.git";
 LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 
ISC LGPL-3 LGPL-3+ MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
 SLOT="0"
 
+IUSE="daemon image +libnotify lyrics +media-control pulseaudio sixel 
+streaming"
+REQUIRED_USE="
+       sixel? ( image )
+       daemon? ( streaming )
+"
 DEPEND="
-       media-libs/alsa-lib
        dev-libs/openssl
        sys-apps/dbus
+       libnotify? ( x11-libs/libnotify )
+       pulseaudio? ( media-libs/libpulse )
+       sixel? ( media-libs/libsixel )
+       streaming? ( media-libs/alsa-lib )
 "
 RDEPEND="${DEPEND}"
-BDEPEND=""
 
 src_unpack() {
        git-r3_src_unpack
        cargo_live_src_unpack
 }
 
+src_configure() {
+       initfeatures=(
+               "$(usex daemon daemon '')"
+               "$(usex image image '')"
+               "$(usex libnotify notify '')"
+               "$(usex lyrics lyric-finder '')"
+               "$(usex media-control media-control '')"
+               "$(usex pulseaudio pulseaudio-backend alsa-backend)"
+               "$(usex sixel sixel '')"
+               "$(usex streaming streaming '')"
+       )
+       newfeatures=$(IFS=, ; echo "${initfeatures[*]}") || die
+       cargo_src_configure --features ${newfeatures} --no-default-features
+}
+
 src_install() {
-       cargo_src_install --path ./spotify_player --features 
notify,lyric-finder,pulseaudio-backend,image,sixel --locked 
--no-default-features
+       cargo_src_install --path ./spotify_player
 }
+QA_FLAGS_IGNORED="usr/bin/spotify_player"

Reply via email to