diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-05-26 04:33:52 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-05-26 04:33:52 +0000 |
commit | 6736c39fc3a28c3f3363a310f9f62898da99d0a7 (patch) | |
tree | 9a4153ae0ac5de06503c2dff8ece47ea5c579a3c /media-sound | |
parent | games-action/chromium is now games-action/chromium-bsu (diff) | |
download | gentoo-2-6736c39fc3a28c3f3363a310f9f62898da99d0a7.tar.gz gentoo-2-6736c39fc3a28c3f3363a310f9f62898da99d0a7.tar.bz2 gentoo-2-6736c39fc3a28c3f3363a310f9f62898da99d0a7.zip |
version bump
(Portage version: 2.2.0_alpha36/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/picard/ChangeLog | 7 | ||||
-rw-r--r-- | media-sound/picard/picard-0.14.ebuild | 100 |
2 files changed, 106 insertions, 1 deletions
diff --git a/media-sound/picard/ChangeLog b/media-sound/picard/ChangeLog index ea41aa69a715..4db1b4069b50 100644 --- a/media-sound/picard/ChangeLog +++ b/media-sound/picard/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-sound/picard # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.30 2011/04/28 14:37:51 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/ChangeLog,v 1.31 2011/05/26 04:33:52 aballier Exp $ + +*picard-0.14 (26 May 2011) + + 26 May 2011; Alexis Ballier <aballier@gentoo.org> +picard-0.14.ebuild: + version bump *picard-0.13 (28 Apr 2011) diff --git a/media-sound/picard/picard-0.14.ebuild b/media-sound/picard/picard-0.14.ebuild new file mode 100644 index 000000000000..a86eeba000f0 --- /dev/null +++ b/media-sound/picard/picard-0.14.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.14.ebuild,v 1.1 2011/05/26 04:33:52 aballier Exp $ + +EAPI="3" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit eutils 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 + 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? ( + virtual/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_prepare() { + epatch "${FILESDIR}/${PN}-0.13-ffmpeg.patch" + distutils_src_prepare +} + +src_configure() { + $(PYTHON -f) 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 +} + +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 +} |