summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago M. Mola <coldwind@gentoo.org>2008-12-07 13:46:15 +0000
committerSantiago M. Mola <coldwind@gentoo.org>2008-12-07 13:46:15 +0000
commitd2a7dcbf3866bf494a8028f44097389394b41199 (patch)
tree6b7b238c56ec1c185bbe9ef82157e321d58ab46f /media-sound/picard
parentRemoved empty dirs - fixes bug 249655. (diff)
downloadgentoo-2-d2a7dcbf3866bf494a8028f44097389394b41199.tar.gz
gentoo-2-d2a7dcbf3866bf494a8028f44097389394b41199.tar.bz2
gentoo-2-d2a7dcbf3866bf494a8028f44097389394b41199.zip
Version bump, may fix bug #249650.
(Portage version: 2.2_rc17/cvs/Linux 2.6.27-gentoo-r2 x86_64)
Diffstat (limited to 'media-sound/picard')
-rw-r--r--media-sound/picard/ChangeLog7
-rw-r--r--media-sound/picard/picard-0.11.ebuild75
2 files changed, 81 insertions, 1 deletions
diff --git a/media-sound/picard/ChangeLog b/media-sound/picard/ChangeLog
index 3bebc59b5769..e14f56352e41 100644
--- a/media-sound/picard/ChangeLog
+++ b/media-sound/picard/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/picard
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.16 2008/12/01 21:19:32 coldwind Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.17 2008/12/07 13:46:15 coldwind Exp $
+
+*picard-0.11 (07 Dec 2008)
+
+ 07 Dec 2008; Santiago M. Mola <coldwind@gentoo.org> +picard-0.11.ebuild:
+ Version bump, may fix bug #249650.
*picard-0.10-r2 (01 Dec 2008)
diff --git a/media-sound/picard/picard-0.11.ebuild b/media-sound/picard/picard-0.11.ebuild
new file mode 100644
index 000000000000..e6e98fb375c5
--- /dev/null
+++ b/media-sound/picard/picard-0.11.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.11.ebuild,v 1.1 2008/12/07 13:46:15 coldwind Exp $
+
+inherit distutils
+
+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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cdaudio ffmpeg nls"
+
+RDEPEND=">=dev-lang/python-2.4
+ || ( >=dev-lang/python-2.5 >=dev-python/ctypes-0.9 )
+ >=dev-python/PyQt4-4.2
+ media-libs/mutagen
+ cdaudio? ( >=media-libs/libdiscid-0.1.1 )
+ ffmpeg? ( media-video/ffmpeg
+ >=media-libs/libofa-0.9.2 )"
+
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
+S=${WORKDIR}/${MY_P}
+
+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 cdaudio; then
+ ewarn "The 'cdaudio' 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
+
+ if ! built_with_use --missing true dev-lang/python cxx ; then
+ eerror "Please, rebuild dev-lang/python with USE=\"cxx\"."
+ die "dev-lang/python built without cxx support"
+ fi
+}
+
+src_compile() {
+ ${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} setup.py build $(use nls || echo "--disable-locales") \
+ || die "setup.py build failed"
+}
+
+src_install() {
+ distutils_src_install --disable-autoupdate --skip-build \
+ $(use nls || echo "--disable-locales")
+
+ doicon picard-{16,32}.png
+ domenu picard.desktop
+}
+
+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."
+}