# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/moc/moc-2.5.0_alpha4_p20120501.ebuild,v 1.4 2012/05/05 08:39:33 mgorny Exp $ EAPI=4 inherit autotools DESCRIPTION="Music On Console - ncurses interface for playing audio files" HOMEPAGE="http://moc.daper.net" SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.xz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="aac alsa curl debug ffmpeg flac jack libsamplerate mad modplug musepack oss sid sndfile speex timidity +unicode vorbis wavpack" # libltdl from libtool is used at runtime RDEPEND=">=sys-devel/libtool-2.2.6b >=sys-libs/db-4 sys-libs/ncurses[unicode?] aac? ( media-libs/faad2 ) alsa? ( media-libs/alsa-lib ) curl? ( net-misc/curl ) ffmpeg? ( virtual/ffmpeg ) flac? ( media-libs/flac ) jack? ( media-sound/jack-audio-connection-kit ) libsamplerate? ( media-libs/libsamplerate ) mad? ( media-libs/libmad sys-libs/zlib media-libs/libid3tag ) modplug? ( media-libs/libmodplug ) musepack? ( media-sound/musepack-tools media-libs/taglib ) sid? ( >=media-libs/libsidplay-2 ) sndfile? ( media-libs/libsndfile ) speex? ( media-libs/speex ) timidity? ( media-libs/libtimidity media-sound/timidity++ ) vorbis? ( media-libs/libogg media-libs/libvorbis ) wavpack? ( media-sound/wavpack )" DEPEND="${RDEPEND} app-arch/xz-utils virtual/pkgconfig" src_prepare() { eautoreconf } src_configure() { local myconf=( --docdir="${EPREFIX}"/usr/share/doc/${PF} $(use_enable debug) $(use_with oss) $(use_with alsa) $(use_with jack) $(use_with unicode ncursesw) $(use_with libsamplerate samplerate) $(use_with aac) $(use_with ffmpeg) $(use_with flac) $(use_with modplug) $(use_with mad mp3) --without-rcc $(use_with musepack) $(use_with sid sidplay2) $(use_with sndfile) $(use_with speex) $(use_with timidity) $(use_with vorbis) $(use_with wavpack) $(use_with curl) ) econf "${myconf[@]}" } src_install() { emake DESTDIR="${D}" install dodoc AUTHORS NEWS TODO # The rest is installed by doc_DATA from "${S}"/Makefile.am find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + }