You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.8.ebuild

68 lines
1.5 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.8.ebuild,v 1.1 2011/06/21 06:19:00 eras Exp $
EAPI=4
inherit eutils db-use multilib
MY_PV="${PV/_/}"
DESCRIPTION="Developer support for the Cyrus IMAP Server."
HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/"
SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-${MY_PV}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="afs kerberos snmp ssl tcpd"
RDEPEND=">=sys-libs/db-3.2
>=dev-libs/cyrus-sasl-2.1.13
afs? ( net-fs/openafs )
kerberos? ( virtual/krb5 )
snmp? ( net-analyzer/net-snmp )
ssl? ( >=dev-libs/openssl-0.9.6 )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/cyrus-imapd-${MY_PV}"
src_configure() {
local myconf
if use afs ; then
myconf=" --with-afs-libdir=/usr/$(get_libdir)"
myconf+=" --with-afs-incdir=/usr/include/afs"
fi
econf \
--enable-murder \
--enable-netscapehack \
--enable-idled \
--with-cyrus-group=mail \
--with-com_err=yes \
--without-perl \
--without-krb \
--without-krbdes \
--with-bdb \
--with-bdb-incdir=$(db_includedir) \
$(use_enable afs) \
$(use_enable afs krb5afspts) \
$(use_with ssl openssl) \
$(use_with snmp) \
$(use_with tcpd libwrap) \
$(use_enable kerberos gssapi) \
${myconf}
}
src_compile() {
emake -C "${S}/lib" all
}
src_install() {
dodir /usr/include/cyrus
emake -C "${S}/lib" DESTDIR="${D}" install
dodoc README*
}