1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools toolchain-funcs
8 DESCRIPTION="An easy to use text-based based mail and news client"
9 HOMEPAGE="http://alpine.x10host.com/alpine/ https://repo.or.cz/alpine.git/"
10 CHAPPA_PATCH_NAME="${P}-chappa.patch"
11 SRC_URI="http://alpine.x10host.com/alpine/release/src/${P}.tar.xz
12 chappa? ( http://alpine.x10host.com/alpine/patches/${P}/all.patch.gz -> ${CHAPPA_PATCH_NAME}.gz ) "
16 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
17 IUSE="+chappa doc ipv6 kerberos ldap libressl nls onlyalpine passfile smime spell ssl threads"
19 DEPEND=">=sys-libs/ncurses-5.1:0=
20 kerberos? ( app-crypt/mit-krb5 )
21 ldap? ( net-nds/openldap )
22 spell? ( app-text/aspell )
24 !libressl? ( dev-libs/openssl:0= )
25 libressl? ( dev-libs/libressl:0= )
33 "${FILESDIR}/${P}-cc.patch"
34 "${FILESDIR}/${P}-fno-common.patch"
39 use chappa && eapply "${WORKDIR}/${CHAPPA_PATCH_NAME}"
41 tc-export CC RANLIB AR
42 export CC_FOR_BUILD=$(tc-getBUILD_CC)
48 --with-system-pinerc="${EPREFIX}"/etc/pine.conf
49 --with-system-fixed-pinerc="${EPREFIX}"/etc/pine.conf.fixed
52 $(use_with passfile passfile .pinepwd)
53 $(use_with kerberos krb5)
54 $(use_with threads pthread)
55 $(use_with spell interactive-spellcheck /usr/bin/aspell)
63 --with-ssl-include-dir="${EPREFIX}"/usr/include/openssl
64 --with-ssl-lib-dir="${EPREFIX}"/usr/$(get_libdir)
65 --with-ssl-certs-dir="${EPREFIX}"/etc/ssl/certs
72 emake -j1 AR=$(tc-getAR)
76 if use onlyalpine ; then
78 doman doc/man1/alpine.1
80 emake -j1 DESTDIR="${D}" install
87 dodoc doc/brochure.txt
89 dodoc -r doc/tech-notes/
90 newdoc "${S}/doc/mailcap.unx" mailcap.unx.sample
91 newdoc "${S}/doc/mime.types" mime.types.sample
92 docompress -x /usr/share/doc/${PF}/mailcap.unx.sample /usr/share/doc/${PF}/mime.types.sample