Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/picard/
Date: Thu, 22 Mar 2018 13:14:47
Message-Id: 1521724470.98590e510099c9ec86d23d24042c76fbbe8388ba.asturm@gentoo
1 commit: 98590e510099c9ec86d23d24042c76fbbe8388ba
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 22 13:13:47 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 22 13:14:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98590e51
7
8 media-sound/picard: 2.0.0_beta2 version bump
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 media-sound/picard/Manifest | 1 +
13 media-sound/picard/picard-2.0.0_beta2.ebuild | 79 ++++++++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/media-sound/picard/Manifest b/media-sound/picard/Manifest
17 index e0d5426b745..3c322611a54 100644
18 --- a/media-sound/picard/Manifest
19 +++ b/media-sound/picard/Manifest
20 @@ -1,2 +1,3 @@
21 DIST picard-1.4.2.tar.gz 2116021 BLAKE2B 9629d312df20a8c69b383b424724ef4cf9f774ae70b9e11b1c6c7f96cafea575657875642af70a73633ca79eb8c79237ada16dd5ff7c021d4bdb4a0df7890de3 SHA512 5e4a6a8cfadd86b7015ab77da1969acec26e0ed92564c6634afeee5060d33d34e8fc83015880e6c8f17df66c8d15b86a85031dbe5b596c995579fb449cf8a74e
22 DIST picard-2.0.0_beta1.tar.gz 2661429 BLAKE2B ebffb2651e778c2cec8a4e41307d99c30038f36096b343489d7384b1cb4ac9a3492f23a4c69ec8a0be59306efc5cf4c9098a114445be6965ed243156dcee2803 SHA512 e2fc5dadf3e469df4ed16b1827909a60a54e7dc047e1ecd80480d9283a5795e3e792b31970eb6834590ba2ea12378ec18ef404b47237c38299350ee1d9acec9d
23 +DIST picard-2.0.0_beta2.tar.gz 2664130 BLAKE2B b1397744ee55f239a7518070ded63e69695e604e4975ca5b5173ce9c22eb795ac436e3695ae6cfa82ec098db03c2d009dd0e206388df4358947238e0e54d43a1 SHA512 7cba2d77a0b8a1c94984331bb9071a62c235193a593b79344b04c60c9ec4966960a44631db3c983a10060fa76e6cd46010d3c5f51f8eab3a19fa065a12129a6b
24
25 diff --git a/media-sound/picard/picard-2.0.0_beta2.ebuild b/media-sound/picard/picard-2.0.0_beta2.ebuild
26 new file mode 100644
27 index 00000000000..53d1a22424a
28 --- /dev/null
29 +++ b/media-sound/picard/picard-2.0.0_beta2.ebuild
30 @@ -0,0 +1,79 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python3_{5,6} )
37 +DISTUTILS_SINGLE_IMPL=1
38 +DISABLE_AUTOFORMATTING=true
39 +
40 +inherit distutils-r1 gnome2-utils readme.gentoo-r1 xdg-utils
41 +
42 +DESCRIPTION="A cross-platform music tagger"
43 +HOMEPAGE="https://picard.musicbrainz.org"
44 +SRC_URI="https://github.com/metabrainz/${PN}/archive/${PV/_beta2/dev5}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-2+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="nls"
50 +
51 +RDEPEND="
52 + dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_USEDEP}]
53 + dev-qt/qtgui:5[accessibility]
54 + >=media-libs/mutagen-1.38"
55 +DEPEND="
56 + nls? ( dev-qt/linguist-tools:5 )
57 +"
58 +
59 +RESTRICT="test" # doesn't work with ebuilds
60 +
61 +# upstream quickly renamed to dev4 after buildsystem and runtime(!) were broken by 'beta1'
62 +S="${WORKDIR}/${P/_beta2/dev5}"
63 +
64 +python_compile() {
65 + local build_args=(
66 + --disable-autoupdate
67 + )
68 + if ! use nls; then
69 + build_args+=( --disable-locales )
70 + fi
71 + distutils-r1_python_compile ${build_args[@]}
72 +}
73 +
74 +python_install() {
75 + local install_args=(
76 + --disable-autoupdate
77 + --skip-build
78 + )
79 + if ! use nls; then
80 + install_args+=( --disable-locales )
81 + fi
82 + distutils-r1_python_install ${install_args[@]}
83 +}
84 +
85 +python_install_all() {
86 + distutils-r1_python_install_all
87 +
88 + local DOC_CONTENTS="Install optional package media-libs/chromaprint[tools] to enable
89 +calculation and lookup of AcoustID fingerprints.
90 +
91 +Install optional package dev-python/python-discid to enable
92 +calculation and lookup of compact disc identifiers (disc IDs).
93 +
94 +If you are upgrading Picard and it does not start, try removing
95 +Picard's settings:
96 + rm ~/.config/MusicBrainz/Picard.conf"
97 + readme.gentoo_create_doc
98 +}
99 +
100 +pkg_postinst() {
101 + readme.gentoo_print_elog
102 + xdg_desktop_database_update
103 + gnome2_icon_cache_update
104 +}
105 +
106 +pkg_postrm() {
107 + xdg_desktop_database_update
108 + gnome2_icon_cache_update
109 +}