1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools toolchain-funcs
7 DESCRIPTION="An easy to use text-based based mail and news client"
8 HOMEPAGE="http://www.washington.edu/alpine/ http://repo.or.cz/alpine.git/"
9 GIT_COMMIT="843b2f16abfd949e09b1c5465387b1b0f724994a"
10 MY_P="${PN}-${GIT_COMMIT::7}"
11 SRC_URI="http://repo.or.cz/alpine.git/snapshot/${GIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
12 S="${WORKDIR}/${MY_P}"
16 KEYWORDS="alpha amd64 ia64 ppc sparc x86"
17 IUSE="doc ipv6 kerberos ldap libressl nls onlyalpine passfile smime spell ssl threads"
20 >=sys-libs/ncurses-5.1:0=
22 !libressl? ( dev-libs/openssl:0= )
23 libressl? ( dev-libs/libressl:0= )
25 ldap? ( net-nds/openldap )
26 kerberos? ( app-crypt/mit-krb5 )
27 spell? ( app-text/aspell )
31 !onlyalpine? ( !mail-client/pine )
32 !<=net-mail/uw-imap-2004g
43 --with-system-pinerc="${EPREFIX}"/etc/pine.conf
44 --with-system-fixed-pinerc="${EPREFIX}"/etc/pine.conf.fixed
49 --with-ssl-include-dir="${EPREFIX}"/usr/include/openssl
50 --with-ssl-lib-dir="${EPREFIX}"/usr/$(get_libdir)
51 --with-ssl-certs-dir="${EPREFIX}"/etc/ssl/certs
57 $(use_with passfile passfile .pinepwd) \
58 $(use_with kerberos krb5) \
59 $(use_with threads pthread) \
60 $(use_with spell interactive-spellcheck /usr/bin/aspell) \
72 if use onlyalpine ; then
74 doman doc/man1/alpine.1
76 emake DESTDIR="${D}" install
83 dodoc doc/brochure.txt
85 dodoc doc/tech-notes/tech-notes.txt
86 newdoc "${S}/doc/mailcap.unx" mailcap.unx.sample
87 newdoc "${S}/doc/mime.types" mime.types.sample
88 docinto html/tech-notes
89 dohtml -r doc/tech-notes/
90 docompress -x /usr/share/doc/${PF}/mailcap.unx.sample /usr/share/doc/${PF}/mime.types.sample