Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/beets/
Date: Fri, 30 Aug 2019 11:46:38
Message-Id: 1567165519.aa1f3c48ab47e76595f59cbdc73d79a2e48e2bf8.juippis@gentoo
1 commit: aa1f3c48ab47e76595f59cbdc73d79a2e48e2bf8
2 Author: Bernardo Meurer <meurerbernardo <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 30 21:30:30 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 30 11:45:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa1f3c48
7
8 media-sound/beets: bump to 1.4.9
9
10 Closes: https://bugs.gentoo.org/689182
11 Package-Manager: Portage-2.3.69, Repoman-2.3.16
12 Signed-off-by: Bernardo Meurer <bernardo <AT> standard.ai>
13 Closes: https://github.com/gentoo/gentoo/pull/12582
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 media-sound/beets/Manifest | 1 +
17 media-sound/beets/beets-1.4.9.ebuild | 142 +++++++++++++++++++++++++++++++++++
18 2 files changed, 143 insertions(+)
19
20 diff --git a/media-sound/beets/Manifest b/media-sound/beets/Manifest
21 index a75afe9cac4..98aff304f12 100644
22 --- a/media-sound/beets/Manifest
23 +++ b/media-sound/beets/Manifest
24 @@ -1 +1,2 @@
25 DIST beets-1.4.8.tar.gz 1493539 BLAKE2B 63c44f05bbf139cd43b5f5ada972fd30beeea2303c6b479b1be35ea21fabb0039b3c8eb6e90f8f1b2a61fed36d97ce09a32c6346cbd3b84c7c978e796505f4b4 SHA512 449bed88185a5ecb4781719e092c2428ddc52fb8084033db64a4c0eca8899154192e7cea82517993d60326c7fe39b26429584ba368ffc35800f722d8d6a03217
26 +DIST beets-1.4.9.tar.gz 1494459 BLAKE2B 2daf77caf395143813c8b288fc376b5aec01d49281d40ba5942daf9941891146d698a1517ced958e480c6f253eadb6a7e09029e079c97e6cc17d44ac18fa0e7b SHA512 616bad4ca3ecdd05d2f59846fd67215f476ce89cc34d63bc6351efcbaf1e33e5ca783cb8a716e8597b56a7e08e6a6dc15e64b51e89dd786bfb6c5d847f66de5a
27
28 diff --git a/media-sound/beets/beets-1.4.9.ebuild b/media-sound/beets/beets-1.4.9.ebuild
29 new file mode 100644
30 index 00000000000..e2da8e5f2f7
31 --- /dev/null
32 +++ b/media-sound/beets/beets-1.4.9.ebuild
33 @@ -0,0 +1,142 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +MY_PV=${PV/_beta/-beta.}
40 +MY_P=${PN}-${MY_PV}
41 +
42 +PYTHON_COMPAT=( python3_{5,6} )
43 +PYTHON_REQ_USE="sqlite"
44 +inherit distutils-r1
45 +
46 +DESCRIPTION="Media library management system for obsessive-compulsive music geeks"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +HOMEPAGE="http://beets.io/ https://pypi.org/project/beets/"
49 +
50 +KEYWORDS="~amd64 ~x86"
51 +SLOT="0"
52 +LICENSE="MIT"
53 +IUSE="badfiles chromaprint discogs doc ffmpeg gstreamer icu lastfm mpd replaygain test thumbnail webserver"
54 +
55 +BDEPEND="
56 + dev-python/setuptools[${PYTHON_USEDEP}]
57 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
58 +"
59 +DEPEND="
60 + >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}]
61 + dev-python/munkres[${PYTHON_USEDEP}]
62 + >=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_USEDEP}]
63 + dev-python/pyyaml[${PYTHON_USEDEP}]
64 + dev-python/requests[${PYTHON_USEDEP}]
65 + dev-python/requests-oauthlib[${PYTHON_USEDEP}]
66 + >=dev-python/six-1.9[${PYTHON_USEDEP}]
67 + dev-python/unidecode[${PYTHON_USEDEP}]
68 + >=media-libs/mutagen-1.33[${PYTHON_USEDEP}]
69 + virtual/python-enum34[${PYTHON_USEDEP}]
70 + badfiles? (
71 + media-libs/flac
72 + media-sound/mp3val
73 + )
74 + chromaprint? (
75 + dev-python/pyacoustid[${PYTHON_USEDEP}]
76 + media-libs/chromaprint[tools]
77 + )
78 + discogs? ( dev-python/discogs-client[${PYTHON_USEDEP}] )
79 + ffmpeg? ( media-video/ffmpeg:0[encode] )
80 + gstreamer? (
81 + media-libs/gst-plugins-good:1.0
82 + media-libs/gst-plugins-bad:1.0
83 + )
84 + icu? ( dev-db/sqlite[icu] )
85 + lastfm? ( dev-python/pylast[${PYTHON_USEDEP}] )
86 + mpd? (
87 + dev-python/bluelet[${PYTHON_USEDEP}]
88 + dev-python/python-mpd[${PYTHON_USEDEP}]
89 + )
90 + replaygain? (
91 + gstreamer? (
92 + dev-python/pygobject:3[${PYTHON_USEDEP}]
93 + media-plugins/gst-plugins-libav:1.0
94 + )
95 + !gstreamer? ( media-sound/mp3gain )
96 + )
97 + thumbnail? (
98 + dev-python/pyxdg[${PYTHON_USEDEP}]
99 + virtual/python-pathlib[${PYTHON_USEDEP}]
100 + || (
101 + dev-python/pillow[${PYTHON_USEDEP}]
102 + media-gfx/imagemagick
103 + )
104 + )
105 + webserver? (
106 + dev-python/flask[${PYTHON_USEDEP}]
107 + dev-python/flask-cors[${PYTHON_USEDEP}]
108 + )
109 +"
110 +RDEPEND="${DEPEND}"
111 +
112 +RESTRICT="test" # tests broken in 1.4.3 already
113 +
114 +S="${WORKDIR}/${MY_P}"
115 +
116 +src_prepare() {
117 + rm_use_plugins() {
118 + [[ -n "${1}" ]] || die "rm_use_plugins: No use option given"
119 + local use=${1}
120 + local plugins=${use}
121 + use ${use} && return
122 + einfo "no ${use}:"
123 + [[ $# -gt 1 ]] && plugins="${@:2}"
124 + for arg in ${plugins[@]}; do
125 + einfo " removing ${arg}"
126 + if [[ -e "beetsplug/${arg}.py" ]]; then
127 + rm beetsplug/${arg}.py || die "Unable to remove ${arg} plugin"
128 + fi
129 + if [[ -d "beetsplug/${arg}" ]]; then
130 + rm -r beetsplug/${arg} || die "Unable to remove ${arg} plugin"
131 + fi
132 + sed -e "s:'beetsplug.${arg}',::" -i setup.py || \
133 + die "Unable to disable ${arg} plugin "
134 + done
135 + }
136 +
137 + default
138 +
139 + rm_use_plugins chromaprint chroma
140 + rm_use_plugins ffmpeg convert
141 + rm_use_plugins icu loadext
142 + rm_use_plugins lastfm lastgenre lastimport
143 + rm_use_plugins mpd bpd mpdstats
144 + rm_use_plugins webserver web
145 + rm_use_plugins thumbnail thumbnails
146 +
147 + # remove plugins that do not have appropriate dependencies installed
148 + for flag in badfiles discogs replaygain; do
149 + rm_use_plugins ${flag}
150 + done
151 +
152 + if ! use mpd; then
153 + rm test/test_player.py || die
154 + fi
155 +}
156 +
157 +python_compile_all() {
158 + use doc && emake -C docs html
159 +}
160 +
161 +python_test() {
162 + cd test || die
163 + if ! use webserver; then
164 + rm test_web.py || die "Failed to remove test_web.py"
165 + fi
166 + "${EPYTHON}" testall.py || die "Testsuite failed"
167 +}
168 +
169 +python_install_all() {
170 + distutils-r1_python_install_all
171 +
172 + doman man/beet.1 man/beetsconfig.5
173 + use doc && local HTML_DOCS=( docs/_build/html/. )
174 + einstalldocs
175 +}