1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit elisp bzr autotools
8 DESCRIPTION="The VM mail reader for Emacs"
9 HOMEPAGE="http://www.nongnu.org/viewmail/"
16 BDEPEND="bbdb? ( app-emacs/bbdb )"
18 ssl? ( net-misc/stunnel )"
22 SITEFILE="50${PN}-gentoo.el"
25 eapply "${FILESDIR}"/vm-8.2.0_beta-texinfo-encoding.patch
27 elog "Excluding vm-pcrisis.el since the \"bbdb\" USE flag is not set."
28 eapply "${FILESDIR}/${PN}-8.0-no-pcrisis.patch"
36 --with-emacs="emacs" \
37 --with-lispdir="${SITELISP}/${PN}" \
38 --with-etcdir="${SITEETC}/${PN}" \
39 --with-docdir="/usr/share/doc/${PF}" \
40 $(use bbdb && echo "--with-other-dirs=${SITELISP}/bbdb")
48 emake -j1 DESTDIR="${D}" install
49 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
51 # delete duplicate documentation
52 find "${D}/${SITEETC}/${PN}" -type d -name pixmaps -prune \
53 -o -type f -exec rm '{}' '+' || die
56 # NEWS is accessed from lisp and must not be compressed
57 docompress -x /usr/share/doc/${PF}/NEWS