diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2020-08-23 18:05:09 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2020-08-23 18:05:29 +0200 |
commit | 87ddceb1b4290f9b99edcd82aa210c96374a81aa (patch) | |
tree | 0c312938d605504b485356650789ec0af835dd41 /media-sound/picard | |
parent | gnome-base/gnome: bump to 3.36.5 (diff) | |
download | gentoo-87ddceb1b4290f9b99edcd82aa210c96374a81aa.tar.gz gentoo-87ddceb1b4290f9b99edcd82aa210c96374a81aa.tar.bz2 gentoo-87ddceb1b4290f9b99edcd82aa210c96374a81aa.zip |
media-sound/picard: bump to 2.4.2 + updated live
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/picard')
-rw-r--r-- | media-sound/picard/Manifest | 1 | ||||
-rw-r--r-- | media-sound/picard/picard-2.4.2.ebuild | 80 | ||||
-rw-r--r-- | media-sound/picard/picard-9999.ebuild | 16 |
3 files changed, 91 insertions, 6 deletions
diff --git a/media-sound/picard/Manifest b/media-sound/picard/Manifest index 5b672b57c060..0758a494ae10 100644 --- a/media-sound/picard/Manifest +++ b/media-sound/picard/Manifest @@ -1 +1,2 @@ DIST picard-2.3.1.tar.gz 3778379 BLAKE2B b829c29d95922e31479cea0c8bcb3294cd3751374e71f37d387a013529c294a695a2e2f4c8b73af5eeee2fa8f7423d24074bc18b7db130798411803c70a013ff SHA512 fb5ac4cbd02f4b832cb23e3c8b5881eeca04b7b101c015a97fc20c8e0e7871ad2098b750a0c486af958b2bf30221b0c28666313f768dc7d70389519dd795d9cd +DIST picard-2.4.2.tar.gz 4096438 BLAKE2B a44e82ac1a0ad776eb371309ad13f0a5e9afe4a0fe8b898dbbcb71ac554da3ff7cf4a2d88a8e476c811dfeb515ca7371ca8effb326b9285e6c53ebeac6795c15 SHA512 17f6015dd06a1282e6dc216726a74cc7bf2a54a5694e09e2d7ae6f1b4c85f2f60f3de1218d952fa2c4e088b3330d1fd12e4b41cf819d7c3d2d96278532338e15 diff --git a/media-sound/picard/picard-2.4.2.ebuild b/media-sound/picard/picard-2.4.2.ebuild new file mode 100644 index 000000000000..ec55fb5d0fb7 --- /dev/null +++ b/media-sound/picard/picard-2.4.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_SINGLE_IMPL=1 +DISABLE_AUTOFORMATTING=true +inherit distutils-r1 readme.gentoo-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 ~x86" + S="${WORKDIR}/${PN}-release-${PV}" +fi + +DESCRIPTION="Cross-platform music tagger" +HOMEPAGE="https://picard.musicbrainz.org" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="discid nls" + +BDEPEND=" + nls? ( dev-qt/linguist-tools:5 ) +" +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_MULTI_USEDEP}] + ') + dev-qt/qtgui:5 + media-libs/mutagen + discid? ( dev-python/python-discid ) +" + +RESTRICT="test" # doesn't work with ebuilds + +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[@]} +} + +python_install_all() { + distutils-r1_python_install_all + + local DOC_CONTENTS="Install optional package media-libs/chromaprint[tools] to enable +calculation and lookup of AcoustID fingerprints. + +Install optional package dev-python/python-discid to enable +calculation and lookup of compact disc identifiers (disc IDs). + +If you are upgrading Picard and it does not start, try removing +Picard's settings: + rm ~/.config/MusicBrainz/Picard.conf" + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + xdg_pkg_postinst +} diff --git a/media-sound/picard/picard-9999.ebuild b/media-sound/picard/picard-9999.ebuild index 8ddfeb52fa15..ec55fb5d0fb7 100644 --- a/media-sound/picard/picard-9999.ebuild +++ b/media-sound/picard/picard-9999.ebuild @@ -3,24 +3,26 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{7,8,9} ) DISTUTILS_SINGLE_IMPL=1 DISABLE_AUTOFORMATTING=true +inherit distutils-r1 readme.gentoo-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 ~x86" + S="${WORKDIR}/${PN}-release-${PV}" fi -inherit distutils-r1 readme.gentoo-r1 xdg -DESCRIPTION="A cross-platform music tagger" +DESCRIPTION="Cross-platform music tagger" HOMEPAGE="https://picard.musicbrainz.org" LICENSE="GPL-2+" SLOT="0" -IUSE="nls" +IUSE="discid nls" BDEPEND=" nls? ( dev-qt/linguist-tools:5 ) @@ -29,8 +31,10 @@ RDEPEND=" $(python_gen_cond_dep ' dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_MULTI_USEDEP}] ') - dev-qt/qtgui:5[accessibility] - >=media-libs/mutagen-1.38" + dev-qt/qtgui:5 + media-libs/mutagen + discid? ( dev-python/python-discid ) +" RESTRICT="test" # doesn't work with ebuilds |