From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 693CC138336 for ; Wed, 5 Sep 2018 21:08:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 702F6E07A7; Wed, 5 Sep 2018 21:08:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33130E07A7 for ; Wed, 5 Sep 2018 21:08:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 07917335C2B for ; Wed, 5 Sep 2018 21:08:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD53A3BE for ; Wed, 5 Sep 2018 21:08:03 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1536181601.9923e14b1646b58c044afae815684290744fa1f3.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/beets/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/beets/Manifest media-sound/beets/beets-1.4.7.ebuild media-sound/beets/metadata.xml X-VCS-Directories: media-sound/beets/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 9923e14b1646b58c044afae815684290744fa1f3 X-VCS-Branch: master Date: Wed, 5 Sep 2018 21:08:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d937fde6-722f-4d95-88f3-64696b831428 X-Archives-Hash: a1bc785bac26ad693fa8ff0cec797002 commit: 9923e14b1646b58c044afae815684290744fa1f3 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Aug 22 14:11:05 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Sep 5 21:06:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9923e14b media-sound/beets: 1.4.7 version bump with many improvements EAPI-6 bump. python3 support. Decouple use flag names from plugin names with rm_use_plugins() Consolidate various use flags and use more common names. Re-add USE replaygain. Add missing || die. Add missing USE=badfiles handling. Fix and sort RDEPENDs. Tests are broken since at least 1.4.3. Bug: https://bugs.gentoo.org/625974 Closes: https://bugs.gentoo.org/563380 Closes: https://bugs.gentoo.org/625578 Package-Manager: Portage-2.3.48, Repoman-2.3.10 media-sound/beets/Manifest | 1 + media-sound/beets/beets-1.4.7.ebuild | 139 +++++++++++++++++++++++++++++++++++ media-sound/beets/metadata.xml | 6 ++ 3 files changed, 146 insertions(+) diff --git a/media-sound/beets/Manifest b/media-sound/beets/Manifest index f620929dd77..6f517f7471e 100644 --- a/media-sound/beets/Manifest +++ b/media-sound/beets/Manifest @@ -1 +1,2 @@ DIST beets-1.4.3.tar.gz 1428494 BLAKE2B 29adc617c4efbb304b05c6bc027a09fd34c11af70b22a86a329fe9048de31828f729114db929e97b103a6f6d8210c0b74716f327f8b4f853f745433fea5f1e14 SHA512 b95a9056abae5da3db7786342e8969b4f9c86c2c4589dd48bad244d28ef3d3da4900d3d3eaee1e45964960c62ecaa8d754a33829e0d7f497f01ecc763c0f492d +DIST beets-1.4.7.tar.gz 1458621 BLAKE2B f7dd19a7dd92415c29e9b1a7932ba33cb5d43000d35a58b2f42c1487db68c6374dd159960f67e1ac68722693d91d364b24297fb2c0c86a39b82fe5b40a1e739d SHA512 6663a2ffece208a510fce9f5d3dd9c8e617cab60cdb994f7bdb13fd759cfea8882290c75c3cdf4f6de9c7d9b78845b6ed29f98b41c787c89ff8782e4ac3ec152 diff --git a/media-sound/beets/beets-1.4.7.ebuild b/media-sound/beets/beets-1.4.7.ebuild new file mode 100644 index 00000000000..7a21e504abd --- /dev/null +++ b/media-sound/beets/beets-1.4.7.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{5,6}} ) +PYTHON_REQ_USE="sqlite" +inherit distutils-r1 + +MY_PV=${PV/_beta/-beta.} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="A 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 doc discogs ffmpeg flac gstreamer lastfm mpd ogg opus replaygain test thumbnail webserver" + +RDEPEND=" + dev-python/jellyfish[${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}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + ffmpeg? ( media-video/ffmpeg:0[encode] ) + 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-libs/gstreamer:1.0[introspection] + media-libs/gst-plugins-base:1.0[ogg?] + media-libs/gst-plugins-good:1.0 + flac? ( media-plugins/gst-plugins-flac:1.0 ) + opus? ( media-plugins/gst-plugins-opus: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}] + ) +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] +" + +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 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 -f 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 + "${PYTHON}" 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 46b548c1ee8..c57948828ca 100644 --- a/media-sound/beets/metadata.xml +++ b/media-sound/beets/metadata.xml @@ -30,15 +30,21 @@ Validate MP3 & FLAC files Enable support for media-sound/mpd server emulation Enable support for acoustic fingerprinting plugin using media-libs/chromaprint + Enable support for acoustic fingerprinting plugin using media-libs/chromaprint Enable support for the convert plugin which makes it possible to transcode files + Enable support for the convert plugin to transcode files via media-video/ffmpeg Enable support for the discogs API plugin + Enable support for importing personal last.fm playcounts and music genres from last.fm tags Enable support for importing music genres from last.fm tags Enable support for importing your last.fm playcounts + Enable support for media-sound/mpd server emulation and statistic gathered from media-sound/mpd Enable support for collecting statistic about listening habits from media-sound/mpd Enable opus support in gstreamer-based replaygain Enable support for Replay Gain metadata calculation during import + Enable album thumbnails generation Generate thumbnails for albums Enable embedded webserver support through dev-python/flask + Enable embedded webserver support through dev-python/flask beets