Gentoo Archives: gentoo-commits

From: Julian Ospald <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-imap-dev/
Date: Fri, 02 Oct 2015 16:16:38
Message-Id: 1443802569.ed65bf310bb5d7beaf2bc2f0a2063d631fde5357.hasufell@gentoo
1 commit: ed65bf310bb5d7beaf2bc2f0a2063d631fde5357
2 Author: Julian Ospald <hasufell <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 2 15:51:55 2015 +0000
4 Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 2 16:16:09 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed65bf31
7
8 dev-libs/cyrus-imap-dev: add libressl support
9
10 .../cyrus-imap-dev/cyrus-imap-dev-2.4.17-r1.ebuild | 86 ++++++++++++++++++++++
11 1 file changed, 86 insertions(+)
12
13 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
14 new file mode 100644
15 index 0000000..28e0561
16 --- /dev/null
17 +++ b/dev-libs/cyrus-imap-dev/cyrus-imap-dev-2.4.17-r1.ebuild
18 @@ -0,0 +1,86 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI=5
24 +inherit autotools db-use eutils multilib toolchain-funcs
25 +
26 +MY_PV="${PV/_/}"
27 +
28 +DESCRIPTION="Developer support for the Cyrus IMAP Server"
29 +HOMEPAGE="http://www.cyrusimap.org/"
30 +SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/cyrus-imapd-${MY_PV}.tar.gz"
31 +
32 +LICENSE="BSD-with-attribution"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
35 +IUSE="afs berkdb kerberos libressl snmp ssl tcpd"
36 +
37 +RDEPEND=">=dev-libs/cyrus-sasl-2.1.13
38 + afs? ( net-fs/openafs )
39 + berkdb? ( >=sys-libs/db-3.2:= )
40 + kerberos? ( virtual/krb5 )
41 + snmp? ( net-analyzer/net-snmp )
42 + ssl? (
43 + !libressl? ( >=dev-libs/openssl-0.9.6:0 )
44 + libressl? ( dev-libs/libressl )
45 + )
46 + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
47 + !net-mail/cyrus-imapd"
48 +
49 +DEPEND="${RDEPEND}"
50 +
51 +S="${WORKDIR}/cyrus-imapd-${MY_PV}"
52 +
53 +src_prepare() {
54 + sed -i -e "s/ar cr/$(tc-getAR) cr/" \
55 + perl/sieve/lib/Makefile.in \
56 + imap/Makefile.in \
57 + lib/Makefile.in \
58 + installsieve/Makefile.in \
59 + com_err/et/Makefile.in \
60 + sieve/Makefile.in \
61 + syslog/Makefile.in
62 +
63 + eautoreconf
64 +}
65 +
66 +src_configure() {
67 + local myconf
68 + if use afs ; then
69 + myconf=" --with-afs-libdir=/usr/$(get_libdir)"
70 + myconf+=" --with-afs-incdir=/usr/include/afs"
71 + fi
72 + if use berkdb ; then
73 + myconf+="--with-bdb-incdir=$(db_includedir)"
74 + fi
75 +
76 + econf \
77 + --enable-murder \
78 + --enable-netscapehack \
79 + --enable-idled \
80 + --with-cyrus-group=mail \
81 + --with-com_err=yes \
82 + --without-perl \
83 + --without-krb \
84 + --without-krbdes \
85 + $(use_enable afs) \
86 + $(use_enable afs krb5afspts) \
87 + $(use_with berkdb bdb) \
88 + $(use_with ssl openssl) \
89 + $(use_with snmp) \
90 + $(use_with tcpd libwrap) \
91 + $(use_enable kerberos gssapi) \
92 + ${myconf}
93 +}
94 +
95 +src_compile() {
96 + emake -C "${S}/lib" all
97 +}
98 +
99 +src_install() {
100 + dodir /usr/include/cyrus
101 +
102 + emake -C "${S}/lib" DESTDIR="${D}" install
103 + dodoc README*
104 +}