# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="doc" DESCRIPTION="mimetic is a GPL MIME library written in C++" SRC_URI="http://codesink.org/download/${P}.tar.gz" HOMEPAGE="http://codesink.org/mimetic_mime_library.html" DEPEND="doc? doxygen" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" src_compile() { ./configure --prefix=/usr || die "configure failed" emake || die "emake failed" cd doc if use doc ; then make docs || die "'make docs' failed" fi cd .. } src_install ( ) { make prefix=${D}/usr install || die "make install failed" dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO use doc && dohtml -r doc/html/* }