From ef0fedb39c21a343a3f316726f272bad9005b22c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 12 Mar 2025 01:49:51 +0000 Subject: gentoo auto-resync : 12:03:2025 - 01:49:51 --- media-sound/beets/Manifest | 6 +- .../beets/beets-1.7.0_pre20240501-r1.ebuild | 174 +++++++++++++++++++++ media-sound/beets/beets-1.7.0_pre20240501.ebuild | 174 --------------------- media-sound/beets/beets-2.2.0-r1.ebuild | 174 +++++++++++++++++++++ media-sound/beets/beets-2.2.0.ebuild | 174 --------------------- media-sound/beets/beets-9999.ebuild | 6 +- 6 files changed, 354 insertions(+), 354 deletions(-) create mode 100644 media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild delete mode 100644 media-sound/beets/beets-1.7.0_pre20240501.ebuild create mode 100644 media-sound/beets/beets-2.2.0-r1.ebuild delete mode 100644 media-sound/beets/beets-2.2.0.ebuild (limited to 'media-sound/beets') diff --git a/media-sound/beets/Manifest b/media-sound/beets/Manifest index 6c4b955e5363..cd4e48772d5f 100644 --- a/media-sound/beets/Manifest +++ b/media-sound/beets/Manifest @@ -1,6 +1,6 @@ DIST beets-1.7.0_pre20240501.gh.tar.gz 2247319 BLAKE2B e215c8a2a30a44d298746351be4fa2de1cebb7d6aec2bc7dfc679b133ea5eddefec20d038aa1aa1d734b176c09163b93f917c6c29ea5115c4c2349e090c8c5df SHA512 f397c72b481d7d8822db598ab37c99d0b9063ae45455c0d34116fab7b5a4cc683a3357bdfe436181b1dea46ee05192cc37faf355b5e093d63c2e440e523b92bc DIST beets-2.2.0.gh.tar.gz 2414560 BLAKE2B 24c68b27c0d35afb26a39505810ba8ae224173c6f0e36ca551f32cb78250a6b0e777a603c47fd18b6d7e6cdecc5fcaa6b64fe4fd33379de8d6b545dbd49f369f SHA512 ff3a2ea7820129f4b793766ac7dbe3bcfb353563ed3b64ada47db3ba64930caa5841f6cbd20e97e58a4a9eb340bc9e8cd90c7fc188f11420a3cb680ea7a25e48 -EBUILD beets-1.7.0_pre20240501.ebuild 6153 BLAKE2B f630dc3ee3ac6b7397e52ba2fdf15b19538d70179ac854cf292832351d192cc8ffd583815b47d2aea170f7b4e337173a9e270dedb45e7ec484fa4382fba4586c SHA512 e74fe44c6fe0ee290b027276e102d6019d04c27a88ed60e1d218a6fd8b8e86ff4e26188b9dab500ac67018becc75e3ff028b803c8737c956eec3d570853bb3f1 -EBUILD beets-2.2.0.ebuild 5862 BLAKE2B 73beb81dababe79d43a37f0229d9a828218abe50f1d7e736d0f573203a4a374440aa70cba7025bacfad2e130de67806d031f421d3cf7da13176772491e0a64ea SHA512 72ac78b6d2d5953af487bb6998e63ce69681af20a3585d8c1ba2c74b0f420c8d1ac9f7f43ff18897051b000e8753799bf3d5a3a61873c6fb8628f041336c3858 -EBUILD beets-9999.ebuild 5650 BLAKE2B 92642911ecb632e2163906dc2566154614f621a3f20378cf5bfca0b25e5df92f94808433aeb8d590c6338e7d4e9e92c8446b2eff4bdc4ec390f165e2ef4690e8 SHA512 15695f2529b5e68bba02e220eebb8a3e0c36a2b6ac7e68bbd36e2d918c798c0f586821af60f603e1511f4dd91fe5e70330f5c6a4a13b8e4ca5044b4399f5fbc1 +EBUILD beets-1.7.0_pre20240501-r1.ebuild 6146 BLAKE2B f9eb6cf7d2f810b6fbdbe79aba98333a8832f7e38fbc83d0213ebd8a62e473099387ccf8dbf562c413162ed3f7cdcc5de7449aa59eb00a755fc7bf1c7674ae82 SHA512 73da9f56fbaf0c2beca6c87c46c2bb7ba5b95212d7e47bab2d4e73423bd7a901a7bb2fee6bef6dbbf6f42b033ae78f71939ae91f46ff46f911e26cda115b535a +EBUILD beets-2.2.0-r1.ebuild 5855 BLAKE2B a7d16477eebdc121df7dcaeb958819d1ee84f57fdc55025307e741f25efcd01e605022fa9090aa806caea6ededda45b583230e0636bc06bffce7b04678b1a152 SHA512 14ba1994265bf480f27bfad3a878a79a0726df4911a14bc636842822ec49fdc3a91568245db428cd1a2c061c31ddb25f6a4f2e8eb3b4a56e26565c1b5ec78c54 +EBUILD beets-9999.ebuild 5643 BLAKE2B cbb58e0b31800b46ec7c8fcc83966b4075d576683ce7dab48d006f7dbbb27157b9dad67b78eeac15053d796858c630273c07fe23c7eb0efde148987f143aa559 SHA512 f0c384f6c1c27cb290bd297238eefaf39f1ad6b77a97d1d032d693e3da72baf89bb5a325511cd25aaa2e69838874d24a65bf0ef781111a888ef5792de159d96e MISC metadata.xml 1856 BLAKE2B 0c3482123a1452fbd45e94c83d7eaba9c9548f781f87b7981c3df694eb09e0078f2de68a1e12b5ecd8ee0d69e6eb0f3189472b8c09bee17dfdd5494e9ecd3af7 SHA512 37369b9bb3a5607694bc5b40ba4f59bb33a41d6ac716ccb75f55f93ae35c71187d681a305e4fb6e03f6bf045867b3def2413342cb89784ac4b44a80d36760f73 diff --git a/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild b/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild new file mode 100644 index 000000000000..79f03b09eae1 --- /dev/null +++ b/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="sqlite" + +# These envvars are used to treat github tarball builds differently +# from pypi sources. Enable where required +: ${IS_VCS_SOURCE="no"} +: ${UPDATE_VERSION="no"} + +inherit distutils-r1 bash-completion-r1 multiprocessing optfeature + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/beetbox/beets.git" + inherit git-r3 +else + MY_COMMIT=c75f07a0da6c622d3cd0f5aad0a08edaea360dad + # This should be set to 1 if we're not sourcing tarballs from pypi; we need to generate mans. + IS_VCS_SOURCE="yes" + UPDATE_VERSION="yes" + SRC_URI="https://github.com/beetbox/beets/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="amd64 ~x86" + S="${WORKDIR}/${PN}-${MY_COMMIT}" +fi + +DESCRIPTION="Media library management system for obsessive music geeks" +HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/" + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}] + dev-python/munkres[${PYTHON_USEDEP}] + >=media-libs/mutagen-1.33[${PYTHON_USEDEP}] + >=dev-python/musicbrainzngs-0.4[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/confuse[${PYTHON_USEDEP}] + dev-python/mediafile[${PYTHON_USEDEP}] + dev-python/reflink[${PYTHON_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + dev-python/unidecode[${PYTHON_USEDEP}] + ')" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + doc? ( + dev-python/sphinx + dev-python/pydata-sphinx-theme + ) + $(python_gen_cond_dep ' + test? ( + dev-db/sqlite[icu] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/bluelet[${PYTHON_USEDEP}] + dev-python/python3-discogs-client[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pyacoustid[${PYTHON_USEDEP}] + dev-python/pylast[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/python-mpd2[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/reflink[${PYTHON_USEDEP}] + || ( + dev-python/pillow[${PYTHON_USEDEP}] + media-gfx/imagemagick + ) + dev-python/rarfile[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + media-libs/chromaprint[tools] + media-libs/flac + media-libs/gst-plugins-bad:1.0 + media-libs/gst-plugins-good:1.0 + media-sound/mp3val + media-sound/mp3gain + media-plugins/gst-plugins-libav:1.0 + media-video/ffmpeg[encode(+)] + app-shells/bash-completion + ) + ')" + +# Beets uses sphinx to generate manpages; these are not available +# directly in VCS sources, only pypi tarballs, so handle the dependency +# here automagically. +if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then + BDEPEND+=" + dev-python/sphinx + " +fi + +DOCS=( README.rst docs/changelog.rst ) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # https://github.com/beetbox/beets/commit/8b4983fe7cae9397acd3e23602e419d8dc1041d4 + # merged code coverage into standard test runs; since we disable coverage globally + # we need to sed out some 'addopts' for coverage in setup.cfg that cause tests to choke. + sed -i -e "/--cov=beets/,+9d" setup.cfg || die "Failed to disable code coverage options in setup.cfg" + # Update the version if we're not building from pypy; it's probably a _pre or live ebuild. + if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then + sed -i -e "s/version=\".*\"/version=\"${PV}\"/" setup.py || die "Failed to update version in VCS sources" + sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py + fi + default +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc ; then + sphinx-build -b html docs docs/build/html || die + fi + # If building from VCS sources we need to generate manpages, then copy them to ${S}/man + # We could install mans from the sphinx build path, but to be consistent with pypi for src_install + # we'll instead generate them and copy to the same install location if building from VCS sources. + if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then + einfo "Building man pages" + sphinx-build -b man docs docs/build/man || die "Failed to generate man pages" + mkdir "${S}/man" || die + cp docs/build/man/{beet.1,beetsconfig.5} "${S}/man" || die + fi +} + +python_test() { + # https://github.com/beetbox/beets/issues/5243 testing bash completions is broken. + local EPYTEST_DESELECT=( + test/test_ui.py::CompletionTest::test_completion + ) + epytest -n$(makeopts_jobs) -v +} + +python_install_all() { + distutils-r1_python_install_all + + doman man/* + use doc && local HTML_DOCS=( docs/build/html/. ) + einstalldocs + # Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start. + PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die + newbashcomp "${T}/beet.bash" beet + insinto /usr/share/zsh/site-functions + newins "${S}/extra/_beet" _beet + + optfeature "badfiles support" "media-libs/flac media-sound/mp3val" + optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]" + optfeature "discogs support" dev-python/python3-discogs-client + optfeature "ffmpeg support" media-video/ffmpeg + optfeature "gstreamer support" "media-libs/gst-plugins-bad media-libs/gst-plugins-good" + optfeature "icu support" dev-db/sqlite[icu] + optfeature "lastfm support" dev-python/pylast + optfeature "mpd support" "dev-python/bluelet dev-python/python-mpd2" + optfeature "replaygain with gstreamer support" "dev-python/pygobject media-plugins/gst-plugins-libav" + optfeature "replaygain without gstreamer support" media-sound/mp3gain + optfeature "thumbnail support" dev-python/pyxdg "dev-python/pillow media-gfx/imagemagick" + optfeature "webserver support" dev-python/flask + optfeature "webserver cors support" dev-python/flask-cors +} diff --git a/media-sound/beets/beets-1.7.0_pre20240501.ebuild b/media-sound/beets/beets-1.7.0_pre20240501.ebuild deleted file mode 100644 index 71c42d29cfe8..000000000000 --- a/media-sound/beets/beets-1.7.0_pre20240501.ebuild +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) -PYTHON_REQ_USE="sqlite" - -# These envvars are used to treat github tarball builds differently -# from pypi sources. Enable where required -: ${IS_VCS_SOURCE="no"} -: ${UPDATE_VERSION="no"} - -inherit distutils-r1 bash-completion-r1 multiprocessing optfeature - -if [[ ${PV} == "9999" ]]; then - EGIT_REPO_URI="https://github.com/beetbox/beets.git" - inherit git-r3 -else - MY_COMMIT=c75f07a0da6c622d3cd0f5aad0a08edaea360dad - # This should be set to 1 if we're not sourcing tarballs from pypi; we need to generate mans. - IS_VCS_SOURCE="yes" - UPDATE_VERSION="yes" - SRC_URI="https://github.com/beetbox/beets/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz" - KEYWORDS="amd64 ~x86" - S="${WORKDIR}/${PN}-${MY_COMMIT}" -fi - -DESCRIPTION="Media library management system for obsessive music geeks" -HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/" - -LICENSE="MIT" -SLOT="0" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND=" - $(python_gen_cond_dep ' - >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}] - dev-python/munkres[${PYTHON_USEDEP}] - >=media-libs/mutagen-1.33[${PYTHON_USEDEP}] - >=dev-python/musicbrainzngs-0.4[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/confuse[${PYTHON_USEDEP}] - dev-python/mediafile[${PYTHON_USEDEP}] - dev-python/reflink[${PYTHON_USEDEP}] - dev-python/requests-oauthlib[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/typing-extensions[${PYTHON_USEDEP}] - dev-python/unidecode[${PYTHON_USEDEP}] - ')" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - doc? ( - dev-python/sphinx - dev-python/pydata-sphinx-theme - ) - $(python_gen_cond_dep ' - test? ( - dev-db/sqlite[icu] - dev-python/beautifulsoup4[${PYTHON_USEDEP}] - dev-python/bluelet[${PYTHON_USEDEP}] - dev-python/python3-discogs-client[${PYTHON_USEDEP}] - dev-python/flask[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pyacoustid[${PYTHON_USEDEP}] - dev-python/pylast[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - dev-python/python-mpd2[${PYTHON_USEDEP}] - dev-python/pyxdg[${PYTHON_USEDEP}] - dev-python/reflink[${PYTHON_USEDEP}] - || ( - dev-python/pillow[${PYTHON_USEDEP}] - media-gfx/imagemagick - ) - dev-python/rarfile[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - media-libs/chromaprint[tools] - media-libs/flac - media-libs/gst-plugins-bad:1.0 - media-libs/gst-plugins-good:1.0 - media-sound/mp3val - media-sound/mp3gain - media-plugins/gst-plugins-libav:1.0 - media-video/ffmpeg:0[encode] - app-shells/bash-completion - ) - ')" - -# Beets uses sphinx to generate manpages; these are not available -# directly in VCS sources, only pypi tarballs, so handle the dependency -# here automagically. -if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then - BDEPEND+=" - dev-python/sphinx - " -fi - -DOCS=( README.rst docs/changelog.rst ) - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -src_prepare() { - # https://github.com/beetbox/beets/commit/8b4983fe7cae9397acd3e23602e419d8dc1041d4 - # merged code coverage into standard test runs; since we disable coverage globally - # we need to sed out some 'addopts' for coverage in setup.cfg that cause tests to choke. - sed -i -e "/--cov=beets/,+9d" setup.cfg || die "Failed to disable code coverage options in setup.cfg" - # Update the version if we're not building from pypy; it's probably a _pre or live ebuild. - if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then - sed -i -e "s/version=\".*\"/version=\"${PV}\"/" setup.py || die "Failed to update version in VCS sources" - sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py - fi - default -} - -python_prepare_all() { - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc ; then - sphinx-build -b html docs docs/build/html || die - fi - # If building from VCS sources we need to generate manpages, then copy them to ${S}/man - # We could install mans from the sphinx build path, but to be consistent with pypi for src_install - # we'll instead generate them and copy to the same install location if building from VCS sources. - if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then - einfo "Building man pages" - sphinx-build -b man docs docs/build/man || die "Failed to generate man pages" - mkdir "${S}/man" || die - cp docs/build/man/{beet.1,beetsconfig.5} "${S}/man" || die - fi -} - -python_test() { - # https://github.com/beetbox/beets/issues/5243 testing bash completions is broken. - local EPYTEST_DESELECT=( - test/test_ui.py::CompletionTest::test_completion - ) - epytest -n$(makeopts_jobs) -v -} - -python_install_all() { - distutils-r1_python_install_all - - doman man/* - use doc && local HTML_DOCS=( docs/build/html/. ) - einstalldocs - # Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start. - PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die - newbashcomp "${T}/beet.bash" beet - insinto /usr/share/zsh/site-functions - newins "${S}/extra/_beet" _beet - - optfeature "badfiles support" "media-libs/flac media-sound/mp3val" - optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]" - optfeature "discogs support" dev-python/python3-discogs-client - optfeature "ffmpeg support" media-video/ffmpeg[encode] - optfeature "gstreamer support" "media-libs/gst-plugins-bad media-libs/gst-plugins-good" - optfeature "icu support" dev-db/sqlite[icu] - optfeature "lastfm support" dev-python/pylast - optfeature "mpd support" "dev-python/bluelet dev-python/python-mpd2" - optfeature "replaygain with gstreamer support" "dev-python/pygobject media-plugins/gst-plugins-libav" - optfeature "replaygain without gstreamer support" media-sound/mp3gain - optfeature "thumbnail support" dev-python/pyxdg "dev-python/pillow media-gfx/imagemagick" - optfeature "webserver support" dev-python/flask - optfeature "webserver cors support" dev-python/flask-cors -} diff --git a/media-sound/beets/beets-2.2.0-r1.ebuild b/media-sound/beets/beets-2.2.0-r1.ebuild new file mode 100644 index 000000000000..007cf92604bd --- /dev/null +++ b/media-sound/beets/beets-2.2.0-r1.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=poetry +# Passes tests with python3_13 but dev-python/audioread is problematic +PYTHON_COMPAT=( python3_{11..12} ) +PYTHON_REQ_USE="sqlite" + +# These envvars are used to treat github tarball builds differently +# from pypi sources. Enable where required +: ${IS_VCS_SOURCE="no"} +: ${UPDATE_VERSION="no"} + +inherit distutils-r1 bash-completion-r1 multiprocessing optfeature + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/beetbox/beets.git" + IS_VCS_SOURCE="yes" + UPDATE_VERSION="yes" + inherit git-r3 +else + # The 2.2.0 pypi tarball does not include zsh completions + # https://github.com/beetbox/beets/issues/5531 + IS_VCS_SOURCE="yes" + # The 2.2.0 tarball calls itself 2.1.0 for some reason? + UPDATE_VERSION="yes" + SRC_URI="https://github.com/beetbox/beets/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Media library management system for obsessive music geeks" +HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/" + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}] + dev-python/munkres[${PYTHON_USEDEP}] + >=media-libs/mutagen-1.33[${PYTHON_USEDEP}] + >=dev-python/musicbrainzngs-0.4[${PYTHON_USEDEP}] + dev-python/confuse[${PYTHON_USEDEP}] + dev-python/mediafile[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/reflink[${PYTHON_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + dev-python/unidecode[${PYTHON_USEDEP}] + ')" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + doc? ( + dev-python/sphinx + dev-python/pydata-sphinx-theme + ) + $(python_gen_cond_dep ' + test? ( + dev-db/sqlite[icu] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/bluelet[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/python3-discogs-client[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pyacoustid[${PYTHON_USEDEP}] + dev-python/pylast[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/pytest-flask[${PYTHON_USEDEP}] + dev-python/python-mpd2[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/reflink[${PYTHON_USEDEP}] + || ( + dev-python/pillow[${PYTHON_USEDEP}] + media-gfx/imagemagick + ) + dev-python/rarfile[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + media-libs/chromaprint[tools] + media-libs/flac + media-libs/gst-plugins-bad:1.0 + media-libs/gst-plugins-good:1.0 + media-sound/mp3val + media-sound/mp3gain + media-plugins/gst-plugins-libav:1.0 + media-video/ffmpeg[encode(+)] + app-shells/bash-completion + ) + ')" + +# Beets uses sphinx to generate manpages; these are not available +# directly in VCS sources, only pypi tarballs, so handle the dependency +# here automagically. +if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then + BDEPEND+=" + dev-python/sphinx + " +fi + +DOCS=( README.rst docs/changelog.rst ) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then + sed -i -e "s/^version = \".*\"$/version = \"${PV}\"/" \ + pyproject.toml \ + || die "Failed to update version in VCS sources" + sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py + fi + default +} + +python_prepare_all() { + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc ; then + sphinx-build -b html docs docs/build/html || die + fi + # If building from VCS sources we need to generate manpages, then copy them to ${S}/man + # We could install mans from the sphinx build path, but to be consistent with pypi for src_install + # we'll instead generate them and copy to the same install location if building from VCS sources. + if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then + einfo "Building man pages" + sphinx-build -b man docs docs/build/man || die "Failed to generate man pages" + mkdir "${S}/man" || die + cp docs/build/man/{beet.1,beetsconfig.5} "${S}/man" || die + fi +} + +python_test() { + # test/test_art_resize.py can be flaky, parallelisation? + epytest -n$(makeopts_jobs) -v +} + +python_install_all() { + distutils-r1_python_install_all + + doman man/* + use doc && local HTML_DOCS=( docs/build/html/. ) + einstalldocs + # Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start. + PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die + newbashcomp "${T}/beet.bash" beet + insinto /usr/share/zsh/site-functions + newins "${S}/extra/_beet" _beet + + optfeature "badfiles support" "media-libs/flac media-sound/mp3val" + optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]" + optfeature "discogs support" dev-python/python3-discogs-client + optfeature "ffmpeg support" media-video/ffmpeg + optfeature "gstreamer support" "media-libs/gst-plugins-bad media-libs/gst-plugins-good" + optfeature "icu support" dev-db/sqlite[icu] + optfeature "lastfm support" dev-python/pylast + optfeature "mpd support" "dev-python/bluelet dev-python/python-mpd2" + optfeature "replaygain with gstreamer support" "dev-python/pygobject media-plugins/gst-plugins-libav" + optfeature "replaygain without gstreamer support" media-sound/mp3gain + optfeature "thumbnail support" dev-python/pyxdg "dev-python/pillow media-gfx/imagemagick" + optfeature "webserver support" dev-python/flask + optfeature "webserver cors support" dev-python/flask-cors + optfeature "Amarok metadata synchronisation" dev-python/dbus-python +} diff --git a/media-sound/beets/beets-2.2.0.ebuild b/media-sound/beets/beets-2.2.0.ebuild deleted file mode 100644 index 3978ca21b116..000000000000 --- a/media-sound/beets/beets-2.2.0.ebuild +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_USE_PEP517=poetry -# Passes tests with python3_13 but dev-python/audioread is problematic -PYTHON_COMPAT=( python3_{11..12} ) -PYTHON_REQ_USE="sqlite" - -# These envvars are used to treat github tarball builds differently -# from pypi sources. Enable where required -: ${IS_VCS_SOURCE="no"} -: ${UPDATE_VERSION="no"} - -inherit distutils-r1 bash-completion-r1 multiprocessing optfeature - -if [[ ${PV} == "9999" ]]; then - EGIT_REPO_URI="https://github.com/beetbox/beets.git" - IS_VCS_SOURCE="yes" - UPDATE_VERSION="yes" - inherit git-r3 -else - # The 2.2.0 pypi tarball does not include zsh completions - # https://github.com/beetbox/beets/issues/5531 - IS_VCS_SOURCE="yes" - # The 2.2.0 tarball calls itself 2.1.0 for some reason? - UPDATE_VERSION="yes" - SRC_URI="https://github.com/beetbox/beets/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Media library management system for obsessive music geeks" -HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/" - -LICENSE="MIT" -SLOT="0" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND=" - $(python_gen_cond_dep ' - >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}] - dev-python/munkres[${PYTHON_USEDEP}] - >=media-libs/mutagen-1.33[${PYTHON_USEDEP}] - >=dev-python/musicbrainzngs-0.4[${PYTHON_USEDEP}] - dev-python/confuse[${PYTHON_USEDEP}] - dev-python/mediafile[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/reflink[${PYTHON_USEDEP}] - dev-python/requests-oauthlib[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/typing-extensions[${PYTHON_USEDEP}] - dev-python/unidecode[${PYTHON_USEDEP}] - ')" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - doc? ( - dev-python/sphinx - dev-python/pydata-sphinx-theme - ) - $(python_gen_cond_dep ' - test? ( - dev-db/sqlite[icu] - dev-python/beautifulsoup4[${PYTHON_USEDEP}] - dev-python/bluelet[${PYTHON_USEDEP}] - dev-python/dbus-python[${PYTHON_USEDEP}] - dev-python/python3-discogs-client[${PYTHON_USEDEP}] - dev-python/flask[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pyacoustid[${PYTHON_USEDEP}] - dev-python/pylast[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - dev-python/pytest-flask[${PYTHON_USEDEP}] - dev-python/python-mpd2[${PYTHON_USEDEP}] - dev-python/pyxdg[${PYTHON_USEDEP}] - dev-python/reflink[${PYTHON_USEDEP}] - || ( - dev-python/pillow[${PYTHON_USEDEP}] - media-gfx/imagemagick - ) - dev-python/rarfile[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - media-libs/chromaprint[tools] - media-libs/flac - media-libs/gst-plugins-bad:1.0 - media-libs/gst-plugins-good:1.0 - media-sound/mp3val - media-sound/mp3gain - media-plugins/gst-plugins-libav:1.0 - media-video/ffmpeg:0[encode] - app-shells/bash-completion - ) - ')" - -# Beets uses sphinx to generate manpages; these are not available -# directly in VCS sources, only pypi tarballs, so handle the dependency -# here automagically. -if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then - BDEPEND+=" - dev-python/sphinx - " -fi - -DOCS=( README.rst docs/changelog.rst ) - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -src_prepare() { - if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then - sed -i -e "s/^version = \".*\"$/version = \"${PV}\"/" \ - pyproject.toml \ - || die "Failed to update version in VCS sources" - sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py - fi - default -} - -python_prepare_all() { - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc ; then - sphinx-build -b html docs docs/build/html || die - fi - # If building from VCS sources we need to generate manpages, then copy them to ${S}/man - # We could install mans from the sphinx build path, but to be consistent with pypi for src_install - # we'll instead generate them and copy to the same install location if building from VCS sources. - if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then - einfo "Building man pages" - sphinx-build -b man docs docs/build/man || die "Failed to generate man pages" - mkdir "${S}/man" || die - cp docs/build/man/{beet.1,beetsconfig.5} "${S}/man" || die - fi -} - -python_test() { - # test/test_art_resize.py can be flaky, parallelisation? - epytest -n$(makeopts_jobs) -v -} - -python_install_all() { - distutils-r1_python_install_all - - doman man/* - use doc && local HTML_DOCS=( docs/build/html/. ) - einstalldocs - # Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start. - PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die - newbashcomp "${T}/beet.bash" beet - insinto /usr/share/zsh/site-functions - newins "${S}/extra/_beet" _beet - - optfeature "badfiles support" "media-libs/flac media-sound/mp3val" - optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]" - optfeature "discogs support" dev-python/python3-discogs-client - optfeature "ffmpeg support" media-video/ffmpeg[encode] - optfeature "gstreamer support" "media-libs/gst-plugins-bad media-libs/gst-plugins-good" - optfeature "icu support" dev-db/sqlite[icu] - optfeature "lastfm support" dev-python/pylast - optfeature "mpd support" "dev-python/bluelet dev-python/python-mpd2" - optfeature "replaygain with gstreamer support" "dev-python/pygobject media-plugins/gst-plugins-libav" - optfeature "replaygain without gstreamer support" media-sound/mp3gain - optfeature "thumbnail support" dev-python/pyxdg "dev-python/pillow media-gfx/imagemagick" - optfeature "webserver support" dev-python/flask - optfeature "webserver cors support" dev-python/flask-cors - optfeature "Amarok metadata synchronisation" dev-python/dbus-python -} diff --git a/media-sound/beets/beets-9999.ebuild b/media-sound/beets/beets-9999.ebuild index d369086b7ef3..34b23cecb015 100644 --- a/media-sound/beets/beets-9999.ebuild +++ b/media-sound/beets/beets-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -90,7 +90,7 @@ BDEPEND=" media-sound/mp3val media-sound/mp3gain media-plugins/gst-plugins-libav:1.0 - media-video/ffmpeg:0[encode] + media-video/ffmpeg[encode(+)] app-shells/bash-completion ) ')" @@ -158,7 +158,7 @@ python_install_all() { optfeature "badfiles support" "media-libs/flac media-sound/mp3val" optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]" optfeature "discogs support" dev-python/python3-discogs-client - optfeature "ffmpeg support" media-video/ffmpeg[encode] + optfeature "ffmpeg support" media-video/ffmpeg optfeature "gstreamer support" "media-libs/gst-plugins-bad media-libs/gst-plugins-good" optfeature "icu support" dev-db/sqlite[icu] optfeature "lastfm support" dev-python/pylast -- cgit v1.2.3