Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/picard: ChangeLog picard-0.15.1-r1.ebuild picard-0.15.1.ebuild
Date: Thu, 29 Sep 2011 08:54:57
Message-Id: 20110929085446.B4DF520036@flycatcher.gentoo.org
1 radhermit 11/09/29 08:54:46
2
3 Modified: ChangeLog
4 Added: picard-0.15.1-r1.ebuild
5 Removed: picard-0.15.1.ebuild
6 Log:
7 Revbump to install the correct coverart plugin version (bug #378161 by Martin Dummer). Remove old.
8
9 (Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.33 media-sound/picard/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/ChangeLog?rev=1.33&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/ChangeLog?rev=1.33&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/ChangeLog?r1=1.32&r2=1.33
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v
21 retrieving revision 1.32
22 retrieving revision 1.33
23 diff -u -r1.32 -r1.33
24 --- ChangeLog 7 Aug 2011 19:50:26 -0000 1.32
25 +++ ChangeLog 29 Sep 2011 08:54:46 -0000 1.33
26 @@ -1,6 +1,13 @@
27 # ChangeLog for media-sound/picard
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.32 2011/08/07 19:50:26 radhermit Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.33 2011/09/29 08:54:46 radhermit Exp $
31 +
32 +*picard-0.15.1-r1 (29 Sep 2011)
33 +
34 + 29 Sep 2011; Tim Harder <radhermit@g.o> -picard-0.15.1.ebuild,
35 + +picard-0.15.1-r1.ebuild:
36 + Revbump to install the correct coverart plugin version (bug #378161 by Martin
37 + Dummer). Remove old.
38
39 *picard-0.15.1 (07 Aug 2011)
40
41
42
43
44 1.1 media-sound/picard/picard-0.15.1-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/picard-0.15.1-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/picard-0.15.1-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: picard-0.15.1-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.15.1-r1.ebuild,v 1.1 2011/09/29 08:54:46 radhermit Exp $
54
55 EAPI="3"
56
57 PYTHON_DEPEND="2"
58 SUPPORT_PYTHON_ABIS="1"
59 RESTRICT_PYTHON_ABIS="2.4 3.*"
60
61 inherit eutils distutils
62
63 MY_P="${P/_/}"
64 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
65 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
66 SRC_URI="
67 http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz
68 coverart? ( http://dev.gentoo.org/~radhermit/distfiles/${P}-coverart.py.gz )"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~amd64 ~ppc ~x86"
73 IUSE="cdda coverart ffmpeg nls"
74
75 DEPEND="
76 dev-python/PyQt4[X]
77 media-libs/mutagen
78 cdda? ( >=media-libs/libdiscid-0.1.1 )
79 ffmpeg? (
80 virtual/ffmpeg
81 >=media-libs/libofa-0.9.2 )"
82 RDEPEND="${DEPEND}"
83
84 # doesn't work with ebuilds
85 RESTRICT="test"
86
87 S="${WORKDIR}/${MY_P}"
88
89 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
90
91 pkg_setup() {
92 if ! use ffmpeg; then
93 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
94 ewarn "recognition will not be available."
95 fi
96 if ! use cdda; then
97 ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
98 ewarn "identification will not be available. You can get audio CD support"
99 ewarn "by installing media-libs/libdiscid."
100 fi
101 }
102
103 src_unpack() {
104 unpack ${A}
105 if use coverart; then
106 cp "${WORKDIR}"/${P}-coverart.py "${S}"/${PN}/plugins/coverart.py || die "Copy of coverart plugin failed"
107 fi
108 }
109
110 src_prepare() {
111 distutils_src_prepare
112 }
113
114 src_configure() {
115 $(PYTHON -f) setup.py config || die "setup.py config failed"
116 if ! use ffmpeg; then
117 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
118 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
119 build.cfg || die "sed failed"
120 fi
121 }
122
123 src_compile() {
124 distutils_src_compile $(use nls || echo "--disable-locales")
125 }
126
127 src_install() {
128 distutils_src_install --disable-autoupdate --skip-build \
129 $(use nls || echo "--disable-locales")
130
131 doicon picard.ico || die 'doicon failed'
132 domenu picard.desktop || die 'domenu failed'
133 }
134
135 pkg_postinst() {
136 distutils_pkg_postinst
137 echo
138 ewarn "If you are upgrading Picard and it does not start"
139 ewarn "try removing Picard's settings:"
140 ewarn " rm ~/.config/MusicBrainz/Picard.conf"
141 elog
142 elog "You should set the environment variable BROWSER to something like"
143 elog "\"firefox '%s' &\" to let python know which browser to use."
144 if use coverart; then
145 ewarn "You have downloaded and installed the coverart downloader plugin."
146 ewarn "If you expect it to work please enable it in Options->Plugins."
147 fi
148 }