1 # Copyright © 2018 Nick Bowler
2 # License GPLv2+: GNU General Public License version 2 or later.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
6 # This a modified version of the original ebuild from Gentoo GNU/Linux,
7 # covered by the following copyright and permission notice:
9 # Copyright 1999-2018 Gentoo Foundation
10 # Distributed under the terms of the GNU General Public License v2
14 PYTHON_COMPAT=( python3_{5,6} )
15 DISTUTILS_SINGLE_IMPL=1
16 DISABLE_AUTOFORMATTING=true
18 inherit distutils-r1 gnome2-utils readme.gentoo-r1 xdg-utils
20 DESCRIPTION="A cross-platform music tagger"
21 HOMEPAGE="https://picard.musicbrainz.org"
22 SRC_URI="https://github.com/metabrainz/$PN/archive/release-$PV.tar.gz -> $P.tar.gz"
29 RDEPEND="dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_USEDEP}]
30 >=media-libs/mutagen-1.38"
32 nls? ( dev-qt/linguist-tools:5 )"
34 RESTRICT="test" # doesn't work with ebuilds
36 S=$WORKDIR/picard-release-$PV
43 build_args+=( --disable-locales )
45 distutils-r1_python_compile ${build_args[@]}
54 install_args+=( --disable-locales )
56 distutils-r1_python_install ${install_args[@]}
59 python_install_all() {
60 distutils-r1_python_install_all
62 local DOC_CONTENTS="Install optional package media-libs/chromaprint[tools] to enable
63 calculation and lookup of AcoustID fingerprints.
65 Install optional package dev-python/python-discid to enable
66 calculation and lookup of compact disc identifiers (disc IDs).
68 If you are upgrading Picard and it does not start, try removing
70 rm ~/.config/MusicBrainz/Picard.conf"
71 readme.gentoo_create_doc
75 readme.gentoo_print_elog
76 xdg_desktop_database_update
77 gnome2_icon_cache_update
81 xdg_desktop_database_update
82 gnome2_icon_cache_update