# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libspiff/libspiff-0.8.3.ebuild,v 1.6 2008/06/20 10:36:04 opfer Exp $ inherit eutils DESCRIPTION="Library for XSPF playlist reading and writing" HOMEPAGE="http://libspiff.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="BSD LGPL-2.1" SLOT="0" KEYWORDS="amd64 ppc sparc x86" IUSE="doc" RDEPEND="dev-libs/expat dev-libs/uriparser" DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-cstring-test-suite.patch } src_compile() { econf --disable-dependency-tracking emake || die "emake failed." if use doc; then cd "${S}/doc" doxygen Doxyfile || die "doxygen failed." fi } src_install() { emake DESTDIR="${D}" install || die "emake install failed." dodoc AUTHORS ChangeLog NEWS README THANKS if use doc; then dohtml doc/html/* fi }