From 9452a6e87b6c2c70513bc47a2470bf9f1168920e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Jun 2020 10:39:22 +0100 Subject: gentoo resync : 13.06.2020 --- media-sound/beets/Manifest | 5 +- media-sound/beets/beets-1.4.9-r1.ebuild | 140 ------------------------- media-sound/beets/beets-1.4.9-r2.ebuild | 172 +++++++++++++++++++++++++++++++ media-sound/beets/beets-9999.ebuild | 175 ++++++++++++++++++++++++++++++++ media-sound/beets/metadata.xml | 9 +- 5 files changed, 358 insertions(+), 143 deletions(-) delete mode 100644 media-sound/beets/beets-1.4.9-r1.ebuild create mode 100644 media-sound/beets/beets-1.4.9-r2.ebuild create mode 100644 media-sound/beets/beets-9999.ebuild (limited to 'media-sound/beets') diff --git a/media-sound/beets/Manifest b/media-sound/beets/Manifest index 1d7d5adb03cf..5455e672b0b9 100644 --- a/media-sound/beets/Manifest +++ b/media-sound/beets/Manifest @@ -1,3 +1,4 @@ DIST beets-1.4.9.tar.gz 1494459 BLAKE2B 2daf77caf395143813c8b288fc376b5aec01d49281d40ba5942daf9941891146d698a1517ced958e480c6f253eadb6a7e09029e079c97e6cc17d44ac18fa0e7b SHA512 616bad4ca3ecdd05d2f59846fd67215f476ce89cc34d63bc6351efcbaf1e33e5ca783cb8a716e8597b56a7e08e6a6dc15e64b51e89dd786bfb6c5d847f66de5a -EBUILD beets-1.4.9-r1.ebuild 3557 BLAKE2B c2374c28f18396541d8e473b8d0f2a4f7d9d6dd2cdd33c2e73e0504810fa21a77af3652ff6f377d79fe9bb4d762c6356416ab77430be70cbaf9e07378b8d76fb SHA512 70cbf115007ee7420fcf0ddae6185863547ba8d53ce86885a6a7d723a899d280373796fe6583523774e6bf5160199c6ceace0223162f73c592a6835f65a06962 -MISC metadata.xml 2480 BLAKE2B 362b835a16709336e8d6fc8858505107a4d060afb66dab31211daa664e942f7475626c462b4ded6738f600ccb14b92e0b2250256daae019da873d6cc7d18cf5f SHA512 1eae06f009e93147c6d63a0125003b00c8e6569ccc90d491bf7bf129bfcd10bfb87f82db35221bfb1f15c2db83b4f99a5ab2119f585ebbfb33358341a99fa12b +EBUILD beets-1.4.9-r2.ebuild 4825 BLAKE2B 0c33fb87a1c6aa41b1d8ced8aacfb103ab838b39c8718d7f85ae8571d906c22fed3e5362a322009a7483e08bd742a30265ccfd1c346674f32eeccd8253661bbb SHA512 8dc35097441730c9be57364488b9ce7e09e7b8e516d2863888e2cc6805336bff6d0f744ec2bd80150e605513fbd9dfb0ed9050eee730ecaa128f2d6f71e0726f +EBUILD beets-9999.ebuild 4939 BLAKE2B e2cd86d2abf9a8ada1e1421c62199b91ee10eae10f6bc4d35c780b07aa9a8d483863eb4dabbed79c8728c744ecb0a3acf6a9e3cd2073ad8f8bfc5da069678c1e SHA512 6f436b1e1487d07069f4d5a198c9671f1a20c482837ecff8ed6203f095c931ac319fc39aa7d92f5cb0057d09bfa3d22a3250508b02f03d074378a50329868986 +MISC metadata.xml 2696 BLAKE2B 7b78276fdc266ce63a0a89b6234119b01dd8bc39509610e66310683a5f3ad862a598f33243c699eed4ce56bb06630793e8920dc3651c771127ecbeb3b52ed9f4 SHA512 cba68bb5facea99bab3e50051f60c51a4ecb9200324925c7a4bbdaf9b7574c27db29b63ae88db1224240ebe33231565fab658196e199ea7a10c95ff8fc80ed5f diff --git a/media-sound/beets/beets-1.4.9-r1.ebuild b/media-sound/beets/beets-1.4.9-r1.ebuild deleted file mode 100644 index c8b7ae1874fe..000000000000 --- a/media-sound/beets/beets-1.4.9-r1.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# 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_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}] - 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}] - || ( - 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}" - -python_prepare_all() { - distutils-r1_python_prepare_all - - 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 - } - - 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/beets-1.4.9-r2.ebuild b/media-sound/beets/beets-1.4.9-r2.ebuild new file mode 100644 index 000000000000..6fa58e40129d --- /dev/null +++ b/media-sound/beets/beets-1.4.9-r2.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 bash-completion-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/beetbox/beets.git" + inherit git-r3 +else + MY_PV=${PV/_beta/-beta.} + MY_P=${PN}-${MY_PV} + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="Media library management system for obsessive-compulsive music geeks" +HOMEPAGE="http://beets.io/ https://pypi.org/project/beets/" + +LICENSE="MIT" +SLOT="0" +IUSE="badfiles chromaprint discogs doc ffmpeg gstreamer icu lastfm mpd replaygain test thumbnail webserver" + +RDEPEND="${DEPEND}" +DEPEND=" + $(python_gen_cond_dep ' + test? ( + dev-python/wheel[${PYTHON_MULTI_USEDEP}] + dev-python/beautifulsoup[${PYTHON_MULTI_USEDEP}] + dev-python/flask[${PYTHON_MULTI_USEDEP}] + dev-python/mock[${PYTHON_MULTI_USEDEP}] + dev-python/rarfile[${PYTHON_MULTI_USEDEP}] + dev-python/responses[${PYTHON_MULTI_USEDEP}] + dev-python/pyxdg[${PYTHON_MULTI_USEDEP}] + ) + >=dev-python/jellyfish-0.7.1[${PYTHON_MULTI_USEDEP}] + dev-python/munkres[${PYTHON_MULTI_USEDEP}] + >=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_MULTI_USEDEP}] + dev-python/pyyaml[${PYTHON_MULTI_USEDEP}] + dev-python/requests[${PYTHON_MULTI_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_MULTI_USEDEP}] + >=dev-python/six-1.9[${PYTHON_MULTI_USEDEP}] + dev-python/unidecode[${PYTHON_MULTI_USEDEP}] + >=media-libs/mutagen-1.33[${PYTHON_MULTI_USEDEP}] + badfiles? ( + media-libs/flac + media-sound/mp3val + ) + chromaprint? ( + dev-python/pyacoustid[${PYTHON_MULTI_USEDEP}] + media-libs/chromaprint[tools] + ) + discogs? ( dev-python/discogs-client[${PYTHON_MULTI_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_MULTI_USEDEP}] ) + mpd? ( + dev-python/bluelet[${PYTHON_MULTI_USEDEP}] + dev-python/python-mpd[${PYTHON_MULTI_USEDEP}] + ) + replaygain? ( + gstreamer? ( + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + media-plugins/gst-plugins-libav:1.0 + ) + !gstreamer? ( media-sound/mp3gain ) + ) + thumbnail? ( + dev-python/pyxdg[${PYTHON_MULTI_USEDEP}] + || ( + dev-python/pillow[${PYTHON_MULTI_USEDEP}] + media-gfx/imagemagick + ) + ) + webserver? ( + dev-python/flask[${PYTHON_MULTI_USEDEP}] + dev-python/flask-cors[${PYTHON_MULTI_USEDEP}] + ) + ')" +BDEPEND="dev-python/sphinx" + +DOCS=( README.rst docs/changelog.rst ) + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + + 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 + } + + 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 + rm test/test_mpdstats.py || die + fi + if ! use webserver; then + rm test/test_web.py || die "Failed to remove test_web.py" + fi + if use test; then + # Those test need network + rm test/test_art.py || die + rm test/test_discogs.py || die + rm test/test_embyupdate.py || die + rm test/test_lastgenre.py || die + rm test/test_spotify.py || die + # rm test/test_plexupdate.py + rm test/test_thumbnails.py || die + # Not working + rm test/test_replaygain.py || die + # Not working + rm test/test_convert.py || die + # Not working and dropped in master + rm test/test_mediafile.py || die + fi +} + +python_compile_all() { + esetup.py build_sphinx -b man --build-dir=docs/build + use doc && esetup.py build_sphinx -b html --build-dir=docs/build +} + +python_install_all() { + distutils-r1_python_install_all + + doman docs/build/man/* + use doc && local HTML_DOCS=( docs/build/html/. ) + einstalldocs + + "${D}$(python_get_scriptdir)/beet" completion > "${T}/beet.bashcomp" + newbashcomp "${T}/beet.bashcomp" beet +} diff --git a/media-sound/beets/beets-9999.ebuild b/media-sound/beets/beets-9999.ebuild new file mode 100644 index 000000000000..01d7ec3b1be1 --- /dev/null +++ b/media-sound/beets/beets-9999.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 bash-completion-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/beetbox/beets.git" + inherit git-r3 +else + MY_PV=${PV/_beta/-beta.} + MY_P=${PN}-${MY_PV} + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="Media library management system for obsessive-compulsive music geeks" +HOMEPAGE="http://beets.io/ https://pypi.org/project/beets/" + +LICENSE="MIT" +SLOT="0" +IUSE="badfiles chromaprint discogs doc ffmpeg gstreamer icu lastfm mpd replaygain test thumbnail webserver" + +RDEPEND="${DEPEND}" +DEPEND=" + $(python_gen_cond_dep ' + test? ( + dev-python/wheel[${PYTHON_MULTI_USEDEP}] + dev-python/beautifulsoup[${PYTHON_MULTI_USEDEP}] + dev-python/flask[${PYTHON_MULTI_USEDEP}] + dev-python/mock[${PYTHON_MULTI_USEDEP}] + dev-python/rarfile[${PYTHON_MULTI_USEDEP}] + dev-python/responses[${PYTHON_MULTI_USEDEP}] + dev-python/pyxdg[${PYTHON_MULTI_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_MULTI_USEDEP}] + ) + >=dev-python/jellyfish-0.7.1[${PYTHON_MULTI_USEDEP}] + dev-python/munkres[${PYTHON_MULTI_USEDEP}] + >=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_MULTI_USEDEP}] + dev-python/pyyaml[${PYTHON_MULTI_USEDEP}] + dev-python/requests[${PYTHON_MULTI_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_MULTI_USEDEP}] + >=dev-python/six-1.9[${PYTHON_MULTI_USEDEP}] + dev-python/unidecode[${PYTHON_MULTI_USEDEP}] + >=media-libs/mutagen-1.33[${PYTHON_MULTI_USEDEP}] + >=dev-python/confuse-1.0.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/mediafile-0.2.0[${PYTHON_MULTI_USEDEP}] + badfiles? ( + media-libs/flac + media-sound/mp3val + ) + chromaprint? ( + dev-python/pyacoustid[${PYTHON_MULTI_USEDEP}] + media-libs/chromaprint[tools] + ) + discogs? ( dev-python/discogs-client[${PYTHON_MULTI_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_MULTI_USEDEP}] ) + mpd? ( + dev-python/bluelet[${PYTHON_MULTI_USEDEP}] + dev-python/python-mpd[${PYTHON_MULTI_USEDEP}] + ) + replaygain? ( + gstreamer? ( + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + media-plugins/gst-plugins-libav:1.0 + ) + !gstreamer? ( media-sound/mp3gain ) + ) + thumbnail? ( + dev-python/pyxdg[${PYTHON_MULTI_USEDEP}] + || ( + dev-python/pillow[${PYTHON_MULTI_USEDEP}] + media-gfx/imagemagick + ) + ) + webserver? ( + dev-python/flask[${PYTHON_MULTI_USEDEP}] + dev-python/flask-cors[${PYTHON_MULTI_USEDEP}] + ) + ')" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_MULTI_USEDEP}] + ')" + +DOCS=( README.rst docs/changelog.rst ) + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + + 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 + } + + 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 + rm test/test_mpdstats.py || die + fi + if ! use webserver; then + rm test/test_web.py || die "Failed to remove test_web.py" + fi + if use test; then + # Those test need network + rm test/test_art.py || die + rm test/test_discogs.py || die + rm test/test_embyupdate.py || die + rm test/test_lastgenre.py || die + rm test/test_spotify.py || die + # rm test/test_plexupdate.py + rm test/test_thumbnails.py || die + # Not working + rm test/test_replaygain.py || die + # Not working + rm test/test_convert.py || die + fi +} + +python_compile_all() { + esetup.py build_sphinx -b man --build-dir=docs/build + use doc && esetup.py build_sphinx -b html --build-dir=docs/build +} + +python_install_all() { + distutils-r1_python_install_all + + doman docs/build/man/* + use doc && local HTML_DOCS=( docs/build/html/. ) + einstalldocs + + "${D}$(python_get_scriptdir)/beet" completion > "${T}/beet.bashcomp" + newbashcomp "${T}/beet.bashcomp" beet +} diff --git a/media-sound/beets/metadata.xml b/media-sound/beets/metadata.xml index 00d7ac2d1354..544682635755 100644 --- a/media-sound/beets/metadata.xml +++ b/media-sound/beets/metadata.xml @@ -1,7 +1,14 @@ - + + guillaumeseren@gmail.com + Guillaume Seren + + + proxy-maint@gentoo.org + Proxy Maintainers + The purpose of beets is to get your music collection right once and for all. It catalogs your collection, automatically improving its metadata as -- cgit v1.2.3