commit:     4feff6e67780769e1432edc502e937c166186d65
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Jan 21 14:38:13 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Jan 21 14:38:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4feff6e6

dev-python/spotify-music-videos: Show Youtube music videos and lyrics

for the currently playing Spotify song

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/spotify-music-videos/Manifest           |  1 +
 dev-python/spotify-music-videos/metadata.xml       | 13 ++++++
 .../spotify-music-videos-1.8.1.ebuild              | 46 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/dev-python/spotify-music-videos/Manifest 
b/dev-python/spotify-music-videos/Manifest
new file mode 100644
index 0000000..afb1693
--- /dev/null
+++ b/dev-python/spotify-music-videos/Manifest
@@ -0,0 +1 @@
+DIST spotify-music-videos-1.8.1.tar.gz 216027 BLAKE2B 
138cb404da078afc7dab636aec6349ceb70cec5ac3f8b81630ba4a6000376e4a24851dd7ec4be0b6435eff02c61b3ea39cdebe450d9d4fc1d09780107ab94817
 SHA512 
e306eb17f64b88eb88b152b325481d9f15d67c673d6cc76c8e0191faf1beb21a82006af8d0d472ba7cc613b587b1edd8532537bde424bae1024bf93021aa4628

diff --git a/dev-python/spotify-music-videos/metadata.xml 
b/dev-python/spotify-music-videos/metadata.xml
new file mode 100644
index 0000000..dd0bd9c
--- /dev/null
+++ b/dev-python/spotify-music-videos/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+
+<pkgmetadata>
+    <maintainer type="person">
+        <email>andrewammerl...@riseup.net</email>
+        <name>Andrew Ammerlaan</name>
+    </maintainer>
+    <maintainer type="project">
+        <email>proxy-ma...@gentoo.org</email>
+        <name>Proxy Maintainers</name>
+    </maintainer>
+</pkgmetadata>

diff --git a/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild 
b/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild
new file mode 100644
index 0000000..102abf1
--- /dev/null
+++ b/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1 xdg-utils desktop
+
+DESCRIPTION="Show Youtube music videos and lyrics for the currently playing 
Spotify song"
+HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos";
+SRC_URI="https://github.com/marioortizmanero/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/pydbus[${PYTHON_USEDEP}]
+       dev-python/lyricwikia[${PYTHON_USEDEP}]
+       dev-python/python-vlc[${PYTHON_USEDEP}]
+       net-misc/youtube-dl[${PYTHON_USEDEP}]
+       media-sound/spotify"
+
+distutils_enable_tests pytest
+
+python_install_all() {
+       distutils-r1_python_install_all
+       make_desktop_entry spotify-videos "Spotify Music Videos" 
spotify-linux-64 "AudioVideo;Music" Terminal=true
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+
+       elog '"spotify-videos --debug" might complain about missing codecs, if 
this happens please recompile media-video/vlc with the proper codecs'
+       elog 'Pro-tip: Create a special profile for your terminal emulator with 
a nice lyric-font. then edit the .desktop entry and add 
TerminalOptions=--profile name-of-profile'
+       elog 'Or launch spotify-videos directly in a terminal with the correct 
profile, e.g for konsole: "konsole --profile name-of=profile -e spotify-videos"'
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}

Reply via email to