summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/cmus/ChangeLog8
-rw-r--r--media-sound/cmus/cmus-2.5.0.ebuild93
-rw-r--r--media-sound/cmus/metadata.xml2
3 files changed, 102 insertions, 1 deletions
diff --git a/media-sound/cmus/ChangeLog b/media-sound/cmus/ChangeLog
index e28bb339bbad..8eb6fad70601 100644
--- a/media-sound/cmus/ChangeLog
+++ b/media-sound/cmus/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/cmus
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/cmus/ChangeLog,v 1.57 2012/05/19 09:03:33 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/cmus/ChangeLog,v 1.58 2012/11/18 10:55:07 fauli Exp $
+
+*cmus-2.5.0 (18 Nov 2012)
+
+ 18 Nov 2012; Christian Faulhammer <fauli@gentoo.org> +cmus-2.5.0.ebuild,
+ metadata.xml:
+ version bump for bug 443436
19 May 2012; Samuli Suominen <ssuominen@gentoo.org> cmus-2.4.3.ebuild:
Ensure libmp4v2 headers are present by forcing correct SLOT
diff --git a/media-sound/cmus/cmus-2.5.0.ebuild b/media-sound/cmus/cmus-2.5.0.ebuild
new file mode 100644
index 000000000000..79c372e99179
--- /dev/null
+++ b/media-sound/cmus/cmus-2.5.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/cmus/cmus-2.5.0.ebuild,v 1.1 2012/11/18 10:55:07 fauli Exp $
+
+EAPI=4
+inherit eutils multilib
+
+MY_P=${PN}-v${PV}
+
+DESCRIPTION="A ncurses based music player with plugin support for many formats"
+HOMEPAGE="http://cmus.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cmus/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="aac alsa ao cue cddb cdda discid debug examples flac mad mikmod modplug mp4 musepack oss pidgin pulseaudio unicode vorbis wavpack wma zsh-completion"
+
+CDEPEND="sys-libs/ncurses[unicode?]
+ aac? ( media-libs/faad2 )
+ alsa? ( >=media-libs/alsa-lib-1.0.11 )
+ ao? ( media-libs/libao )
+ cue? ( media-libs/libcue )
+ cddb? ( media-libs/libcddb )
+ cdda? ( dev-libs/libcdio )
+ discid? ( media-libs/libdiscid )
+ flac? ( media-libs/flac )
+ mad? ( >=media-libs/libmad-0.14 )
+ mikmod? ( media-libs/libmikmod:0 )
+ modplug? ( >=media-libs/libmodplug-0.7 )
+ mp4? ( >=media-libs/libmp4v2-1.9:0 )
+ musepack? ( >=media-sound/musepack-tools-444 )
+ pulseaudio? ( media-sound/pulseaudio )
+ vorbis? ( >=media-libs/libvorbis-1.0 )
+ wavpack? ( media-sound/wavpack )
+ wma? ( >=virtual/ffmpeg-0.10.2-r1 )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+RDEPEND="${CDEPEND}
+ zsh-completion? ( app-shells/zsh )
+ pidgin? ( net-im/pidgin
+ dev-python/dbus-python )"
+
+S=${WORKDIR}/${MY_P}
+
+my_config() {
+ local value
+ use ${1} && value=a || value=n
+ myconf="${myconf} ${2}=${value}"
+}
+
+src_configure() {
+ local debuglevel=1 myconf="CONFIG_ARTS=n CONFIG_SUN=n"
+
+ use debug && debuglevel=2
+
+ my_config cue CONFIG_CUE
+ my_config cddb CONFIG_CDDB
+ my_config cdio CONFIG_CDIO
+ my_config discid CONFIG_DISCID
+ my_config flac CONFIG_FLAC
+ my_config mad CONFIG_MAD
+ my_config modplug CONFIG_MODPLUG
+ my_config mikmod CONFIG_MIKMOD
+ my_config musepack CONFIG_MPC
+ my_config vorbis CONFIG_VORBIS
+ my_config wavpack CONFIG_WAVPACK
+ my_config mp4 CONFIG_MP4
+ my_config aac CONFIG_AAC
+ my_config wma CONFIG_FFMPEG
+ my_config pulseaudio CONFIG_PULSE
+ my_config alsa CONFIG_ALSA
+ my_config ao CONFIG_AO
+ my_config oss CONFIG_OSS
+
+ ./configure prefix=/usr ${myconf} exampledir=/usr/share/doc/${PF}/examples \
+ libdir=/usr/$(get_libdir) DEBUG=${debuglevel} || die
+}
+
+src_install() {
+ default
+
+ use examples || rm -rf "${D}"/usr/share/doc/${PF}/examples
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ doins contrib/_cmus
+ fi
+
+ if use pidgin; then
+ newbin contrib/cmus-updatepidgin.py cmus-updatepidgin
+ fi
+}
diff --git a/media-sound/cmus/metadata.xml b/media-sound/cmus/metadata.xml
index 31ed2866dbcc..da0d45645a02 100644
--- a/media-sound/cmus/metadata.xml
+++ b/media-sound/cmus/metadata.xml
@@ -7,6 +7,8 @@
<name>Christian Faulhammer</name>
</maintainer>
<use>
+ <flag name="cue">enable CUE sheet parsing</flag>
+ <flag name="discid">enable reading the ID of the inserted CD</flag>
<flag name="pidgin">install support script for <pkg>net-im/pidgin</pkg></flag>
<flag name="wma">add support for Windows Media Audio</flag>
</use>