2011-03-21 23:37:52 +01:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
2011-03-22 06:48:37 +01:00
|
|
|
inherit eutils autotools
|
2011-03-21 23:37:52 +01:00
|
|
|
|
2011-03-22 06:48:37 +01:00
|
|
|
MY_PV=${PV/_pre/+svn}
|
|
|
|
MY_PVV=${PV/_pre*/}
|
2011-03-21 23:37:52 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Library for working with MIME messages and Internet messaging services like IMAP, POP or SMTP"
|
|
|
|
HOMEPAGE="http://www.vmime.org"
|
|
|
|
SRC_URI="mirror://sourceforge/vmime/${PN}-${MY_PV}.tar.bz2
|
2011-03-22 06:48:37 +01:00
|
|
|
http://download.zarafa.com/community/beta/7.0/7.0.0beta3-25734/sourcecode/${PN}-${MY_PV}.tar.bz2
|
|
|
|
http://ftp.disconnected-by-peer.at/zarafa/${P}-zarafa-1.tar.bz2"
|
|
|
|
|
2011-03-21 23:37:52 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2011-03-22 06:48:37 +01:00
|
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
|
|
IUSE="debug doc examples +imap +maildir +pop sasl sendmail +smtp ssl static"
|
2011-03-21 23:37:52 +01:00
|
|
|
|
|
|
|
RDEPEND="virtual/libiconv
|
|
|
|
ssl? ( >=net-libs/gnutls-1.2.0 )
|
|
|
|
sasl? ( virtual/gsasl )
|
|
|
|
sendmail? ( virtual/mta )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PVV}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i \
|
|
|
|
-e "s|doc/\${PACKAGE_TARNAME}|doc/${PF}|" \
|
|
|
|
-e "s|doc/\$(GENERIC_LIBRARY_NAME)|doc/${PF}|" \
|
|
|
|
configure Makefile.in || die "sed failed"
|
2011-03-22 06:48:37 +01:00
|
|
|
EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="diff" \
|
|
|
|
EPATCH_FORCE="yes" epatch
|
|
|
|
# AT_M4DIR="m4" eautoreconf
|
|
|
|
# die
|
2011-03-21 23:37:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf $(use_enable debug) \
|
2011-03-22 06:48:37 +01:00
|
|
|
$(use_enable static) \
|
2011-03-21 23:37:52 +01:00
|
|
|
$(use_enable sasl) \
|
|
|
|
$(use_enable ssl tls) \
|
|
|
|
$(use_enable pop messaging-proto-pop3) \
|
|
|
|
$(use_enable smtp messaging-proto-smtp) \
|
|
|
|
$(use_enable imap messaging-proto-imap) \
|
|
|
|
$(use_enable maildir messaging-proto-maildir) \
|
|
|
|
$(use_enable sendmail messaging-proto-sendmail)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
default
|
|
|
|
if use doc ; then
|
|
|
|
doxygen vmime.doxygen || die "doxygen failed"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
|
|
dodoc AUTHORS ChangeLog || die "dodoc failed"
|
|
|
|
if use doc ; then
|
|
|
|
dohtml doc/html/* || die "dohtml failed"
|
|
|
|
fi
|
|
|
|
|
|
|
|
insinto /usr/share/doc/${PF}
|
|
|
|
if use examples ; then
|
|
|
|
doins -r examples || die "doins examples failed"
|
|
|
|
fi
|
|
|
|
}
|