Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libetpan/
Date: Sun, 28 Aug 2016 10:15:55
Message-Id: 1472378826.95a1695e64712a04803da953303d69cd1a9fe75d.pacho@gentoo
1 commit: 95a1695e64712a04803da953303d69cd1a9fe75d
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 28 10:07:06 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 28 10:07:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a1695e
7
8 net-libs/libetpan: Support libressl (#565266 by Marek Behun)
9
10 Package-Manager: portage-2.3.0
11
12 net-libs/libetpan/libetpan-1.7.2-r1.ebuild | 83 ++++++++++++++++++++++++++++++
13 1 file changed, 83 insertions(+)
14
15 diff --git a/net-libs/libetpan/libetpan-1.7.2-r1.ebuild b/net-libs/libetpan/libetpan-1.7.2-r1.ebuild
16 new file mode 100644
17 index 00000000..71b7245
18 --- /dev/null
19 +++ b/net-libs/libetpan/libetpan-1.7.2-r1.ebuild
20 @@ -0,0 +1,83 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +inherit autotools eutils
27 +
28 +DESCRIPTION="A portable, efficient middleware for different kinds of mail access"
29 +HOMEPAGE="http://libetpan.sourceforge.net/"
30 +SRC_URI="https://github.com/dinhviethoa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
31 +
32 +LICENSE="BSD"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
35 +IUSE="berkdb debug gnutls ipv6 liblockfile libressl sasl ssl static-libs"
36 +
37 +DEPEND="berkdb? ( sys-libs/db:= )
38 + ssl? (
39 + gnutls? ( net-libs/gnutls:= )
40 + !gnutls? ( ssl? (
41 + !libressl? ( dev-libs/openssl:0= )
42 + libressl? ( dev-libs/libressl:0= )
43 + ) )
44 + )
45 + sasl? ( dev-libs/cyrus-sasl:2 )
46 + liblockfile? ( net-libs/liblockfile )"
47 +RDEPEND="${DEPEND}"
48 +
49 +PATCHES=(
50 + "${FILESDIR}"/${PN}-1.0-nonnull.patch
51 +)
52 +
53 +pkg_setup() {
54 + if use gnutls && ! use ssl ; then
55 + ewarn "You have \"gnutls\" USE flag enabled but \"ssl\" USE flag disabled!"
56 + ewarn "No ssl support will be available in ${PN}."
57 + fi
58 +}
59 +
60 +src_prepare() {
61 + default
62 +
63 + sed -i \
64 + -e "s/-O2 -g//" \
65 + configure.ac
66 +
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + local sslconf
72 +
73 + if use ssl; then
74 + if use gnutls; then
75 + sslconf="--with-gnutls --without-openssl"
76 + else
77 + sslconf="--without-gnutls --with-openssl"
78 + fi
79 + else
80 + sslconf="--without-gnutls --without-openssl"
81 + fi
82 +
83 + # in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so
84 + # libtool recognises it as valid shell (bug #300211)
85 + use prefix && export CONFIG_SHELL=${BASH}
86 + # The configure script contains an error, in that it doesn't check the
87 + # argument of --enable-{debug,optim}, hence --disable-debug results in
88 + # --enable-debug=no, which isn't checked and debugging flags are blindly
89 + # injected. So, avoid passing --disable-debug when we don't need it.
90 + econf \
91 + $(usex debug '--enable-debug' '') \
92 + $(use_enable berkdb db) \
93 + $(use_with sasl) \
94 + $(use_enable ipv6) \
95 + $(use_enable liblockfile lockfile) \
96 + $(use_enable static-libs static) \
97 + ${sslconf}
98 +}
99 +
100 +src_install() {
101 + default
102 + use static-libs || prune_libtool_files --all
103 +}