summaryrefslogtreecommitdiff
path: root/print/teTeX
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-11-15 07:13:19 +0000
committerminskim <minskim@pkgsrc.org>2005-11-15 07:13:19 +0000
commit6e1a0ee18d5339c49855ae2f1ea382fe2fac74b3 (patch)
tree5e36847feaf76dd0072dcf1f40edcd3d05667c3d /print/teTeX
parentc145d4db743e5edec561ce7a41718c85af66a81b (diff)
downloadpkgsrc-6e1a0ee18d5339c49855ae2f1ea382fe2fac74b3.tar.gz
Teach module.mk how to handle font map files.
Diffstat (limited to 'print/teTeX')
-rw-r--r--print/teTeX/files/texmf.tmpl13
-rw-r--r--print/teTeX/module.mk8
2 files changed, 18 insertions, 3 deletions
diff --git a/print/teTeX/files/texmf.tmpl b/print/teTeX/files/texmf.tmpl
index 05c642bdfa9..f5f7991713d 100644
--- a/print/teTeX/files/texmf.tmpl
+++ b/print/teTeX/files/texmf.tmpl
@@ -1,11 +1,20 @@
-# $NetBSD: texmf.tmpl,v 1.1 2005/11/13 03:25:57 minskim Exp $
+# $NetBSD: texmf.tmpl,v 1.2 2005/11/15 07:13:19 minskim Exp $
#
# Rebuild the ls-R database.
#
case ${STAGE} in
-POST-INSTALL | POST-DEINSTALL)
+POST-INSTALL)
@MKTEXLSR@ @TEXMFDIRS@
+ for map in @TEXFONTMAPS@; do
+ @UPDMAP_SYS@ --enable Map=${map}
+ done
+ ;;
+POST-DEINSTALL)
+ @MKTEXLSR@ @TEXMFDIRS@
+ for map in @TEXFONTMAPS@; do
+ @UPDMAP_SYS@ --disable ${map}
+ done
;;
*)
;;
diff --git a/print/teTeX/module.mk b/print/teTeX/module.mk
index e90e542413b..33d4742cd96 100644
--- a/print/teTeX/module.mk
+++ b/print/teTeX/module.mk
@@ -1,22 +1,28 @@
-# $NetBSD: module.mk,v 1.1 2005/11/13 03:25:57 minskim Exp $
+# $NetBSD: module.mk,v 1.2 2005/11/15 07:13:19 minskim Exp $
#
# This Makefile fragment is intended to be included by packages that
# install TeX packages. It takes care of rebuilding the ls-R database
# at (de)installation time.
#
# The following variable can be defined:
+#
# TEXMFDIRS - A list of TEXMF directories that need to update ls-R.
# Default: ${PKG_LOCALTEXMFPREFIX}
#
+# TEXFONTMAPS - A list of font map files
+#
.if !defined(TEX_PACKAGE_MK)
TEX_PACKAGE_MK= # defined
TEXMFDIRS?= ${PKG_LOCALTEXMFPREFIX}
+TEXFONTMAPS?= # empty
USE_PKGINSTALL= yes
FILES_SUBST+= MKTEXLSR="${LOCALBASE}/bin/mktexlsr"
FILES_SUBST+= TEXMFDIRS="${TEXMFDIRS}"
+FILES_SUBST+= UPDMAP_SYS="${LOCALBASE}/bin/updmap-sys"
+FILES_SUBST+= TEXFONTMAPS="${TEXFONTMAPS}"
INSTALL_EXTRA_TMPL+= ../../print/teTeX/files/texmf.tmpl
DEINSTALL_EXTRA_TMPL+= ../../print/teTeX/files/texmf.tmpl