summaryrefslogtreecommitdiff
path: root/dev-libs/mimetic/mimetic-0.9.3.ebuild
blob: 739b0185934ce6f0fb791e20bb83f8815c2e2649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2007 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="~amd64 ~x86"

IUSE="stlport doc examples"

DEPEND="stlport? ( dev-libs/STLport )"

src_compile() {
	econf \
		$(use stlport && echo --with-stlport) \
		|| die "econf failed"
	emake || die "emake failed"
	use doc && ( emake -C doc docs || die "emake docs failed" )
}

src_install() {
	emake DESTDIR=${D} install || die "emake install failed"
	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
}