2011-11-07 09:27:35 +01:00
|
|
|
$NetBSD: patch-aa,v 1.9 2011/11/07 08:27:35 minskim Exp $
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
Set paths to texmf trees for pkgsrc.
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
--- texmf.cnf.orig 2011-06-18 22:10:46.000000000 +0000
|
2009-01-03 23:12:42 +01:00
|
|
|
+++ texmf.cnf
|
2011-07-28 06:25:05 +02:00
|
|
|
@@ -49,7 +49,7 @@
|
|
|
|
% (http://tug.org/tds), or files may not be found.
|
|
|
|
%
|
|
|
|
% Redistributors will probably want $SELFAUTODIR/share, i.e., /usr/share.
|
|
|
|
-TEXMFROOT = $SELFAUTOPARENT
|
|
|
|
+TEXMFROOT = $SELFAUTODIR/share
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
% The tree containing runtime files related to the specific
|
|
|
|
% distribution and version.
|
|
|
|
@@ -59,13 +59,13 @@ TEXMFMAIN = $TEXMFROOT/texmf
|
|
|
|
TEXMFDIST = $TEXMFROOT/texmf-dist
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
% Local additions to the distribution trees.
|
|
|
|
-TEXMFLOCAL = $TEXMFROOT/../texmf-local
|
2009-01-03 23:12:42 +01:00
|
|
|
+TEXMFLOCAL = @TEXMFLOCAL@
|
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
% TEXMFSYSVAR, where *-sys store cached runtime data.
|
|
|
|
-TEXMFSYSVAR = $TEXMFROOT/texmf-var
|
2009-01-03 23:12:42 +01:00
|
|
|
+TEXMFSYSVAR = @VARBASE@/lib/texmf
|
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
% TEXMFSYSCONFIG, where *-sys store configuration data.
|
|
|
|
-TEXMFSYSCONFIG = $TEXMFROOT/texmf-config
|
2009-01-03 23:12:42 +01:00
|
|
|
+TEXMFSYSCONFIG = @PKG_SYSCONFDIR@
|
|
|
|
|
2011-07-28 06:25:05 +02:00
|
|
|
% Per-user texmf tree(s) -- organized per the TDS, as usual. To define
|
|
|
|
% more than one per-user tree, set this to a list of directories in
|
|
|
|
@@ -111,7 +111,7 @@ SYSTEXMF = $TEXMFSYSVAR;$TEXMFMAIN;$TEXM
|
2009-01-29 20:38:42 +01:00
|
|
|
% Where generated fonts may be written. This tree is used when the sources
|
|
|
|
% were found in a system tree and either that tree wasn't writable, or the
|
|
|
|
% varfonts feature was enabled in MT_FEATURES in mktex.cnf.
|
|
|
|
-VARTEXFONTS = $TEXMFVAR/fonts
|
|
|
|
+VARTEXFONTS = $TEXMFSYSVAR/fonts
|
|
|
|
|
2010-09-13 06:06:12 +02:00
|
|
|
% On some systems, there will be a system tree which contains all the font
|
|
|
|
% files that may be created as well as the formats. For example
|
2011-11-07 09:27:35 +01:00
|
|
|
@@ -303,6 +303,10 @@ BSTINPUTS = .;$TEXMF/bibtex/{bst,csf}//
|
|
|
|
MLBIBINPUTS = .;$TEXMF/bibtex/bib/{mlbib,}//
|
|
|
|
MLBSTINPUTS = .;$TEXMF/bibtex/{mlbst,bst}//
|
|
|
|
|
|
|
|
+% .ris and .bltxml bibliography formats.
|
|
|
|
+RISINPUTS = .;$TEXMF/bibtex/ris//
|
|
|
|
+BLTXMLINPUTS = .;$TEXMF/bibtex/bltxml//
|
|
|
|
+
|
|
|
|
% MFT style files.
|
|
|
|
MFTINPUTS = .;$TEXMF/mft//
|
|
|
|
|
|
|
|
@@ -368,11 +372,13 @@ MPSUPPORT = .;$TEXMF/metapost/support
|
|
|
|
MIMELIBDIR = $TEXMFROOT/etc
|
|
|
|
MAILCAPLIBDIR = $TEXMFROOT/etc
|
|
|
|
|
|
|
|
-% Default settings for fontconfig library, used by Windows versions of
|
|
|
|
-% xetex/xdvipdfmx. On Unixish systems, fontconfig ignores this.
|
|
|
|
-FONTCONFIG_FILE=fonts.conf
|
|
|
|
-FONTCONFIG_PATH=$TEXMFSYSVAR/fonts/conf
|
|
|
|
-FC_CACHEDIR=$TEXMFSYSVAR/fonts/cache
|
|
|
|
+% Default settings for the fontconfig library as used by the Windows
|
|
|
|
+% versions of xetex/xdvipdfmx. On Unixish systems, fontconfig ignores
|
|
|
|
+% this. ConTeXT MkIV (all platforms) also use these values.
|
|
|
|
+%
|
|
|
|
+FONTCONFIG_FILE = fonts.conf
|
|
|
|
+FONTCONFIG_PATH = $TEXMFSYSVAR/fonts/conf
|
|
|
|
+FC_CACHEDIR = $TEXMFSYSVAR/fonts/cache
|
|
|
|
|
|
|
|
% TeX documentation and source files, for use with texdoc and kpsewhich.
|
|
|
|
TEXDOCS = $TEXMF/doc//
|
|
|
|
@@ -407,10 +413,19 @@ TW_INIPATH = $TW_LIBPATH
|
|
|
|
% would allow command execution.
|
|
|
|
DVIPDFMXINPUTS = $TEXMF/dvipdfmx
|
|
|
|
|
|
|
|
-% Find scripts that are distributed/installed in the texmf tree.
|
|
|
|
-
|
|
|
|
% Lua needs to look in TEXINPUTS for lua scripts distributed with packages.
|
|
|
|
-LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXINPUTS
|
|
|
|
+%
|
|
|
|
+% But we can't simply use $TEXINPUTS, since then if TEXINPUTS is set in
|
|
|
|
+% the environment with a colon, say, TEXINPUTS=/some/dir:, the intended
|
|
|
|
+% default expansion of TEXINPUTS will not happen and .lua files under
|
|
|
|
+% the /tex/ will not be found.
|
|
|
|
+%
|
|
|
|
+% So, duplicate the TEXINPUTS.*lualatex values as LUAINPUTS.*lualatex.
|
|
|
|
+% The default LUAINPUTS sufficess for luatex and dviluatex.
|
|
|
|
+%
|
|
|
|
+LUAINPUTS.lualatex = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
|
|
|
|
+LUAINPUTS.dvilualatex = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
|
|
|
|
+LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{luatex,plain,generic,}//
|
|
|
|
|
|
|
|
% Lua needs to look for binary lua libraries distributed with packages.
|
|
|
|
CLUAINPUTS = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//
|
|
|
|
@@ -442,7 +457,7 @@ RUBYINPUTS = .;$TEXMF/scripts/{$progna
|
2009-01-03 23:12:42 +01:00
|
|
|
%
|
|
|
|
% For security reasons, it is better not to include . in this path.
|
|
|
|
%
|
|
|
|
-TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}
|
|
|
|
+TEXMFCNF = @PKG_SYSCONFDIR@
|
|
|
|
|
2010-09-13 06:06:12 +02:00
|
|
|
% kpathsea 3.5.3 and later sets these at runtime. To avoid empty
|
|
|
|
% expansions from binaries linked against an earlier version of the
|