summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2005-04-09 04:42:10 +0000
committerMamoru Komachi <usata@gentoo.org>2005-04-09 04:42:10 +0000
commit28abef30a3ffd2ff2308a80a0bb1f89d98fd48d3 (patch)
treeb8ebef83d92b89a9c9cd7fb935ba544474a209ba /eclass/latex-package.eclass
parentAdded several USE flags requested on bug #83311. Thanks to Diego Petteno <dgp... (diff)
downloadgentoo-2-28abef30a3ffd2ff2308a80a0bb1f89d98fd48d3.tar.gz
gentoo-2-28abef30a3ffd2ff2308a80a0bb1f89d98fd48d3.tar.bz2
gentoo-2-28abef30a3ffd2ff2308a80a0bb1f89d98fd48d3.zip
added has_tetex_3() and use texmf-update in latex-package_rehash when
tetex-3 is installed
Diffstat (limited to 'eclass/latex-package.eclass')
-rw-r--r--eclass/latex-package.eclass18
1 files changed, 15 insertions, 3 deletions
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index 32ca4d78ef1f..dc416bc602e8 100644
--- a/eclass/latex-package.eclass
+++ b/eclass/latex-package.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.22 2005/02/18 14:12:48 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.23 2005/04/09 04:42:10 usata Exp $
#
# Author Matthew Turk <satai@gentoo.org>
#
@@ -57,6 +57,14 @@ S=${WORKDIR}/${P}
TEXMF="/usr/share/texmf"
SUPPLIER="misc" # This refers to the font supplier; it should be overridden
+latex-package_has_tetex_3() {
+ if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' ; then
+ true
+ else
+ false
+ fi
+}
+
latex-package_src_doinstall() {
debug-print function $FUNCNAME $*
# This actually follows the directions for a "single-user" system
@@ -163,7 +171,11 @@ latex-package_pkg_postrm() {
latex-package_rehash() {
debug-print function $FUNCNAME $*
- texconfig rehash
+ if latex-package_has_tetex_3 ; then
+ texmf-update
+ else
+ texconfig rehash
+ fi
}
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm has_tetex_3