summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/picard')
-rw-r--r--media-sound/picard/ChangeLog9
-rw-r--r--media-sound/picard/metadata.xml1
-rw-r--r--media-sound/picard/picard-0.12.1-r1.ebuild100
3 files changed, 109 insertions, 1 deletions
diff --git a/media-sound/picard/ChangeLog b/media-sound/picard/ChangeLog
index d1bdd5a32ea8..222203f6f642 100644
--- a/media-sound/picard/ChangeLog
+++ b/media-sound/picard/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-sound/picard
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.24 2010/03/10 09:26:24 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.25 2010/05/29 09:24:56 jlec Exp $
+
+*picard-0.12.1-r1 (29 May 2010)
+
+ 29 May 2010; Justin Lecher <jlec@gentoo.org> +picard-0.12.1-r1.ebuild,
+ metadata.xml:
+ Fix Python ABI compatibility #313965; added support for covert download
+ #295922
10 Mar 2010; Joseph Jezak <josejx@gentoo.org> picard-0.12.1.ebuild:
Marked ~ppc for bug #306453.
diff --git a/media-sound/picard/metadata.xml b/media-sound/picard/metadata.xml
index 83082e61e5f4..6d0ec7d3fdf1 100644
--- a/media-sound/picard/metadata.xml
+++ b/media-sound/picard/metadata.xml
@@ -6,4 +6,5 @@
written in Python. Picard Tagger is intended to be the next generation of
tagger for MusicBrainz, with a focus on album oriented tagging as opposed to
track based tagging and cross platform compatibility.</longdescription>
+<use><flag name='coverart'>Install plugin for direct coverart dowload</flag></use>
</pkgmetadata>
diff --git a/media-sound/picard/picard-0.12.1-r1.ebuild b/media-sound/picard/picard-0.12.1-r1.ebuild
new file mode 100644
index 000000000000..efb147df519a
--- /dev/null
+++ b/media-sound/picard/picard-0.12.1-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.12.1-r1.ebuild,v 1.1 2010/05/29 09:24:56 jlec Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils distutils
+
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="true"
+
+MY_P="${P/_/}"
+DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
+HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
+SRC_URI="
+ http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz
+ coverart? ( http://users.musicbrainz.org/~outsidecontext/picard/plugins/coverart.py )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cdda coverart ffmpeg nls"
+
+DEPEND="
+ dev-python/PyQt4[X]
+ media-libs/mutagen
+ cdda? ( >=media-libs/libdiscid-0.1.1 )
+ ffmpeg? (
+ media-video/ffmpeg
+ >=media-libs/libofa-0.9.2 )"
+RDEPEND="${DEPEND}"
+
+# doesn't work with ebuilds
+RESTRICT="test"
+
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
+
+pkg_setup() {
+ if ! use ffmpeg; then
+ ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
+ ewarn "recognition will not be available."
+ fi
+ if ! use cdda; then
+ ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
+ ewarn "identification will not be available. You can get audio CD support"
+ ewarn "by installing media-libs/libdiscid."
+ fi
+}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if use coverart; then
+ cp "${DISTDIR}"/coverart.py "${S}"/${PN}/plugins/coverart.py || die "Copy of coverart plugin failed"
+ fi
+}
+
+src_configure() {
+ configuration() {
+ $(PYTHON) setup.py config || die "setup.py config failed"
+ if ! use ffmpeg; then
+ sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
+ -e "s:\(^with-libofa\ =\ \).*:\1False:" \
+ build.cfg || die "sed failed"
+ fi
+ }
+ python_execute_function -s configuration
+}
+
+src_compile() {
+ distutils_src_compile $(use nls || echo "--disable-locales")
+}
+
+src_install() {
+ distutils_src_install --disable-autoupdate --skip-build \
+ $(use nls || echo "--disable-locales")
+
+ doicon picard.ico || die 'doicon failed'
+ domenu picard.desktop || die 'domenu failed'
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ echo
+ ewarn "If you are upgrading Picard and it does not start"
+ ewarn "try removing Picard's settings:"
+ ewarn " rm ~/.config/MusicBrainz/Picard.conf"
+ elog
+ elog "You should set the environment variable BROWSER to something like"
+ elog "\"firefox '%s' &\" to let python know which browser to use."
+ if use coverart; then
+ ewarn "You have downloaded and installed the coverart downloader plugin."
+ ewarn "If you expect it to work please enable it in Options->Plugins."
+ fi
+}