diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-sound/cmus/cmus-2.7.1.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-sound/cmus/cmus-2.7.1.ebuild')
-rw-r--r-- | media-sound/cmus/cmus-2.7.1.ebuild | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/media-sound/cmus/cmus-2.7.1.ebuild b/media-sound/cmus/cmus-2.7.1.ebuild new file mode 100644 index 000000000000..d7fb29f0d787 --- /dev/null +++ b/media-sound/cmus/cmus-2.7.1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit bash-completion-r1 multilib + +DESCRIPTION="A ncurses based music player with plugin support for many formats" +HOMEPAGE="http://cmus.github.io/" +SRC_URI="http://github.com/cmus/cmus/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="aac alsa ao cue cdio cddb discid debug examples +flac jack libsamplerate + +mad mikmod modplug mp4 musepack opus oss pidgin pulseaudio tremor +unicode + +vorbis wavpack wma" + +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 ) + cdio? ( dev-libs/libcdio-paranoia ) + cddb? ( media-libs/libcddb ) + discid? ( media-libs/libdiscid ) + flac? ( media-libs/flac ) + jack? ( media-sound/jack-audio-connection-kit ) + libsamplerate? ( media-libs/libsamplerate ) + 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 ) + opus? ( media-libs/opusfile ) + pulseaudio? ( media-sound/pulseaudio ) + tremor? ( media-libs/tremor ) + !tremor? ( vorbis? ( >=media-libs/libvorbis-1.0 ) ) + wavpack? ( media-sound/wavpack ) + wma? ( media-video/ffmpeg:= )" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + pidgin? ( net-im/pidgin dev-python/dbus-python )" + +# Both CONFIG_TREMOR=y and CONFIG_VORBIS=y are required to link to tremor libs instead of vorbis libs +REQUIRED_USE="tremor? ( vorbis ) + mp4? ( aac )" # enabling mp4 adds -lfaad + +DOCS="AUTHORS README.md" + +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 CONFIG_SNDIO=n CONFIG_WAVEOUT=n CONFIG_VTX=n CONFIG_ROAR=n" + + use debug && debuglevel=2 + + 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 tremor CONFIG_TREMOR + my_config opus CONFIG_OPUS + my_config wavpack CONFIG_WAVPACK + my_config mp4 CONFIG_MP4 + my_config aac CONFIG_AAC + my_config wma CONFIG_FFMPEG + my_config cue CONFIG_CUE + my_config pulseaudio CONFIG_PULSE + my_config alsa CONFIG_ALSA + my_config jack CONFIG_JACK + my_config libsamplerate CONFIG_SAMPLERATE + my_config ao CONFIG_AO + my_config oss CONFIG_OSS + + ./configure prefix="${EPREFIX}"/usr ${myconf} \ + exampledir="${EPREFIX}"/usr/share/doc/${PF}/examples \ + libdir="${EPREFIX}"/usr/$(get_libdir) DEBUG=${debuglevel} || die +} + +src_install() { + default + + use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples + + insinto /usr/share/zsh/site-functions + doins contrib/_cmus + + newbashcomp contrib/${PN}.bash-completion ${PN} + + if use pidgin; then + newbin contrib/cmus-updatepidgin.py cmus-updatepidgin + fi +} |