pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/teTeX Teach module.mk how to handle font map files.
details: https://anonhg.NetBSD.org/pkgsrc/rev/2b3aad0d9279
branches: trunk
changeset: 503162:2b3aad0d9279
user: minskim <minskim%pkgsrc.org@localhost>
date: Tue Nov 15 07:13:19 2005 +0000
description:
Teach module.mk how to handle font map files.
diffstat:
print/teTeX/files/texmf.tmpl | 13 +++++++++++--
print/teTeX/module.mk | 8 +++++++-
2 files changed, 18 insertions(+), 3 deletions(-)
diffs (59 lines):
diff -r 7b72b2e56190 -r 2b3aad0d9279 print/teTeX/files/texmf.tmpl
--- a/print/teTeX/files/texmf.tmpl Tue Nov 15 07:11:53 2005 +0000
+++ b/print/teTeX/files/texmf.tmpl Tue Nov 15 07:13:19 2005 +0000
@@ -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 -r 7b72b2e56190 -r 2b3aad0d9279 print/teTeX/module.mk
--- a/print/teTeX/module.mk Tue Nov 15 07:11:53 2005 +0000
+++ b/print/teTeX/module.mk Tue Nov 15 07:13:19 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index