# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: 2007/09/12 14:46:45 $ EAPI=1 inherit autotools mono eutils DESCRIPTION="Taglib# 2.0 - Managed tag reader/writer" HOMEPAGE="http://www.taglib-sharp.com" SRC_URI="http://www.taglib-sharp.com/Download/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc gnome" RDEPEND="${DEPEND}" DEPEND="dev-lang/mono gnome? ( >=dev-dotnet/gnome-sharp-2.0 ) doc? ( dev-util/monodoc )" src_unpack() { unpack "${A}" cd "${S}" # Cleaning up docdir mess (bug #184149) epatch "${FILESDIR}"/${PN}-fix-docdir.patch # taglib-sharp configure script is a bit messed up epatch "${FILESDIR}"/${PN}-fix-docs-test.patch # Fix sandbox violation on /usr/lib/monodoc/monodoc.xml epatch "${FILESDIR}"/${PN}-fix-sandbox-violation.patch # Allow gnome-sharp to be an optional dependency epatch "${FILESDIR}"/${PN}-gnome-sharp-toggle.patch eautoreconf } src_compile() { econf \ $(use_enable doc docs) \ $(use_enable gnome gnome-sharp) emake -j1 || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "Install failed" dodoc AUTHORS ChangeLog NEWS README }