# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 DESCRIPTION="MIME library written in C++ designed to be easy to use and integrate but yet fast and efficient." HOMEPAGE="http://codesink.org/mimetic_mime_library.html" SRC_URI="http://codesink.org/download/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="amd64" IUSE="doc examples" DEPEND="" RDEPEND="${DEPEND}" src_compile() { use doc && ( emake -C doc docs || die "emake docs failed" ) } src_install() { emake DESTDIR=${D} install || die "emake install failed" dodoc AUTHORS LICENSE ChangeLog INSTALL NEWS README use doc && dohtml -r doc/html/* if use examples ; then docinto examples dodoc examples/{README,TODO,test.msg,*.cxx,*.h} fi }