1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="The Insidious Big Brother Database"
9 HOMEPAGE="http://bbdb.sourceforge.net/"
10 SRC_URI="http://bbdb.sourceforge.net/${P}.tar.gz
11 http://www.mit.edu/afs/athena/contrib/emacs-contrib/Fin/point-at.el
12 http://www.mit.edu/afs/athena/contrib/emacs-contrib/Fin/dates.el"
14 LICENSE="GPL-2+ Texinfo-manual"
16 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
19 RDEPEND="tex? ( virtual/tex-base )"
21 SITEFILE="50${PN}-gentoo.el"
22 TEXMF="/usr/share/texmf-site"
25 sed -i -e '0,/^--- bbdb-mail-folders.el ---$/d;/^--- end ---$/,$d' \
26 bits/bbdb-mail-folders.el || die "sed failed"
27 sed -i -e '/^;/,$!d' bits/bbdb-sort-mailrc.el || die "sed failed"
28 cp "${DISTDIR}"/{dates,point-at}.el bits || die "cp failed"
37 BYTECOMPFLAGS="-L bits -L lisp" elisp-compile bits/*.el || die
41 elisp-install ${PN} lisp/*.el{,c} || die
42 elisp-install ${PN}/bits bits/*.el{,c} || die
43 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
44 doinfo texinfo/*.info*
45 dodoc ChangeLog INSTALL README bits/*.txt
46 newdoc bits/README README.bits
48 insinto "${TEXMF}"/tex/plain/bbdb
55 use tex && texconfig rehash
57 elog "If you use encryption or signing, you may specify the encryption"
58 elog "method by customising variable \"bbdb/pgp-method\". For details,"
59 elog "see the documentation of this variable. Depending on the Emacs"
60 elog "version, installation of additional packages like app-emacs/gnus"
61 elog "or app-emacs/mailcrypt may be required."
66 use tex && texconfig rehash