# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils PVP=(${PV//[-\._]/ }) SLOT="${PVP[0]}.${PVP[1]}" LICENSE="GPL-2" KEYWORDS="~x86" DESCRIPTION="Monkey's Audio plug-in for GStreamer." SRC_URI="http://gstreamer.freedesktop.org/src/gst-monkeysaudio/gst-monkeysaudio-${PV}.tar.bz2" HOMEPAGE="http://gstreamer.freedesktop.org" DEPEND=">=media-libs/gstreamer-0.8 || ( >=media-libs/gst-plugins-0.8 >=media-libs/gst-plugins-base-0.10 ) >=media-libs/mac-3.99" IUSE="" src_unpack() { unpack gst-monkeysaudio-${PV}.tar.bz2 } src_compile() { cd ${WORKDIR}/gst-monkeysaudio-${PV} econf --with-gnu-ld || die emake || die "Error: emake failed!" } src_install() { cd ${WORKDIR}/gst-monkeysaudio-${PV} make DESTDIR=${D} install dodoc AUTHORS COPYING ChangeLog INSTALL MAINTAINERS NEWS README RELEASE } update_registry() { einfo "Updating gstreamer plugins registry for gstreamer ${SLOT}..." gst-register-${SLOT} } pkg_postinst() { update_registry } pkg_postrm() { update_registry }