1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
7 DISTUTILS_SINGLE_IMPL=1
8 DISABLE_AUTOFORMATTING=true
9 inherit distutils-r1 gnome2-utils readme.gentoo-r1 xdg
11 DESCRIPTION="Cross-platform music tagger"
12 HOMEPAGE="https://picard.musicbrainz.org"
13 SRC_URI="https://musicbrainz.osuosl.org/pub/musicbrainz/${PN}/${P}.tar.gz"
21 $(python_gen_cond_dep '
22 dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_MULTI_USEDEP}]
25 >=media-libs/mutagen-1.38"
27 nls? ( dev-qt/linguist-tools:5 )
30 RESTRICT="test" # doesn't work with ebuilds
32 S="${WORKDIR}/${PN}-release-${PV}"
39 build_args+=( --disable-locales )
41 distutils-r1_python_compile ${build_args[@]}
50 install_args+=( --disable-locales )
52 distutils-r1_python_install ${install_args[@]}
55 python_install_all() {
56 distutils-r1_python_install_all
58 local DOC_CONTENTS="Install optional package media-libs/chromaprint[tools] to enable
59 calculation and lookup of AcoustID fingerprints.
61 Install optional package dev-python/python-discid to enable
62 calculation and lookup of compact disc identifiers (disc IDs).
64 If you are upgrading Picard and it does not start, try removing
66 rm ~/.config/MusicBrainz/Picard.conf"
67 readme.gentoo_create_doc
71 readme.gentoo_print_elog