Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/picard: ChangeLog picard-0.13.ebuild
Date: Thu, 28 Apr 2011 14:38:01
Message-Id: 20110428143751.7E16220054@flycatcher.gentoo.org
1 aballier 11/04/28 14:37:51
2
3 Modified: ChangeLog
4 Added: picard-0.13.ebuild
5 Log:
6 version bump and fix build with ffmpeg trunk
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.30 media-sound/picard/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 10 Apr 2011 06:14:34 -0000 1.29
24 +++ ChangeLog 28 Apr 2011 14:37:51 -0000 1.30
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-sound/picard
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.29 2011/04/10 06:14:34 tomka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.30 2011/04/28 14:37:51 aballier Exp $
30 +
31 +*picard-0.13 (28 Apr 2011)
32 +
33 + 28 Apr 2011; Alexis Ballier <aballier@g.o> +picard-0.13.ebuild,
34 + +files/picard-0.13-ffmpeg.patch:
35 + version bump and fix build with ffmpeg trunk
36
37 10 Apr 2011; Thomas Kahle <tomka@g.o> picard-0.12.1-r1.ebuild:
38 x86 stable per bug 358449
39
40
41
42 1.1 media-sound/picard/picard-0.13.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/picard-0.13.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/picard/picard-0.13.ebuild?rev=1.1&content-type=text/plain
46
47 Index: picard-0.13.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.13.ebuild,v 1.1 2011/04/28 14:37:51 aballier Exp $
52
53 EAPI="3"
54
55 PYTHON_DEPEND="2"
56 SUPPORT_PYTHON_ABIS="1"
57
58 inherit eutils distutils
59
60 MY_P="${P/_/}"
61 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
62 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
63 SRC_URI="
64 http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz
65 coverart? ( http://users.musicbrainz.org/~outsidecontext/picard/plugins/coverart.py )"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~x86"
70 IUSE="cdda coverart ffmpeg nls"
71
72 DEPEND="
73 dev-python/PyQt4[X]
74 media-libs/mutagen
75 cdda? ( >=media-libs/libdiscid-0.1.1 )
76 ffmpeg? (
77 virtual/ffmpeg
78 >=media-libs/libofa-0.9.2 )"
79 RDEPEND="${DEPEND}"
80
81 # doesn't work with ebuilds
82 RESTRICT="test"
83
84 RESTRICT_PYTHON_ABIS="2.4 3.*"
85
86 S="${WORKDIR}/${MY_P}"
87
88 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
89
90 pkg_setup() {
91 if ! use ffmpeg; then
92 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
93 ewarn "recognition will not be available."
94 fi
95 if ! use cdda; then
96 ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
97 ewarn "identification will not be available. You can get audio CD support"
98 ewarn "by installing media-libs/libdiscid."
99 fi
100 }
101
102 src_unpack() {
103 unpack ${MY_P}.tar.gz
104 if use coverart; then
105 cp "${DISTDIR}"/coverart.py "${S}"/${PN}/plugins/coverart.py || die "Copy of coverart plugin failed"
106 fi
107 }
108
109 src_prepare() {
110 epatch "${FILESDIR}/${P}-ffmpeg.patch"
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 }