]> git.draconx.ca Git - gentoo-fixes.git/commitdiff
media-sound/picard: Bump and remove qtgui[accessibility] dep.
authorNick Bowler <nbowler@draconx.ca>
Sun, 11 Nov 2018 19:47:09 +0000 (14:47 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 11 Nov 2018 19:47:09 +0000 (14:47 -0500)
Things seem to work fine without this functionality enabled.

media-sound/picard/Manifest [new file with mode: 0644]
media-sound/picard/picard-2.0.4.ebuild [new file with mode: 0644]

diff --git a/media-sound/picard/Manifest b/media-sound/picard/Manifest
new file mode 100644 (file)
index 0000000..cb8cdff
--- /dev/null
@@ -0,0 +1,2 @@
+DIST picard-2.0.4.tar.gz 2759058 BLAKE2B e8a2a5aed7b8c99e31c1765906481432d310fd41fa01a611c7d82b182468cf4bfeb5a5aaab74c96c0971f21af3ba690537212c29c75433296cab6a1a409edf6d SHA512 cdc5f1ddeb84705fc792fb77a6d0ba06a5baf812799054ac0fd4959dfe788009f25b6f89ad0c28720f1c7c85af61534ca4f1e9e8efd6ec3cc78578d0f0b3ab32
+EBUILD picard-2.0.4.ebuild 2098 BLAKE2B 272f8d7e8b2f1c1c6345f32586a3ed130a09fba378b6445788d2e7121db3a7fd6ba03f6f79d6324257ea58765ec5f55b6a8862ef16d6b1e0342a715afdb8459c SHA512 2ffa8b5a5fad7ac65920ef41b5c61e59e9c5da77fc8e3eeced74c01669401a99ad6a5069b0c478d67824b2347b47bb8f3a75232883da16a05d53a1dad03d24bc
diff --git a/media-sound/picard/picard-2.0.4.ebuild b/media-sound/picard/picard-2.0.4.ebuild
new file mode 100644 (file)
index 0000000..07016ca
--- /dev/null
@@ -0,0 +1,83 @@
+# Copyright © 2018 Nick Bowler
+# License GPLv2+: GNU General Public License version 2 or later.
+# This is free software: you are free to change and redistribute it.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This a modified version of the original ebuild from Gentoo GNU/Linux,
+# covered by the following copyright and permission notice:
+#
+#   Copyright 1999-2018 Gentoo Foundation
+#   Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{5,6} )
+DISTUTILS_SINGLE_IMPL=1
+DISABLE_AUTOFORMATTING=true
+
+inherit distutils-r1 gnome2-utils readme.gentoo-r1 xdg-utils
+
+DESCRIPTION="A cross-platform music tagger"
+HOMEPAGE="https://picard.musicbrainz.org"
+SRC_URI="https://github.com/metabrainz/$PN/archive/release-$PV.tar.gz -> $P.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND="dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_USEDEP}]
+       >=media-libs/mutagen-1.38"
+DEPEND="$RDEPEND
+       nls? ( dev-qt/linguist-tools:5 )"
+
+RESTRICT="test" # doesn't work with ebuilds
+
+S=$WORKDIR/picard-release-$PV
+
+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_desktop_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       gnome2_icon_cache_update
+}