# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils 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="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="stlport doc examples" DEPEND="stlport? ( dev-libs/STLport )" src_compile() { local conflags use stlport && conflage="--with-stlport" econf ${conflags} || die emake || die use doc && ( emake -C doc docs || die ) } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO use doc && dohtml -r doc/html/* if use examples ; then docinto examples dodoc examples/{README,TODO,test.msg,*.cxx,*.h} fi }