# 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() { econf || die "configure failed" emake || die "emake failed" if use doc ; then cd doc make docs || die "'make docs' failed" cd .. fi } src_install ( ) { make prefix=${D}/usr install || die "make install failed" dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO if use doc ; then dohtml -r doc/html/* docinto examples dodoc examples/* fi }