Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/vidify/
Date: Tue, 21 Jan 2020 15:17:45
Message-Id: 1579619781.12e1c3665d893eb4477f8f6f2dcf7d20c171d2a2.andrewammerlaan@gentoo
1 commit: 12e1c3665d893eb4477f8f6f2dcf7d20c171d2a2
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Tue Jan 21 15:16:21 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue Jan 21 15:16:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=12e1c366
7
8 media-video/vidify: Watch live music videos for songs playing
9
10 Next version of spotify-music-videos
11
12 Upstream will rename the package in the next release
13
14 Package-Manager: Portage-2.3.84, Repoman-2.3.20
15 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
16
17 media-video/vidify/metadata.xml | 17 ++++++++++
18 media-video/vidify/vidify-9999.ebuild | 63 +++++++++++++++++++++++++++++++++++
19 2 files changed, 80 insertions(+)
20
21 diff --git a/media-video/vidify/metadata.xml b/media-video/vidify/metadata.xml
22 new file mode 100644
23 index 0000000..a604fe4
24 --- /dev/null
25 +++ b/media-video/vidify/metadata.xml
26 @@ -0,0 +1,17 @@
27 +<?xml version="1.0" encoding="UTF-8"?>
28 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
29 +
30 +<pkgmetadata>
31 + <maintainer type="person">
32 + <email>andrewammerlaan@××××××.net</email>
33 + <name>Andrew Ammerlaan</name>
34 + </maintainer>
35 + <maintainer type="project">
36 + <email>proxy-maint@g.o</email>
37 + <name>Proxy Maintainers</name>
38 + </maintainer>
39 + <use>
40 + <flag name="vlc">Use python-vlc as backend for vidify</flag>
41 + <flag name="mpv">Use python-mpv as backend for vidify</flag>
42 + </use>
43 +</pkgmetadata>
44
45 diff --git a/media-video/vidify/vidify-9999.ebuild b/media-video/vidify/vidify-9999.ebuild
46 new file mode 100644
47 index 0000000..0fe24e7
48 --- /dev/null
49 +++ b/media-video/vidify/vidify-9999.ebuild
50 @@ -0,0 +1,63 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=7
55 +
56 +PYTHON_COMPAT=( python3_{6,7} )
57 +
58 +DISTUTILS_USE_SETUPTOOLS=rdepend
59 +
60 +inherit eutils desktop distutils-r1 git-r3 xdg-utils
61 +
62 +DESCRIPTION="Watch live music videos for the songs playing on your device"
63 +HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos"
64 +EGIT_REPO_URI="https://github.com/marioortizmanero/spotify-music-videos.git"
65 +EGIT_BRANCH="next"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS=
70 +
71 +IUSE="+vlc mpv"
72 +
73 +REQUIRED_USE="|| ( vlc mpv )"
74 +
75 +RDEPEND="
76 + dev-python/pydbus[${PYTHON_USEDEP}]
77 + dev-python/QtPy[gui,webengine,${PYTHON_USEDEP}]
78 + dev-python/lyricwikia[${PYTHON_USEDEP}]
79 + vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] )
80 + mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] )
81 + net-misc/youtube-dl[${PYTHON_USEDEP}]
82 + dev-python/appdirs[${PYTHON_USEDEP}]
83 + dev-python/tekore[${PYTHON_USEDEP}]"
84 +
85 +python_install_all() {
86 + distutils-r1_python_install_all
87 + newicon -s scalable vidify/gui/res/icon.svg ${PN}.svg
88 + if use mpv && use !vlc; then
89 + make_desktop_entry "${PN} --player mpv" "Vidify" "${PN}" "AudioVideo;Music"
90 + elif use mpv && use vlc; then
91 + make_desktop_entry "${PN} --player mpv" "Vidify (mpv)" "${PN}" "AudioVideo;Music"
92 + make_desktop_entry "${PN}" "Vidify (vlc)" "${PN}" "AudioVideo;Music"
93 + else
94 + make_desktop_entry "${PN}" "Vidify" "${PN}" "AudioVideo;Music"
95 + fi
96 +}
97 +
98 +pkg_postinst() {
99 + xdg_desktop_database_update
100 + xdg_icon_cache_update
101 +
102 + use mpv && elog "media-video/vlc is the default vidify player, to use mpv run 'vidify --player mpv' or set 'player = mpv' in the config file"
103 + use vlc && elog "If video playback is not working please check 'vidify --debug' for missing-codec-errors and recompile media-video/vlc with the missing codecs"
104 + use mpv && elog "If video playback is not working please check 'vidify --player mpv --debug' for missing-codec-errors and recompile media-video/mpv with the missing codecs"
105 +
106 + optfeature "'vidify --dark-mode'" dev-python/qdarkstyle
107 + optfeature "'vidify --audiosync'" media-video/vidify-audiosync
108 +}
109 +
110 +pkg_postrm() {
111 + xdg_desktop_database_update
112 + xdg_icon_cache_update
113 +}