summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-11-24 21:11:52 +0000
committerUlrich Müller <ulm@gentoo.org>2007-11-24 21:11:52 +0000
commitf444a50c99b39b793eb434a6f248d8dd01908e7a (patch)
treec1ba7350bc1f77c57113453fbf38f5b6799f06e7 /app-emacs/auctex
parentStable on ppc wrt bug 200198 (diff)
downloadgentoo-2-f444a50c99b39b793eb434a6f248d8dd01908e7a.tar.gz
gentoo-2-f444a50c99b39b793eb434a6f248d8dd01908e7a.tar.bz2
gentoo-2-f444a50c99b39b793eb434a6f248d8dd01908e7a.zip
Install TeX files in texmf-site; remove kpathsea workaround.
(Portage version: 2.1.3.19)
Diffstat (limited to 'app-emacs/auctex')
-rw-r--r--app-emacs/auctex/ChangeLog5
-rw-r--r--app-emacs/auctex/auctex-11.84-r3.ebuild46
2 files changed, 11 insertions, 40 deletions
diff --git a/app-emacs/auctex/ChangeLog b/app-emacs/auctex/ChangeLog
index 4806c0029c80..650273265f4a 100644
--- a/app-emacs/auctex/ChangeLog
+++ b/app-emacs/auctex/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-emacs/auctex
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/auctex/ChangeLog,v 1.71 2007/11/23 21:46:46 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/auctex/ChangeLog,v 1.72 2007/11/24 21:11:52 ulm Exp $
+
+ 24 Nov 2007; Ulrich Mueller <ulm@gentoo.org> auctex-11.84-r3.ebuild:
+ Install TeX files in texmf-site; remove kpathsea workaround.
23 Nov 2007; Markus Rothe <corsair@gentoo.org> auctex-11.84-r2.ebuild:
Stable on ppc64; bug #199765
diff --git a/app-emacs/auctex/auctex-11.84-r3.ebuild b/app-emacs/auctex/auctex-11.84-r3.ebuild
index 9bb3b5027807..e7f0317ebe8a 100644
--- a/app-emacs/auctex/auctex-11.84-r3.ebuild
+++ b/app-emacs/auctex/auctex-11.84-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 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.1 2007/11/23 16:16:06 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/auctex/auctex-11.84-r3.ebuild,v 1.2 2007/11/24 21:11:52 ulm Exp $
inherit elisp eutils latex-package
@@ -18,6 +18,10 @@ DEPEND="virtual/tetex
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}"
@@ -30,49 +34,12 @@ src_unpack() {
}
src_compile() {
- # Don't install in the main tree, as this causes file collisions
- # with app-text/tetex, see bug #155944
- if use preview-latex; then
- local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)"
- local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)"
-
- if [ -z "${TEXMFPATH}" ]; then
- eerror "You haven't defined the TEXMFSITE variable in your TeX config."
- eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}"
- die "Define TEXMFSITE in TeX configuration!"
- else
- # go through the colon separated list of directories (maybe only one) provided in the variable
- # TEXMFPATH (generated from TEXMFSITE from TeX's config) and choose only the first entry.
- # All entries are separated by colons, even when defined with semi-colons, kpsewhich changes
- # the output to a generic format, so IFS has to be redefined.
- local IFS="${IFS}:"
-
- for strippedpath in ${TEXMFPATH}
- do
- if [ -d ${strippedpath} ]; then
- local PREVIEW_TEXMFDIR="${strippedpath}"
- break
- fi
- done
-
- # verify if an existing path was chosen to prevent from installing into the wrong directory
- if [ -z ${PREVIEW_TEXMFDIR} ]; then
- eerror "TEXMFSITE does not contain any existing directory."
- eerror "Please define an existing directory in your TeX config file"
- eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories"
- die "TEXMFSITE variable did not contain an existing directory"
- fi
-
- dodir "${PREVIEW_TEXMFDIR}"
- fi
- fi
-
econf --disable-build-dir-test \
--with-auto-dir="/var/lib/auctex" \
--with-lispdir="${SITELISP}/${PN}" \
--with-packagelispdir="${SITELISP}/${PN}" \
--with-packagedatadir="/usr/share/emacs/etc/${PN}" \
- --with-texmf-dir="${PREVIEW_TEXMFDIR}" \
+ --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"
@@ -84,6 +51,7 @@ src_install() {
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
}