1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Extensible package for writing and formatting TeX files in Emacs"
9 HOMEPAGE="https://www.gnu.org/software/auctex/"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12 LICENSE="GPL-3+ FDL-1.3+"
14 KEYWORDS="amd64 arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
17 DEPEND="virtual/latex-base
20 app-text/ghostscript-gpl
24 TEXMF="/usr/share/texmf-site"
28 --with-auto-dir="${EPREFIX}/var/lib/auctex" \
29 --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
30 --with-packagelispdir="${EPREFIX}${SITELISP}/${PN}" \
31 --with-packagedatadir="${EPREFIX}${SITEETC}/${PN}" \
32 --with-texmf-dir="${EPREFIX}${TEXMF}" \
33 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
34 --disable-build-dir-test \
35 $(use_enable preview-latex preview)
39 export VARTEXFONTS="${T}"/fonts
44 emake -j1 DESTDIR="${D}" install
45 elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el"
46 if use preview-latex; then
47 elisp-site-file-install "${FILESDIR}/60${PN}-gentoo.el"
49 dodoc ChangeLog* CHANGES FAQ INSTALL PROBLEMS.preview README RELEASE TODO
53 use preview-latex && texmf-update
58 use preview-latex && texmf-update