Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/spotify-music-videos/
Date: Tue, 21 Jan 2020 14:49:07
Message-Id: 1579617493.4feff6e67780769e1432edc502e937c166186d65.andrewammerlaan@gentoo
1 commit: 4feff6e67780769e1432edc502e937c166186d65
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Tue Jan 21 14:38:13 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue Jan 21 14:38:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4feff6e6
7
8 dev-python/spotify-music-videos: Show Youtube music videos and lyrics
9
10 for the currently playing Spotify song
11
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
14
15 dev-python/spotify-music-videos/Manifest | 1 +
16 dev-python/spotify-music-videos/metadata.xml | 13 ++++++
17 .../spotify-music-videos-1.8.1.ebuild | 46 ++++++++++++++++++++++
18 3 files changed, 60 insertions(+)
19
20 diff --git a/dev-python/spotify-music-videos/Manifest b/dev-python/spotify-music-videos/Manifest
21 new file mode 100644
22 index 0000000..afb1693
23 --- /dev/null
24 +++ b/dev-python/spotify-music-videos/Manifest
25 @@ -0,0 +1 @@
26 +DIST spotify-music-videos-1.8.1.tar.gz 216027 BLAKE2B 138cb404da078afc7dab636aec6349ceb70cec5ac3f8b81630ba4a6000376e4a24851dd7ec4be0b6435eff02c61b3ea39cdebe450d9d4fc1d09780107ab94817 SHA512 e306eb17f64b88eb88b152b325481d9f15d67c673d6cc76c8e0191faf1beb21a82006af8d0d472ba7cc613b587b1edd8532537bde424bae1024bf93021aa4628
27
28 diff --git a/dev-python/spotify-music-videos/metadata.xml b/dev-python/spotify-music-videos/metadata.xml
29 new file mode 100644
30 index 0000000..dd0bd9c
31 --- /dev/null
32 +++ b/dev-python/spotify-music-videos/metadata.xml
33 @@ -0,0 +1,13 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>andrewammerlaan@××××××.net</email>
40 + <name>Andrew Ammerlaan</name>
41 + </maintainer>
42 + <maintainer type="project">
43 + <email>proxy-maint@g.o</email>
44 + <name>Proxy Maintainers</name>
45 + </maintainer>
46 +</pkgmetadata>
47
48 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
49 new file mode 100644
50 index 0000000..102abf1
51 --- /dev/null
52 +++ b/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild
53 @@ -0,0 +1,46 @@
54 +# Copyright 1999-2020 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +PYTHON_COMPAT=( python3_{6,7,8} )
60 +
61 +DISTUTILS_USE_SETUPTOOLS=rdepend
62 +
63 +inherit distutils-r1 xdg-utils desktop
64 +
65 +DESCRIPTION="Show Youtube music videos and lyrics for the currently playing Spotify song"
66 +HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos"
67 +SRC_URI="https://github.com/marioortizmanero/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
68 +
69 +LICENSE="MIT"
70 +SLOT="0"
71 +KEYWORDS="~amd64 ~x86"
72 +
73 +RDEPEND="
74 + dev-python/pydbus[${PYTHON_USEDEP}]
75 + dev-python/lyricwikia[${PYTHON_USEDEP}]
76 + dev-python/python-vlc[${PYTHON_USEDEP}]
77 + net-misc/youtube-dl[${PYTHON_USEDEP}]
78 + media-sound/spotify"
79 +
80 +distutils_enable_tests pytest
81 +
82 +python_install_all() {
83 + distutils-r1_python_install_all
84 + make_desktop_entry spotify-videos "Spotify Music Videos" spotify-linux-64 "AudioVideo;Music" Terminal=true
85 +}
86 +
87 +pkg_postinst() {
88 + xdg_desktop_database_update
89 + xdg_icon_cache_update
90 +
91 + elog '"spotify-videos --debug" might complain about missing codecs, if this happens please recompile media-video/vlc with the proper codecs'
92 + 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'
93 + 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"'
94 +}
95 +
96 +pkg_postrm() {
97 + xdg_desktop_database_update
98 + xdg_icon_cache_update
99 +}