diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
commit | f1af93971b7490792d8541bc790e0d8c6d787059 (patch) | |
tree | a38046712bbc3a3844d77452d16c84e716caa3d4 /media-sound/beets | |
parent | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff) |
gentoo resync : 06.08.2019
Diffstat (limited to 'media-sound/beets')
-rw-r--r-- | media-sound/beets/Manifest | 4 | ||||
-rw-r--r-- | media-sound/beets/beets-1.4.9.ebuild | 142 | ||||
-rw-r--r-- | media-sound/beets/metadata.xml | 79 |
3 files changed, 187 insertions, 38 deletions
diff --git a/media-sound/beets/Manifest b/media-sound/beets/Manifest index e80cf1741f7d..366c4e371379 100644 --- a/media-sound/beets/Manifest +++ b/media-sound/beets/Manifest @@ -1,4 +1,6 @@ AUX beets-1.4.8-imagemagick-detection.patch 770 BLAKE2B 120e0af71fe9c63548f49bf20fa94ec20f8b0cfb8395b319d6f8e2a62b5212adb229691c35297615a3b0272b215c87e1ff861e1887d227fc9460501900edae48 SHA512 6c5da1591e0bfc0936dca52c48f74b80b57c18bb0398877d38deb7d448df9466a8544628e0ce6948204a8deae4679c8dd454dab9a2f0778a236eaa60387a1751 DIST beets-1.4.8.tar.gz 1493539 BLAKE2B 63c44f05bbf139cd43b5f5ada972fd30beeea2303c6b479b1be35ea21fabb0039b3c8eb6e90f8f1b2a61fed36d97ce09a32c6346cbd3b84c7c978e796505f4b4 SHA512 449bed88185a5ecb4781719e092c2428ddc52fb8084033db64a4c0eca8899154192e7cea82517993d60326c7fe39b26429584ba368ffc35800f722d8d6a03217 +DIST beets-1.4.9.tar.gz 1494459 BLAKE2B 2daf77caf395143813c8b288fc376b5aec01d49281d40ba5942daf9941891146d698a1517ced958e480c6f253eadb6a7e09029e079c97e6cc17d44ac18fa0e7b SHA512 616bad4ca3ecdd05d2f59846fd67215f476ce89cc34d63bc6351efcbaf1e33e5ca783cb8a716e8597b56a7e08e6a6dc15e64b51e89dd786bfb6c5d847f66de5a EBUILD beets-1.4.8-r1.ebuild 3664 BLAKE2B 094cc8dfbf32cea571e4789db182a60ad07eeb772a47be47d45843eefe70c20e619f7524e98f533d14e899983b534d7b5c7aeeeed4e8aa00a723ec325d4449de SHA512 62f4c4d9619fc07388427830fc3a8248e7b7477c6a18a451b75e4291dd928adf40db39ddf606b2b1a9feeaa5e4728796d184b2e905aadec09ff0946a7961d8c0 -MISC metadata.xml 2395 BLAKE2B 0df8a5d3fa7b94b5b8e3e45f25e2c4dc0716c438dd51a6061f2276e20bf9779847c34bc571bcdd8948289c75c879cae6ef76fa8432a550855e9f74966fb80374 SHA512 ea2c961e7380a8c05e0e90b34f50323ca932e06ba33d5a214a633e8eba4281577993a870a7d294f286a90c0492256d3142b9e17aa02e2ea129c9c28e24bf90ec +EBUILD beets-1.4.9.ebuild 3614 BLAKE2B ea994ce3c35058ab24813c663b5182650c06e9d5f0f3e875065ba09abdb413031a0a80047b3c9d179887be9db6d765e6ecc868b236aa550ab502b1a39227b9e4 SHA512 8185506e4c7c3b343bd072c169d352c39507fc83dcbffe9e15752a227ce03532c14439dd63e03707e98c3f17201149a1b785fd3512d9ad9aa53b0012197d6230 +MISC metadata.xml 2707 BLAKE2B f178a50b9b107e6c5083cc255750416751d0e077f95fc8111b826e458e30d72ce978fe8c8a29056ad076b121fe2690fd636212eb68c758eedb4f380afd29a6d9 SHA512 58ea485657e54c0f1aecbbed49a6c3ce683ef5560f66a02d95c7c89de597a038499b8268771db9fe344dd9baaafe4af750c9402f1725bb791c89dbf4de90d705 diff --git a/media-sound/beets/beets-1.4.9.ebuild b/media-sound/beets/beets-1.4.9.ebuild new file mode 100644 index 000000000000..e2da8e5f2f7f --- /dev/null +++ b/media-sound/beets/beets-1.4.9.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV=${PV/_beta/-beta.} +MY_P=${PN}-${MY_PV} + +PYTHON_COMPAT=( python3_{5,6} ) +PYTHON_REQ_USE="sqlite" +inherit distutils-r1 + +DESCRIPTION="Media library management system for obsessive-compulsive music geeks" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +HOMEPAGE="http://beets.io/ https://pypi.org/project/beets/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="MIT" +IUSE="badfiles chromaprint discogs doc ffmpeg gstreamer icu lastfm mpd replaygain test thumbnail webserver" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +" +DEPEND=" + >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}] + dev-python/munkres[${PYTHON_USEDEP}] + >=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_USEDEP}] + >=dev-python/six-1.9[${PYTHON_USEDEP}] + dev-python/unidecode[${PYTHON_USEDEP}] + >=media-libs/mutagen-1.33[${PYTHON_USEDEP}] + virtual/python-enum34[${PYTHON_USEDEP}] + badfiles? ( + media-libs/flac + media-sound/mp3val + ) + chromaprint? ( + dev-python/pyacoustid[${PYTHON_USEDEP}] + media-libs/chromaprint[tools] + ) + discogs? ( dev-python/discogs-client[${PYTHON_USEDEP}] ) + ffmpeg? ( media-video/ffmpeg:0[encode] ) + gstreamer? ( + media-libs/gst-plugins-good:1.0 + media-libs/gst-plugins-bad:1.0 + ) + icu? ( dev-db/sqlite[icu] ) + lastfm? ( dev-python/pylast[${PYTHON_USEDEP}] ) + mpd? ( + dev-python/bluelet[${PYTHON_USEDEP}] + dev-python/python-mpd[${PYTHON_USEDEP}] + ) + replaygain? ( + gstreamer? ( + dev-python/pygobject:3[${PYTHON_USEDEP}] + media-plugins/gst-plugins-libav:1.0 + ) + !gstreamer? ( media-sound/mp3gain ) + ) + thumbnail? ( + dev-python/pyxdg[${PYTHON_USEDEP}] + virtual/python-pathlib[${PYTHON_USEDEP}] + || ( + dev-python/pillow[${PYTHON_USEDEP}] + media-gfx/imagemagick + ) + ) + webserver? ( + dev-python/flask[${PYTHON_USEDEP}] + dev-python/flask-cors[${PYTHON_USEDEP}] + ) +" +RDEPEND="${DEPEND}" + +RESTRICT="test" # tests broken in 1.4.3 already + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + rm_use_plugins() { + [[ -n "${1}" ]] || die "rm_use_plugins: No use option given" + local use=${1} + local plugins=${use} + use ${use} && return + einfo "no ${use}:" + [[ $# -gt 1 ]] && plugins="${@:2}" + for arg in ${plugins[@]}; do + einfo " removing ${arg}" + if [[ -e "beetsplug/${arg}.py" ]]; then + rm beetsplug/${arg}.py || die "Unable to remove ${arg} plugin" + fi + if [[ -d "beetsplug/${arg}" ]]; then + rm -r beetsplug/${arg} || die "Unable to remove ${arg} plugin" + fi + sed -e "s:'beetsplug.${arg}',::" -i setup.py || \ + die "Unable to disable ${arg} plugin " + done + } + + default + + rm_use_plugins chromaprint chroma + rm_use_plugins ffmpeg convert + rm_use_plugins icu loadext + rm_use_plugins lastfm lastgenre lastimport + rm_use_plugins mpd bpd mpdstats + rm_use_plugins webserver web + rm_use_plugins thumbnail thumbnails + + # remove plugins that do not have appropriate dependencies installed + for flag in badfiles discogs replaygain; do + rm_use_plugins ${flag} + done + + if ! use mpd; then + rm test/test_player.py || die + fi +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cd test || die + if ! use webserver; then + rm test_web.py || die "Failed to remove test_web.py" + fi + "${EPYTHON}" testall.py || die "Testsuite failed" +} + +python_install_all() { + distutils-r1_python_install_all + + doman man/beet.1 man/beetsconfig.5 + use doc && local HTML_DOCS=( docs/_build/html/. ) + einstalldocs +} diff --git a/media-sound/beets/metadata.xml b/media-sound/beets/metadata.xml index a30fde9062e0..c94e37c4b59b 100644 --- a/media-sound/beets/metadata.xml +++ b/media-sound/beets/metadata.xml @@ -1,43 +1,48 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>sound@gentoo.org</email> - </maintainer> - <longdescription lang="en"> - The purpose of beets is to get your music collection right once and for - all. It catalogs your collection, automatically improving its metadata as - it goes using the MusicBrainz database. (It also downloads cover art for - albums it imports.) Then it provides a bouquet of tools for manipulating - and accessing your music. + <maintainer type="person"> + <email>bernardo@standard.ai</email> + <name>Bernardo Meurer</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Gentoo Proxy Maintainers Project</name> + </maintainer> + <longdescription lang="en"> + The purpose of beets is to get your music collection right once and for + all. It catalogs your collection, automatically improving its metadata as + it goes using the MusicBrainz database. (It also downloads cover art for + albums it imports.) Then it provides a bouquet of tools for manipulating + and accessing your music. - Because beets is designed as a library, it can do almost anything you can - imagine for your music collection. Via plugins, beets becomes a panacea: - * Embed and extract album art from files’ tags. - * Listen to your library with a music player that speaks the MPD protocol - and works with a staggering variety of interfaces. - * Fetch lyrics for all your songs from databases on the Web. - * Manage your MusicBrainz music collection. - * Analyze music files’ metadata from the command line. - * Clean up crufty tags left behind by other, less-awesome tools. - * Browse your music library graphically through a Web browser and play it - in any browser that supports HTML5 Audio. + Because beets is designed as a library, it can do almost anything you can + imagine for your music collection. Via plugins, beets becomes a panacea: + * Embed and extract album art from files’ tags. + * Listen to your library with a music player that speaks the MPD protocol + and works with a staggering variety of interfaces. + * Fetch lyrics for all your songs from databases on the Web. + * Manage your MusicBrainz music collection. + * Analyze music files’ metadata from the command line. + * Clean up crufty tags left behind by other, less-awesome tools. + * Browse your music library graphically through a Web browser and play it + in any browser that supports HTML5 Audio. - If beets doesn’t do what you want yet, writing your own plugin is - shockingly simple if you know a little Python. - </longdescription> - <use> - <flag name="badfiles">Validate MP3 & FLAC files</flag> - <flag name="chromaprint">Enable support for acoustic fingerprinting plugin using <pkg>media-libs/chromaprint</pkg></flag> - <flag name="ffmpeg">Enable support for the convert plugin to transcode files via <pkg>media-video/ffmpeg</pkg></flag> - <flag name="discogs">Enable support for the discogs API plugin</flag> - <flag name="lastfm">Enable support for importing personal last.fm playcounts and music genres from last.fm tags</flag> - <flag name="mpd">Enable support for <pkg>media-sound/mpd</pkg> server emulation and statistic gathered from <pkg>media-sound/mpd</pkg></flag> - <flag name="replaygain">Enable support for Replay Gain metadata calculation during import</flag> - <flag name="thumbnail">Enable album thumbnails generation</flag> - <flag name="webserver">Enable embedded webserver support through <pkg>dev-python/flask</pkg></flag> - </use> - <upstream> - <remote-id type="pypi">beets</remote-id> - </upstream> + If beets doesn’t do what you want yet, writing your own plugin is + shockingly simple if you know a little Python. + </longdescription> + <use> + <flag name="badfiles">Validate MP3 & FLAC files</flag> + <flag name="chromaprint">Enable support for acoustic fingerprinting plugin using <pkg>media-libs/chromaprint</pkg></flag> + <flag name="ffmpeg">Enable support for the convert plugin to transcode files via <pkg>media-video/ffmpeg</pkg></flag> + <flag name="discogs">Enable support for the discogs API plugin</flag> + <flag name="lastfm">Enable support for importing personal last.fm playcounts and music genres from last.fm tags</flag> + <flag name="mpd">Enable support for <pkg>media-sound/mpd</pkg> server emulation and statistic gathered from <pkg>media-sound/mpd</pkg></flag> + <flag name="replaygain">Enable support for Replay Gain metadata calculation during import</flag> + <flag name="thumbnail">Enable album thumbnails generation</flag> + <flag name="webserver">Enable embedded webserver support through <pkg>dev-python/flask</pkg></flag> + </use> + <upstream> + <remote-id type="pypi">beets</remote-id> + </upstream> </pkgmetadata> |