diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-12-07 11:54:19 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-12-07 11:54:33 +0100 |
commit | ac90c11de6e45a85fcf75867047905051e110f55 (patch) | |
tree | 619621fbd35bccbbd543d024a50c9c1891f4b959 /media-sound/cmus | |
parent | kde-base/ksmserver -> kde-plasma/ksmserver (diff) | |
download | gentoo-ac90c11de6e45a85fcf75867047905051e110f55.tar.gz gentoo-ac90c11de6e45a85fcf75867047905051e110f55.tar.bz2 gentoo-ac90c11de6e45a85fcf75867047905051e110f55.zip |
media-sound/cmus: bump to 2.8.0 rc0, bug #601850 by Mateusz Lenik.
Package-Manager: portage-2.3.3
Diffstat (limited to 'media-sound/cmus')
-rw-r--r-- | media-sound/cmus/Manifest | 1 | ||||
-rw-r--r-- | media-sound/cmus/cmus-2.8.0_rc0.ebuild | 111 |
2 files changed, 112 insertions, 0 deletions
diff --git a/media-sound/cmus/Manifest b/media-sound/cmus/Manifest index 2536ea6efb5f..576c8d6823a0 100644 --- a/media-sound/cmus/Manifest +++ b/media-sound/cmus/Manifest @@ -1 +1,2 @@ DIST cmus-2.7.1.tar.gz 296818 SHA256 8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165 SHA512 b29ce10bbb61eb41c33c4912be320718fcf005a5797320145b124f048f6be5f5b0cebb67471ef7b062bd6f854849b6aae0e82e9adbf289a44237787932ea1576 WHIRLPOOL a6ee2109f5f6b6e771704fc1887fe1caf988bff39126d1a7a26d8fb93a7dfe53113eee697a04cb2bbaf4c274b9acbb9a5ecbf2d1c0e3fac4552380a23f5f3549 +DIST cmus-2.8.0_rc0.tar.gz 315613 SHA256 b594087f16053f4db49e89d72b1c6dbb12e221373e806e62b3e97c327de1dac9 SHA512 0379f18497d6510fad35a2d905c932d12f2726a5694d3ab272ce139e9ea4520cb4dd1cf3fafe890f6ada8a64285f8c04ef7571647a66c2d44df17e2dca80f869 WHIRLPOOL 47fb7c22727bcc6e2a231c469b4ff67ec8a56902ec1786357eef33445ae0fac5b66e68649193af03b7fd1cb6274da1742ab2a1c6473ec764ff210b9ce60afcb5 diff --git a/media-sound/cmus/cmus-2.8.0_rc0.ebuild b/media-sound/cmus/cmus-2.8.0_rc0.ebuild new file mode 100644 index 000000000000..4b9256fc7bda --- /dev/null +++ b/media-sound/cmus/cmus-2.8.0_rc0.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2016 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="https://github.com/cmus/cmus/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="aac alsa ao cue cdio cddb discid debug examples ffmpeg +flac jack libsamplerate + +mad mikmod modplug mp4 musepack opus oss pidgin pulseaudio tremor +unicode + +vorbis wavpack" + +S="${WORKDIR}/${P/_/-}" + +CDEPEND="sys-libs/ncurses:0=[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 ) + ffmpeg? ( media-video/ffmpeg:= ) + 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 )" +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 ffmpeg 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 +} + +pkg_postinst() { + einfo "USE flag 'wma' was replaced by 'ffmpeg'" + einfo "Details here - https://bugs.gentoo.org/show_bug.cgi?id=553834" +} |