diff options
author | Julian Ospald <hasufell@gentoo.org> | 2015-10-02 17:51:55 +0200 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2015-10-02 18:16:09 +0200 |
commit | ed65bf310bb5d7beaf2bc2f0a2063d631fde5357 (patch) | |
tree | 34ae4aec13affcca8358c9db10cf4631afa1cbc1 /dev-libs/cyrus-imap-dev | |
parent | dev-lang/php: Cleanup of old ebuilds (diff) | |
download | gentoo-ed65bf310bb5d7beaf2bc2f0a2063d631fde5357.tar.gz gentoo-ed65bf310bb5d7beaf2bc2f0a2063d631fde5357.tar.bz2 gentoo-ed65bf310bb5d7beaf2bc2f0a2063d631fde5357.zip |
dev-libs/cyrus-imap-dev: add libressl support
Diffstat (limited to 'dev-libs/cyrus-imap-dev')
-rw-r--r-- | dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.17-r1.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.17-r1.ebuild b/dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.17-r1.ebuild new file mode 100644 index 000000000000..28e05610559b --- /dev/null +++ b/dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.17-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools db-use eutils multilib toolchain-funcs + +MY_PV="${PV/_/}" + +DESCRIPTION="Developer support for the Cyrus IMAP Server" +HOMEPAGE="http://www.cyrusimap.org/" +SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/cyrus-imapd-${MY_PV}.tar.gz" + +LICENSE="BSD-with-attribution" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="afs berkdb kerberos libressl snmp ssl tcpd" + +RDEPEND=">=dev-libs/cyrus-sasl-2.1.13 + afs? ( net-fs/openafs ) + berkdb? ( >=sys-libs/db-3.2:= ) + kerberos? ( virtual/krb5 ) + snmp? ( net-analyzer/net-snmp ) + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + !net-mail/cyrus-imapd" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/cyrus-imapd-${MY_PV}" + +src_prepare() { + sed -i -e "s/ar cr/$(tc-getAR) cr/" \ + perl/sieve/lib/Makefile.in \ + imap/Makefile.in \ + lib/Makefile.in \ + installsieve/Makefile.in \ + com_err/et/Makefile.in \ + sieve/Makefile.in \ + syslog/Makefile.in + + eautoreconf +} + +src_configure() { + local myconf + if use afs ; then + myconf=" --with-afs-libdir=/usr/$(get_libdir)" + myconf+=" --with-afs-incdir=/usr/include/afs" + fi + if use berkdb ; then + myconf+="--with-bdb-incdir=$(db_includedir)" + fi + + econf \ + --enable-murder \ + --enable-netscapehack \ + --enable-idled \ + --with-cyrus-group=mail \ + --with-com_err=yes \ + --without-perl \ + --without-krb \ + --without-krbdes \ + $(use_enable afs) \ + $(use_enable afs krb5afspts) \ + $(use_with berkdb bdb) \ + $(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* +} |