diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2023-08-17 07:16:23 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-08-17 07:16:44 +0200 |
commit | 843d1e09305648213f5171e9bfb7d77e4f447e93 (patch) | |
tree | c9b61ce3c6e85ccd04c01282d7b62e3b11dcd4cf /media-sound | |
parent | profiles/package.mask: mask app-emacs/ruby-mode (diff) | |
download | gentoo-843d1e09305648213f5171e9bfb7d77e4f447e93.tar.gz gentoo-843d1e09305648213f5171e9bfb7d77e4f447e93.tar.bz2 gentoo-843d1e09305648213f5171e9bfb7d77e4f447e93.zip |
media-sound/picard: bump to 2.9.1 + switched to pep517 + updated live
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/picard/Manifest | 1 | ||||
-rw-r--r-- | media-sound/picard/picard-2.9.1.ebuild | 65 | ||||
-rw-r--r-- | media-sound/picard/picard-9999.ebuild | 2 |
3 files changed, 67 insertions, 1 deletions
diff --git a/media-sound/picard/Manifest b/media-sound/picard/Manifest index 0789365cdbb1..03ac8004fd3c 100644 --- a/media-sound/picard/Manifest +++ b/media-sound/picard/Manifest @@ -1,2 +1,3 @@ DIST picard-2.8.5.tar.gz 5108919 BLAKE2B 0866ece07a64ad1f226fa3d5b88ffca19eaa951e42918631fbe11ed64360f0c586dd0cfbfd33731c125b9db5a85a12263573e0cffdccf9e8e839ad197b5d9e4f SHA512 02bf3ce6b8503e0e4ed9601db4ba31019704d2e09d0abc36026f9cf6a81d748cf62fe0b6c1a2730fa89033d62823f62a40fed1d845abb54c51dd9bb8a0d1bfb4 +DIST picard-2.9.1.tar.gz 5270234 BLAKE2B 51c84c9c344f5f9486e57caa2e47626329042f9e99acb5e651162fd0597c97e6d2f8e993bf735e83bdd4885c31183f9841c39a31db2f446449be9d10af39bd78 SHA512 935689fcaa7019fbdd391fe9df45fbb6f4528cec8652a852780e3bd1142dd8407bf76f97bdf24eec481448d69e3ed9ab40c0bb16095352006b874fe9fc46bc16 DIST picard-2.9.tar.gz 6360770 BLAKE2B d843cbb249f79a7817f0d5a62f7f851a3acc9943c93e0130fa487c385d1dda3b14a51b7070212a4562553c39ac54e8b743391a28c3e916ceb11e5070f3801985 SHA512 837f70b239acc0d2846be79fb225e5bc7a3b7c3d2e928c34bd01730b6049809a58c274a4e49c5cc42f253f5c113c19b331ac1489427f8dbb3c31515d2511e4dc diff --git a/media-sound/picard/picard-2.9.1.ebuild b/media-sound/picard/picard-2.9.1.ebuild new file mode 100644 index 000000000000..7cc9e324b322 --- /dev/null +++ b/media-sound/picard/picard-2.9.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_EXT=1 + +inherit distutils-r1 xdg + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="https://github.com/metabrainz/picard" + inherit git-r3 +else + SRC_URI="https://musicbrainz.osuosl.org/pub/musicbrainz/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +DESCRIPTION="Cross-platform music tagger" +HOMEPAGE="https://picard.musicbrainz.org" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="discid fingerprints nls" + +BDEPEND=" + nls? ( dev-qt/linguist-tools:5 ) +" +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/fasteners[${PYTHON_USEDEP}] + dev-python/pyjwt[${PYTHON_USEDEP}] + dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + media-libs/mutagen[${PYTHON_USEDEP}] + discid? ( dev-python/python-discid[${PYTHON_USEDEP}] ) + ') + fingerprints? ( media-libs/chromaprint[tools] ) +" + +distutils_enable_tests pytest + +python_compile() { + local build_args=( + --disable-autoupdate + ) + if ! use nls; then + build_args+=( --disable-locales ) + fi + distutils-r1_python_compile ${build_args[@]} +} + +python_install() { + local install_args=( + --disable-autoupdate + --skip-build + ) + if ! use nls; then + install_args+=( --disable-locales ) + fi + distutils-r1_python_install ${install_args[@]} +} diff --git a/media-sound/picard/picard-9999.ebuild b/media-sound/picard/picard-9999.ebuild index f60c4d17aa12..7cc9e324b322 100644 --- a/media-sound/picard/picard-9999.ebuild +++ b/media-sound/picard/picard-9999.ebuild @@ -4,6 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools DISTUTILS_SINGLE_IMPL=1 DISTUTILS_EXT=1 @@ -15,7 +16,6 @@ if [[ ${PV} = *9999* ]]; then else SRC_URI="https://musicbrainz.osuosl.org/pub/musicbrainz/${PN}/${P}.tar.gz" KEYWORDS="~amd64 ~arm64 ~x86" - S="${WORKDIR}/${PN}-release-${PV}" fi DESCRIPTION="Cross-platform music tagger" |