blob: c0f686822dcb9dcc37928eadd533bd085c7e39f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/auctex/auctex-11.84-r3.ebuild,v 1.6 2008/01/23 11:37:33 armin76 Exp $
inherit elisp eutils latex-package
DESCRIPTION="An extensible package that supports writing and formatting TeX files"
HOMEPAGE="http://www.gnu.org/software/auctex/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-2 FDL-1.2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE="preview-latex"
DEPEND="virtual/tetex
preview-latex? ( !dev-tex/preview-latex
app-text/dvipng
virtual/ghostscript )"
# Don't install in the main tree, as this causes file collisions
# with app-text/tetex, see bug #155944
TEXMF="/usr/share/texmf-site"
src_unpack() {
unpack ${A}
cd "${S}"
# skip XEmacs detection. this is a workaround for emacs23
epatch "${FILESDIR}/${P}-configure.diff"
# allow compilation of Japanese TeX files, fixed in upstream's CVS
# not needed for next release (>=11.85)
epatch "${FILESDIR}/${P}-japanes.patch"
}
src_compile() {
econf --disable-build-dir-test \
--with-auto-dir="/var/lib/auctex" \
--with-lispdir="${SITELISP}/${PN}" \
--with-packagelispdir="${SITELISP}/${PN}" \
--with-packagedatadir="${SITEETC}/${PN}" \
--with-texmf-dir="${TEXMF}" \
$(use_enable preview-latex preview) || die "econf failed"
emake || die "emake failed"
cd doc; emake tex-ref.pdf || die "creation of tex-ref.pdf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" || die
if use preview-latex; then
elisp-site-file-install "${FILESDIR}/60${PN}-gentoo.el" || die
fi
keepdir /var/lib/auctex
dodoc ChangeLog CHANGES README RELEASE TODO FAQ INSTALL* doc/tex-ref.pdf
}
pkg_postinst() {
# rebuild TeX-inputfiles-database
use preview-latex && latex-package_pkg_postinst
elisp-site-regen
}
pkg_postrm(){
use preview-latex && latex-package_pkg_postrm
elisp-site-regen
}
|