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
commit77deb40b64d4d4bc530fc5073d42d8386f042afc (patch)
treeb50dfba628ab284c236576602c5b73fd6690dc33 /eclass/latex-package.eclass
parentAdded several USE flags requested on bug #83311. Thanks to Diego Petteno <dgp... (diff)
downloadhistorical-77deb40b64d4d4bc530fc5073d42d8386f042afc.tar.gz
historical-77deb40b64d4d4bc530fc5073d42d8386f042afc.tar.bz2
historical-77deb40b64d4d4bc530fc5073d42d8386f042afc.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