summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/beets/ChangeLog8
-rw-r--r--media-sound/beets/beets-1.0_beta14-r1.ebuild55
-rw-r--r--media-sound/beets/metadata.xml8
3 files changed, 70 insertions, 1 deletions
diff --git a/media-sound/beets/ChangeLog b/media-sound/beets/ChangeLog
index fc14e8eeeac1..1479af8d289b 100644
--- a/media-sound/beets/ChangeLog
+++ b/media-sound/beets/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/beets
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/beets/ChangeLog,v 1.3 2012/05/28 23:25:22 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/beets/ChangeLog,v 1.4 2012/05/29 14:07:09 sochotnicky Exp $
+
+*beets-1.0_beta14-r1 (29 May 2012)
+
+ 29 May 2012; Stanislav Ochotnicky <sochotnicky@gentoo.org>
+ +beets-1.0_beta14-r1.ebuild, metadata.xml:
+ Add several use flags and plugin dependencies
28 May 2012; Jeff Horelick <jdhore@gentoo.org> beets-1.0_beta14.ebuild:
Keyword ~x86.
diff --git a/media-sound/beets/beets-1.0_beta14-r1.ebuild b/media-sound/beets/beets-1.0_beta14-r1.ebuild
new file mode 100644
index 000000000000..b0135d10cb4f
--- /dev/null
+++ b/media-sound/beets/beets-1.0_beta14-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/beets/beets-1.0_beta14-r1.ebuild,v 1.1 2012/05/29 14:07:09 sochotnicky Exp $
+
+EAPI="4"
+
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils python
+
+MY_PV=${PV/_beta/b}
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DESCRIPTION="A media library management system for obsessive-compulsive music geeks."
+SRC_URI="http://beets.googlecode.com/files/${PN}-${MY_PV}.tar.gz"
+HOMEPAGE="http://beets.radbox.org/"
+
+KEYWORDS="~amd64"
+SLOT="0"
+LICENSE="MIT"
+IUSE="chroma lastgenre bpd replaygain web"
+
+DEPEND="dev-lang/python[sqlite]
+ dev-python/munkres
+ dev-python/python-musicbrainz-ngs
+ dev-python/unidecode
+ media-libs/mutagen
+ chroma? ( dev-python/pyacoustid )
+ lastgenre? ( dev-python/pylast )
+ bpd? ( dev-python/bluelet )
+ replaygain? ( media-sound/rgain )
+ web? ( dev-python/flask )"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ python_src_prepare
+
+ # remove plugins that do not have appropriate dependencies installed
+ for flag in lastgenre bpd web;do
+ if ! use $flag ; then
+ rm -r beetsplug/$flag* || \
+ die "Unable to remove $flag plugin"
+ sed -i "s:'beetsplug.$flag',::" setup.py || \
+ die "Unable to disable $flag plugin "
+ fi
+ done
+
+ for flag in chroma replaygain;do
+ if ! use $flag ; then
+ rm beetsplug/$flag.py || die "Unable to remove $flag plugin"
+ fi
+ done
+}
diff --git a/media-sound/beets/metadata.xml b/media-sound/beets/metadata.xml
index 8bfa2cee0a6e..4a18317ecc9e 100644
--- a/media-sound/beets/metadata.xml
+++ b/media-sound/beets/metadata.xml
@@ -19,5 +19,13 @@ Because beets is designed as a library, it can do almost anything you can imagin
If beets doesn’t do what you want yet, writing your own plugin is shockingly simple if you know a little Python.
</longdescription>
+ <use>
+ <flag name="chroma">Enable support for acoustic fingerprinting plugin using
+ (<pkg>media-libs/chromaprint</pkg>)</flag>
+ <flag name="lastgenre">Enable support for importing music genres from last.fm tags</flag>
+ <flag name="bpd">Enable support for <pkg>media-sound/mpd</pkg> server emulation</flag>
+ <flag name="replaygain">Enable support for Replay Gain metadata calculation during import</flag>
+ <flag name="web">Enable embedded webserver support through <pkg>dev-python/flask</pkg></flag>
+ </use>
</pkgmetadata>