1 |
commit: 28ddfd72b954167ae9748b880907a284dcbb99c3 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 27 21:37:52 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 27 21:42:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ddfd72 |
7 |
|
8 |
media-sound/picard: Add Qt5-based live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
media-sound/picard/picard-9999.ebuild | 74 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 74 insertions(+) |
14 |
|
15 |
diff --git a/media-sound/picard/picard-9999.ebuild b/media-sound/picard/picard-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..a182c7b674a |
18 |
--- /dev/null |
19 |
+++ b/media-sound/picard/picard-9999.ebuild |
20 |
@@ -0,0 +1,74 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{5,6} ) |
27 |
+DISTUTILS_SINGLE_IMPL=1 |
28 |
+DISABLE_AUTOFORMATTING=true |
29 |
+ |
30 |
+EGIT_REPO_URI="https://github.com/metabrainz/picard" |
31 |
+inherit distutils-r1 git-r3 readme.gentoo-r1 xdg-utils |
32 |
+ |
33 |
+DESCRIPTION="A cross-platform music tagger" |
34 |
+HOMEPAGE="https://picard.musicbrainz.org" |
35 |
+ |
36 |
+LICENSE="GPL-2+" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="" |
39 |
+IUSE="nls" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/PyQt5[declarative,gui,network,widgets,${PYTHON_USEDEP}] |
43 |
+ dev-qt/qtgui:5[accessibility] |
44 |
+ >=media-libs/mutagen-1.38" |
45 |
+DEPEND=" |
46 |
+ nls? ( dev-qt/linguist-tools:5 ) |
47 |
+" |
48 |
+ |
49 |
+RESTRICT="test" # doesn't work with ebuilds |
50 |
+ |
51 |
+python_compile() { |
52 |
+ local build_args=( |
53 |
+ --disable-autoupdate |
54 |
+ ) |
55 |
+ if ! use nls; then |
56 |
+ build_args+=( --disable-locales ) |
57 |
+ fi |
58 |
+ distutils-r1_python_compile ${build_args[@]} |
59 |
+} |
60 |
+ |
61 |
+python_install() { |
62 |
+ local install_args=( |
63 |
+ --disable-autoupdate |
64 |
+ --skip-build |
65 |
+ ) |
66 |
+ if ! use nls; then |
67 |
+ install_args+=( --disable-locales ) |
68 |
+ fi |
69 |
+ distutils-r1_python_install ${install_args[@]} |
70 |
+} |
71 |
+ |
72 |
+python_install_all() { |
73 |
+ distutils-r1_python_install_all |
74 |
+ |
75 |
+ local DOC_CONTENTS="Install optional package media-libs/chromaprint[tools] to enable |
76 |
+calculation and lookup of AcoustID fingerprints. |
77 |
+ |
78 |
+Install optional package dev-python/python-discid to enable |
79 |
+calculation and lookup of compact disc identifiers (disc IDs). |
80 |
+ |
81 |
+If you are upgrading Picard and it does not start, try removing |
82 |
+Picard's settings: |
83 |
+ rm ~/.config/MusicBrainz/Picard.conf" |
84 |
+ readme.gentoo_create_doc |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ readme.gentoo_print_elog |
89 |
+ xdg_desktop_database_update |
90 |
+} |
91 |
+ |
92 |
+pkg_postrm() { |
93 |
+ xdg_desktop_database_update |
94 |
+} |