Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/alpine/
Date: Sat, 10 Oct 2015 23:36:26
Message-Id: 1444520521.e19ca35200377742b67b52032f98412e4737d9bb.blueness@gentoo
1 commit: e19ca35200377742b67b52032f98412e4737d9bb
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 23:41:43 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 23:42:01 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e19ca352
7
8 mail-client/alpine: add libressl support
9
10 Package-Manager: portage-2.2.20.1
11
12 mail-client/alpine/alpine-2.00-r6.ebuild | 115 +++++++++++++++++++++++++++++++
13 1 file changed, 115 insertions(+)
14
15 diff --git a/mail-client/alpine/alpine-2.00-r6.ebuild b/mail-client/alpine/alpine-2.00-r6.ebuild
16 new file mode 100644
17 index 0000000..d4855a9
18 --- /dev/null
19 +++ b/mail-client/alpine/alpine-2.00-r6.ebuild
20 @@ -0,0 +1,115 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=4
26 +
27 +inherit eutils flag-o-matic autotools multilib toolchain-funcs
28 +
29 +CHAPPA_PL=115
30 +DESCRIPTION="alpine is an easy to use text-based based mail and news client"
31 +HOMEPAGE="http://www.washington.edu/alpine/ http://patches.freeiz.com/alpine/"
32 +SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
33 + chappa? ( http://patches.freeiz.com/alpine/patches/alpine-2.00/all.patch.gz
34 + -> ${P}-chappa-${CHAPPA_PL}-all.patch.gz )"
35 +
36 +LICENSE="Apache-2.0"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
39 +IUSE="doc ipv6 kerberos ldap libressl nls onlyalpine passfile smime spell ssl threads topal +chappa"
40 +
41 +DEPEND="virtual/pam
42 + >=net-libs/c-client-2007f-r4[topal=,chappa=]
43 + >=sys-libs/ncurses-5.1
44 + ssl? (
45 + !libressl? ( dev-libs/openssl:0 )
46 + libressl? ( dev-libs/libressl )
47 + )
48 + ldap? ( net-nds/openldap )
49 + kerberos? ( app-crypt/mit-krb5 )
50 + spell? ( app-text/aspell )
51 + topal? ( >=net-mail/topal-72 )"
52 +RDEPEND="${DEPEND}
53 + app-misc/mime-types
54 + !onlyalpine? ( !mail-client/pine )
55 + !<=net-mail/uw-imap-2004g"
56 +
57 +pkg_setup() {
58 + if use smime && use topal ; then
59 + ewarn "You can not have USE='smime topal'. Assuming topal is more important."
60 + fi
61 +}
62 +
63 +src_prepare() {
64 + use chappa && epatch "${DISTDIR}/${P}-chappa-${CHAPPA_PL}-all.patch.gz"
65 + use topal && epatch /usr/share/topal/patches/"${P}".patch-{1,2}
66 +
67 + # do not use the bundled c-client
68 + ebegin "Unbundling the c-client library"
69 + rm -rf "${S}"/imap
70 + local f
71 + while read f ; do
72 + sed -i -e \
73 + 's~^#include[[:blank:]]".*/c-client/\(.*\)"~#include <imap/\1>~g' "$f"
74 + done < <(find "${S}" -name "*.c" -o -name "*.h")
75 + eend $?
76 +
77 + epatch "${FILESDIR}"/2.00-lpam.patch
78 + epatch "${FILESDIR}"/2.00-lcrypto.patch
79 + epatch "${FILESDIR}"/2.00-c-client.patch
80 + epatch "${FILESDIR}"/2.00-qa.patch
81 + use chappa && epatch "${FILESDIR}/2.00-qa-chappa-${CHAPPA_PL}.patch"
82 +
83 + eautoreconf
84 +}
85 +
86 +src_configure() {
87 + local myconf="--without-tcl
88 + --with-system-pinerc=/etc/pine.conf
89 + --with-system-fixed-pinerc=/etc/pine.conf.fixed"
90 + #--disable-debug"
91 + # fixme
92 + # --with-system-mail-directory=DIR?
93 +
94 + if use ssl; then
95 + myconf+=" --with-ssl
96 + --with-ssl-include-dir=/usr
97 + --with-ssl-lib-dir=/usr/$(get_libdir)
98 + --with-ssl-certs-dir=/etc/ssl/certs"
99 + else
100 + myconf+="--without-ssl"
101 + fi
102 + econf \
103 + $(use_with ldap) \
104 + $(use_with passfile passfile .pinepwd) \
105 + $(use_with kerberos krb5) \
106 + $(use_with threads pthread) \
107 + $(use_with spell interactive-spellcheck /usr/bin/aspell) \
108 + $(use_enable nls) \
109 + $(use_with ipv6) \
110 + $(use topal || use_with smime) \
111 + ${myconf}
112 +}
113 +
114 +src_compile() {
115 + emake AR=$(tc-getAR)
116 +}
117 +
118 +src_install() {
119 + if use onlyalpine ; then
120 + dobin alpine/alpine
121 + doman doc/alpine.1
122 + else
123 + emake DESTDIR="${D}" install
124 + doman doc/rpdump.1 doc/rpload.1
125 + fi
126 +
127 + dodoc NOTICE README*
128 +
129 + if use doc ; then
130 + dodoc doc/brochure.txt doc/tech-notes.txt
131 +
132 + docinto html/tech-notes
133 + dohtml -r doc/tech-notes/
134 + fi
135 +}