1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Library for working with MIME messages and Internet messaging services like IMAP, POP or SMTP"
8 HOMEPAGE="http://www.vmime.org"
9 SRC_URI="mirror://sourceforge/vmime/${P}.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="debug doc examples +imap +maildir +pop sasl sendmail +smtp ssl"
16 RDEPEND="virtual/libiconv
17 ssl? ( >=net-libs/gnutls-1.2.0 )
18 sasl? ( virtual/gsasl )
19 sendmail? ( virtual/mta )"
21 doc? ( app-doc/doxygen )"
25 -e "s|doc/\${PACKAGE_TARNAME}|doc/${PF}|" \
26 -e "s|doc/\$(GENERIC_LIBRARY_NAME)|doc/${PF}|" \
27 configure Makefile.in || die "sed failed"
31 econf $(use_enable debug) \
33 $(use_enable ssl tls) \
34 $(use_enable pop messaging-proto-pop3) \
35 $(use_enable smtp messaging-proto-smtp) \
36 $(use_enable imap messaging-proto-imap) \
37 $(use_enable maildir messaging-proto-maildir) \
38 $(use_enable sendmail messaging-proto-sendmail)
44 doxygen vmime.doxygen || die "doxygen failed"
49 emake DESTDIR="${D}" install
50 dodoc AUTHORS ChangeLog
55 insinto /usr/share/doc/${PF}
56 if use examples ; then