# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/tunepimp/tunepimp-0.3.0.ebuild,v 1.24 2005/11/28 13:04:10 mcummings Exp $ inherit eutils distutils perl-app DESCRIPTION="Client library to create MusicBrainz enabled tagging applications" HOMEPAGE="http://www.musicbrainz.org/products/tunepimp" SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/lib${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86" IUSE="flac mad vorbis readline python perl" RDEPEND="dev-libs/expat" DEPEND="${RDEPEND} flac? ( media-libs/flac ) vorbis? ( media-libs/libvorbis ) readline? ( sys-libs/readline ) mad? ( media-libs/libmad ) >=media-libs/musicbrainz-2.1.0 dev-util/pkgconfig !media-sound/trm" S=${WORKDIR}/lib${P} src_compile() { epatch ${FILESDIR}/thread.patch econf || die "configure failed" emake || die "emake failed" if use perl; then cd ${S}/perl/tunepimp-perl perl-app_src_compile || die "perl module failed to compile" fi } src_install() { cd ${S} make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog INSTALL README TODO if use python; then cd ${S}/python distutils_src_install insinto /usr/share/doc/${PF}/examples/ doins examples/* fi if use perl; then cd ${S}/perl/tunepimp-perl perl-module_src_install || die "perl module failed to install" insinto /usr/share/doc/${PF}/examples/ doins examples/* fi }