[arch-commits] Commit in (5 files)

François Charette francois at archlinux.org
Mon Sep 8 10:36:48 UTC 2008


    Date: Monday, September 8, 2008 @ 06:36:48
  Author: francois
Revision: 12049

Added:
  texlive-bin/
  texlive-bin/repos/
  texlive-bin/trunk/
  texlive-bin/trunk/PKGBUILD
  texlive-bin/trunk/texmf.cnf

-----------+
 PKGBUILD  |  168 +++++++++++++++
 texmf.cnf |  633 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 801 insertions(+)

Added: texlive-bin/trunk/PKGBUILD
===================================================================
--- texlive-bin/trunk/PKGBUILD	                        (rev 0)
+++ texlive-bin/trunk/PKGBUILD	2008-09-08 10:36:48 UTC (rev 12049)
@@ -0,0 +1,168 @@
+# Maintainer: francois at archlinux dot org
+
+pkgname=texlive-bin
+pkgver=2008
+pkgrel=1
+pkgdesc="TeX Live binaries"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('xorg-server' 't1lib' 'gd' 'perl')
+optdepends=('psutils' 't1utils')
+makedepends=('flex' 'bison' 'clisp' 'ffcall' 'gcc' 'lzma-utils')
+# add t1utils to provides and conflicts?
+conflicts=('texlive-omega')
+options=('!makeflags' '!libtool')
+url='http://tug.org/texlive/'
+source=('texmf.cnf' 'ftp://tug.org/texlive/historic/2008/texlive-20080816-source.tar.lzma' \
+	'http://dev.archlinux.org/~francois/src/texlive-bin-2008-texmf.tar.lzma')
+# TODO: create symlinks to /etc/texlive/ for those files??
+backup=(usr/share/texmf/web2c/texmf.cnf \
+	usr/share/texmf-config/web2c/mktex.cnf \
+	usr/share/texmf-config/web2c/updmap.cfg \
+	usr/share/texmf-config/web2c/fmtutil.cfg \
+	usr/share/texmf-config/tex/generic/config/language.dat \
+	usr/share/texmf-config/tex/generic/config/pdftexconfig.tex \
+	usr/share/texmf-config/ttf2pk/ttf2pk.cfg \
+	usr/share/texmf-config/dvips/config/config.ps \
+	usr/share/texmf-config/dvipdfm/dvipdfmx.cfg \
+	usr/share/texmf-config/dvipdfm/config/config \
+	usr/share/texmf-config/xdvi/XDvi)
+md5sums=('4293b402c535002a65a3ecf62253d567'
+         '554287c3e458da776edd684506048d45'
+         'bac8aee05595fb80fcae8e864ba063f6')
+build() {
+   cd $startdir/src
+   lzma --force -dc texlive-bin-2008-texmf.tar.lzma | tar xf - || return 1
+   install -m755 -d $startdir/pkg/usr/share || return 1
+   find texmf -type d -exec install -d -m755 $startdir/pkg/usr/share/'{}' \; || return 1
+   find texmf -type f -exec install -m644 '{}' $startdir/pkg/usr/share/'{}' \; || return 1
+   lzma --force -dc texlive-20080816-source.tar.lzma | tar xf - || return 1
+   cd texlive-20080816-source || return 1
+   # This trick is for avoiding exiting when latex is not available, 
+   # since we do not build the xindy documentation anyway:
+   sed -i~ 's|latex="no"|latex="yes"|' utils/xindy/configure || return 1
+   test ! -d Work && mkdir Work
+   cd Work
+   echo "--> Here we go with configure..."
+   ../configure --prefix=/usr \
+	--datarootdir=$startdir/pkg/usr/share \
+   	--datadir=$startdir/pkg/usr/share \
+	--disable-multiplatform --without-dialog \
+        --without-psutils --without-texinfo --without-t1utils \
+	--with-system-zlib --with-system-pnglib \
+	--with-system-ncurses --with-system-t1lib \
+	--with-system-gd --with-fontconfig=/usr/lib \
+	--with-system-freetype2 --with-freetype2-libdir=/usr/lib \
+	--with-freetype2-include=/usr/include/freetype2 \
+	--with-xdvi-x-toolkit=xaw --with-cxx-runtime-hack \
+        --without-omega --without-aleph --without-graphite || return 1
+   ### FIXME these fixes should be temporary: send patch upstream 
+   find utils/xindy -name Makefile -exec sed -i -e "s|^prefix =.\+$|prefix = $startdir/pkg/usr|" '{}' \; || return 1
+   # we skip that, coz it requires an almost full texlive installation for compilation of the documentation:
+   sed -i -e "s|^MAKE_RULES = make-rules|MAKE_RULES = ''|" -e "s|^DOCS = doc|DOCS = ''|" utils/xindy/Makefile || return 1
+   #############################################################
+   echo "-------------------------------------------------------"
+   echo "--> ... and now we build the whole beast"
+   make || return 1
+   #############################################################
+   echo "-------------------------------------------------------"
+   echo "--> ... proceeding with make install"
+   install -d -m755 $startdir/pkg/usr/share/man/man5
+   make prefix=$startdir/pkg/usr texmf=$startdir/pkg/usr/share/texmf install || return 1
+   echo "-------------------------------------------------------"
+   echo "--> ...fixing wrong symlinks to scripts under /usr/bin/"
+   for f in $startdir/pkg/usr/bin/* ; do
+	   if [ -L $f ]; then
+		   target=`ls -l "$f" | sed 's/^.\+ -> //'`
+		   if [[ "$target" == ..* ]]; then
+			   newtarget=`echo $target | sed -e 's|../|/usr/share/|'`
+			   rm -f $f
+			   ln -s $newtarget $f
+			   test -f $startdir/pkg/$newtarget && chmod a+x $startdir/pkg/$newtarget
+		   fi
+	   fi
+   done
+   
+ #############################################################
+ ## CLEAN UP... 
+   echo "Cleaning up"
+   for d in $startdir/pkg/usr/texmf/scripts/*; do
+	   dname=`basename $d`
+	   test ! -d $startdir/pkg/usr/share/texmf/scripts/$dname && mv $d $startdir/pkg/usr/share/texmf/scripts/
+   done
+   rm -rf $startdir/pkg/usr/{texmf,texmf-dist}
+   # most man files went to two different places:
+   for i in 1 5; do
+	   # remove pdf versions of manpages:
+	   rm -f $startdir/pkg/usr/share/texmf/man/man$i/*.pdf
+	   for f in $startdir/pkg/usr/share/texmf/doc/man/man$i/*; do
+		   bf=`basename $f`
+		   if [[ ! -f $startdir/pkg/usr/share/man/man$i/$bf ]]; then
+			   mv -f $f $startdir/pkg/usr/share/man/man$i/
+		   fi
+	   done
+   done
+   # remove extra documentation:
+   rm -rf $startdir/pkg/usr/share/texmf/doc/
+   # those files are also in base, but "make install" duplicated them here:
+   rm -rf $startdir/pkg/usr/share/texmf/bibtex/
+   #TODO leave info files ?
+   rm -rf $startdir/pkg/usr/share/{info,doc}
+   # remove files that belong to texinfo
+   for f in info infokey install-info makeinfo texi2dvi pdftexi2dvi texi2pdf texindex; do
+	   rm -f $startdir/pkg/usr/share/man/man1/$f.1
+   done
+   for f in texinfo info ; do
+	   rm -f $startdir/pkg/usr/share/man/man5/$f.5
+   done
+   # remove files that belong to t1utils
+   for f in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
+	   rm -f $startdir/pkg/usr/share/man/man1/$f.1
+   done
+   # remove files that belong to psutils
+   for f in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
+	   rm -f $startdir/pkg/usr/share/man/man1/$f.1
+   done
+   # remove man files that belong to omega/aleph
+   for f in omega lambda odvicopy odvips odvitype ofm2opl opl2ofm otp2ocp outocp ovf2ovp ovp2ovf oxdvi ; do
+	   rm -f $startdir/pkg/usr/share/man/man1/$f.1
+   done
+   # replace upstream texmf.cnf with ours
+   rm -f $startdir/pkg/usr/share/texmf/web2c/texmf.cnf
+   install -m644 $startdir/src/texmf.cnf $startdir/pkg/usr/share/texmf/web2c/texmf.cnf
+   ## remove omega and aleph from fmtutil.cnf
+   sed -i -e '/omega/d' -e '/aleph/d' $startdir/pkg/usr/share/texmf/web2c/fmtutil.cnf || return 1
+   ###################################################################
+   # copy config files to texmf-config tree
+   install -d -m755 $startdir/pkg/usr/share/texmf-config/web2c
+   install -d -m755 $startdir/pkg/usr/share/texmf-config/dvips/config
+   install -d -m755 $startdir/pkg/usr/share/texmf-config/dvipdfm/config
+   install -d -m755 $startdir/pkg/usr/share/texmf-config/dvipdfmx
+   install -d -m755 $startdir/pkg/usr/share/texmf-config/tex/generic/config
+   install -d -m755 $startdir/pkg/usr/share/texmf-config/xdvi
+   cp -a $startdir/pkg/usr/share/texmf/web2c/mktex.cnf \
+   	$startdir/pkg/usr/share/texmf-config/web2c/
+   cp -a $startdir/pkg/usr/share/texmf/web2c/updmap.cfg \
+   	$startdir/pkg/usr/share/texmf-config/web2c/
+   cp -a $startdir/pkg/usr/share/texmf/web2c/fmtutil.cnf \
+   	$startdir/pkg/usr/share/texmf-config/web2c/
+   cp -a $startdir/pkg/usr/share/texmf/dvips/config/config.ps \
+   	$startdir/pkg/usr/share/texmf-config/dvips/config/
+   cp -a $startdir/pkg/usr/share/texmf/dvipdfm/config/config \
+   	$startdir/pkg/usr/share/texmf-config/dvipdfm/config/
+   cp -a $startdir/pkg/usr/share/texmf/dvipdfmx/dvipdfmx.cfg \
+   	$startdir/pkg/usr/share/texmf-config/dvipdfmx/
+   cp -a $startdir/pkg/usr/share/texmf/tex/generic/config/pdftexconfig.tex \
+   	$startdir/pkg/usr/share/texmf-config/tex/generic/config/
+   cp -a $startdir/pkg/usr/share/texmf/tex/generic/config/language.dat \
+   	$startdir/pkg/usr/share/texmf-config/tex/generic/config/
+   cp -a $startdir/pkg/usr/share/texmf/xdvi/XDvi \
+   	$startdir/pkg/usr/share/texmf-config/xdvi/
+   # clean updmap.cfg
+   sed -i '/^\(Map\|MixedMap\)/d' $startdir/pkg/usr/share/texmf-config/web2c/updmap.cfg
+   sed -i '/^#! \(Map\|MixedMap\)/d' $startdir/pkg/usr/share/texmf-config/web2c/updmap.cfg
+   # fix hard-coded paths in /usr/bin/xindy
+   sed -i "s|'/.\+/pkg/usr|'/usr|" $startdir/pkg/usr/bin/xindy
+}
+
+

Added: texlive-bin/trunk/texmf.cnf
===================================================================
--- texlive-bin/trunk/texmf.cnf	                        (rev 0)
+++ texlive-bin/trunk/texmf.cnf	2008-09-08 10:36:48 UTC (rev 12049)
@@ -0,0 +1,633 @@
+% texmf.cnf -- runtime path configuration file for kpathsea.
+% Public domain.
+%
+% What follows is a super-summary of what this .cnf file can
+% contain. Please read the Kpathsea manual for more information.
+%
+% Any identifier (sticking to A-Za-z_ for names is safest) can be assigned.
+% The `=' (and surrounding spaces) is optional.
+% $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
+%
+% Earlier entries (in the same or another file) override later ones, and
+% an environment variable foo overrides any texmf.cnf definition of foo.
+%
+% All definitions are read before anything is expanded, so you can use
+% variables before they are defined.
+%
+% If a variable assignment is qualified with `.PROGRAM', it is ignored
+% unless the current executable (last filename component of argv[0]) is
+% named PROGRAM.  This foo.PROGRAM construct is not recognized on the
+% right-hand side. For environment variables, use FOO_PROGRAM.
+%
+% Which file formats use which paths for searches is described in the
+% various programs' and the kpathsea documentation.
+%
+% // means to search subdirectories (recursively).
+% A leading !! means to look only in the ls-R db, never on the disk.
+% In this file, either ; or : can be used to separate path components.
+% A leading/trailing/doubled path separator in the paths will be
+%   expanded into the compile-time default. Probably not what you want.
+%
+% You can use brace notation, for example: /usr/local/{mytex,othertex}
+% expands to /usr/local/mytex:/usr/local/othertex.  Instead of the comma
+% you can use the path separator: /usr/local/{mytex:othertex} also expands
+% to /usr/local/mytex:/usr/local/othertex.
+
+%>>> Part 1: Search paths and directories.
+
+% You can set an environment variable to override TEXMF if you're testing
+% a new TeX tree, without changing anything else.
+%
+% You may wish to use one of the $SELFAUTO... variables here so TeX will
+% find where to look dynamically.  See the manual and the definition
+% below of TEXMFCNF.
+
+% The tree containing the runtime files closely related to the specific
+% program version used:
+TEXMFMAIN = /usr/share/texmf
+
+% The main distribution tree:
+TEXMFDIST = /usr/share/texmf-dist
+
+% Our documentation-only tree, arranged by language:
+TEXMFDOC = /usr/share/texmf-doc
+
+% A place for local additions to a "standard" texmf tree.
+% This tree is not used for local configuration maintained by
+% texconfig, it uses TEXMFCONFIG below.
+TEXMFLOCAL = /usr/local/share/texmf
+
+% TEXMFSYSVAR, where texconfig-sys stores variable runtime data.
+% With teTeX-3.0 or later, this must be set.
+% For sharing this tree with $TEXMFMAIN:
+%   TEXMFSYSVAR = $TEXMFMAIN
+% For using a separate tree:
+%   TEXMFSYSVAR = /usr/share/texmf-var
+TEXMFSYSVAR = /usr/share/texmf-var
+
+% TEXMFSYSCONFIG, where texconfig-sys stores configuration data.
+% With teTeX-3.0 or later, this must be set.
+% For sharing this tree with $TEXMFMAIN:
+%   TEXMFSYSCONFIG = $TEXMFMAIN
+% For using a separate tree:
+%   TEXMFSYSCONFIG = /usr/share/texmf-config
+TEXMFSYSCONFIG = /usr/share/texmf-config
+
+% User texmf trees are allowed as follows.
+% This used to be HOMETEXMF.
+TEXMFHOME = ~/texmf
+
+% TEXMFVAR, where texconfig stores variable runtime data.
+% With teTeX-3.0 or later, this must be set.
+% For sharing this tree with $TEXMFMAIN:
+%   TEXMFVAR = $TEXMFMAIN
+% For using a separate tree:
+%   TEXMFVAR = ~/.texmf-var  # teTeX 3.0 default
+TEXMFVAR = ~/.texlive/texmf-var
+
+% TEXMFCONFIG, where texconfig stores configuration data.
+% With teTeX-3.0 or later, this must be set.
+% For sharing this tree with $TEXMFMAIN:
+%   TEXMFCONFIG = $TEXMFMAIN
+% For using a separate tree:
+%   TEXMFCONFIG = ~/.texmf-config  # teTeX 3.0 default
+% For using a separate tree:
+%   TEXMFCONFIG = /usr/share/texmf-config
+TEXMFCONFIG = ~/.texlive/texmf-config
+
+% Now, list all the texmf trees. If you have multiple trees you can
+% use shell brace notation, like this:
+%   TEXMF = {$TEXMFHOME,!!$TEXMFLOCAL,!!$TEXMFMAIN}
+% The braces are necessary.
+%
+% For texconfig to work properly, TEXMFCONFIG and TEXMFVAR should be named
+% explicitly and before all other trees.
+TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST}
+
+% The system trees.  These are the trees that are shared by all the users.
+% If a tree appears in this list, the mktex* scripts will use
+% VARTEXFONTS for generated files, if the original tree isn't writable;
+% otherwise the current working directory is used.
+SYSTEXMF = $TEXMFSYSVAR;$TEXMFMAIN;$TEXMFLOCAL;$TEXMFDIST
+
+% 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
+
+% Where to look for ls-R files.  There need not be an ls-R in the
+% directories in this path, but if there is one, Kpathsea will use it.
+% By default, this is only the !! elements of TEXMF, plus texmf-doc, so
+% that mktexlsr does not create ls-R files in the non-!! elements --
+% because if an ls-R is present, it will be used, and the disk will not
+% be searched.  This is arguably a bug in kpathsea, but we will not
+% think about it now.
+%
+TEXMFDBS = {!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST,!!$TEXMFDOC}
+
+% 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
+%   TEXMFVAR = /var/lib/texmf
+% is used on many Linux systems.  In this case, set VARTEXFONTS like this
+% VARTEXFONTS = $TEXMFVAR/fonts
+% and do not mention it in TEXMFDBS (but _do_ mention TEXMFVAR).
+%
+% Remove $VARTEXFONTS from TEXMFDBS if the VARTEXFONTS directory is below
+% one of the TEXMF directories (avoids overlapping ls-R files).
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Usually you will not need to edit any of the other variables in part 1. %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% WEB2C is for Web2C specific files.  The current directory may not be
+% a good place to look for them.
+WEB2C = $TEXMF/web2c
+
+% TEXINPUTS is for TeX input files -- i.e., anything to be found by \input
+% or \openin, including .sty, .eps, etc.
+
+% Plain TeX.  Have the command tex check all directories as a last
+% resort, we may have plain-compatible stuff anywhere.
+TEXINPUTS.tex           = .;$TEXMF/tex/{plain,generic,}//
+
+% Other plain-based formats.
+TEXINPUTS.amstex        = .;$TEXMF/tex/{amstex,plain,generic,}//
+TEXINPUTS.csplain       = .;$TEXMF/tex/{csplain,plain,generic,}//
+TEXINPUTS.eplain        = .;$TEXMF/tex/{eplain,plain,generic,}//
+TEXINPUTS.ftex          = .;$TEXMF/tex/{formate,plain,generic,}//
+TEXINPUTS.jadetex       = .;$TEXMF/tex/{jadetex,plain,generic,}//
+TEXINPUTS.mex           = .;$TEXMF/tex/{mex,plain,generic,}//
+TEXINPUTS.texinfo       = .;$TEXMF/tex/{texinfo,plain,generic,}//
+TEXINPUTS.xetex         = .;$TEXMF/tex/{xetex,plain,generic,}//
+
+% LaTeX 2e specific macros are stored in latex/, macros that can only be
+% used with 2.09 in latex209/.  In addition, we look in the directory
+% latex209, useful for macros that were written for 2.09 and do not
+% mention 2e at all, but can be used with 2e.
+TEXINPUTS.cslatex       = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
+TEXINPUTS.latex         = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.olatex        = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.latex209      = .;$TEXMF/tex/{latex209,generic,latex,}//
+TEXINPUTS.xelatex       = .;$TEXMF/tex/{xelatex,latex,generic,}//
+
+% Fontinst needs to read afm files.
+TEXINPUTS.fontinst      = .;$TEXMF/{tex,fonts/afm}//
+
+% MLTeX.
+TEXINPUTS.frlatex       = .;$TEXMF/tex/{french,latex,generic,}//
+TEXINPUTS.frtex         = .;$TEXMF/tex/{french,plain,generic,}//
+TEXINPUTS.mllatex       = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.mltex         = .;$TEXMF/tex/{plain,generic,}//
+
+% e-TeX.  This form of the input paths is borrowed from teTeX.  A certain
+% variant of TDS is assumed here, unaffected by the build variables.
+TEXINPUTS.elatex        = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.etex          = .;$TEXMF/tex/{plain,generic,}//
+
+% pdfTeX.  This form of the input paths is borrowed from teTeX.  A certain
+% variant of TDS is assumed here, unaffected by the build variables.
+TEXINPUTS.pdfcslatex    = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
+TEXINPUTS.pdfcsplain    = .;$TEXMF/tex/{csplain,plain,generic,}//
+TEXINPUTS.pdfjadetex    = .;$TEXMF/tex/{jadetex,plain,generic,}//
+TEXINPUTS.pdflatex      = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.pdfmex        = .;$TEXMF/tex/{mex,plain,generic,}//
+TEXINPUTS.utf8mex       = .;$TEXMF/tex/{mex,plain,generic,}//
+TEXINPUTS.pdftex        = .;$TEXMF/tex/{plain,generic,}//
+TEXINPUTS.pdftexinfo    = .;$TEXMF/tex/{texinfo,plain,generic,}//
+TEXINPUTS.pdfamstex     = .;$TEXMF/tex/{amstex,plain,generic,}//
+
+% pdfeTeX.
+TEXINPUTS.pdfelatex     = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.pdfetex       = .;$TEXMF/tex/{plain,generic,}//
+
+% pdfxTeX.
+TEXINPUTS.pdfxlatex     = .;$TEXMF/tex/{latex,generic,}//
+TEXINPUTS.pdfxtex       = .;$TEXMF/tex/{plain,generic,}//
+
+% XeTeX
+TEXINPUTS.xelatex       = .;$TEXMF/tex/{xelatex,latex,generic,}//
+TEXINPUTS.xeplain       = .;$TEXMF/tex/{xeplain,eplain,plain,generic,}//
+TEXINPUTS.xetex         = .;$TEXMF/tex/{xetex,plain,generic,}//
+
+% These defunct engines are not provided for Arch Linux:
+% Omega / Aleph
+% TEXINPUTS.lamed         = .;$TEXMF/tex/{lamed,lambda,latex,generic,}//
+% TEXINPUTS.lambda        = .;$TEXMF/tex/{lambda,latex,generic,}//
+% TEXINPUTS.omega         = .;$TEXMF/tex/{plain,generic,}//
+% TEXINPUTS.aleph         = .;$TEXMF/tex/{plain,generic,}//
+
+% ConTeXt
+TEXINPUTS.context       = .;$TEXMF/tex/{context,plain,generic,}//
+
+% odd formats needing their own paths
+TEXINPUTS.lamstex       = .;$TEXMF/tex/{lamstex,plain,generic,}//
+TEXINPUTS.lollipop      = .;$TEXMF/tex/{lollipop,plain,generic,}//
+
+% Earlier entries override later ones, so put this last.
+TEXINPUTS               = .;$TEXMF/tex/{$progname,generic,}//
+
+% extra format definitions for TeX Live
+
+% TEXINPUTS.elambda       = .;$TEXMF/tex/{lambda,latex,generic,}//
+% TEXINPUTS.eomega        = .;$TEXMF/tex/{plain,generic,}//
+TEXINPUTS.pdfxmex       = .;$TEXMF/tex/{mex,plain,generic,}//
+TEXINPUTS.frpdflatex    = .;$TEXMF/tex/{french,latex,generic,}//
+TEXINPUTS.frpdftex      = .;$TEXMF/tex/{french,plain,generic,}//
+TEXINPUTS.xmltex        = .;$TEXMF/tex/{xmltex,latex,generic,}//
+TEXINPUTS.pdfxmltex     = .;$TEXMF/tex/{xmltex,latex,generic,}//
+
+TTF2TFMINPUTS =                 .;$TEXMF/ttf2pk//
+
+% Metafont, MetaPost inputs.
+MFINPUTS = .;$TEXMF/metafont//;{$TEXMF/fonts,$VARTEXFONTS}/source//
+MPINPUTS = .;$TEXMF/metapost//
+
+% allow for compressed files, and various extensions.
+TEXDOCSSUFFIX   = ;.pdf;.ps;.dvi;.html;.txt;.tex
+TEXDOCSCOMPRESS = ;.gz;.bz2;.zip;.Z
+TEXDOCEXT       = {$TEXDOCSSUFFIX}{$TEXDOCSCOMPRESS}
+
+% Dump files (fmt/base/mem) for vir{tex,mf,mp} to read.
+% We want to find the engine-specific file, e.g., cont-en.fmt can
+% exist under both pdftex/ and xetex/.  But just in case some formats
+% end up without an engine directory, look directly in web2c/ too.
+TEXFORMATS = .;$TEXMF/web2c{/$engine,}
+MFBASES = ${TEXFORMATS}
+MPMEMS = ${TEXFORMATS}
+%
+% As of 2008, pool files don't exist any more (the strings are compiled
+% into the binaries), but just in case something expects to find these
+% settings:
+TEXPOOL = .;$TEXMF/web2c
+MFPOOL = ${TEXPOOL}
+MPPOOL = ${TEXPOOL}
+
+% support the original xdvi.  Must come before the generic settings.
+PKFONTS.XDvi   = .;$TEXMF/%s;$VARTEXFONTS/pk/{%m,modeless}//
+VFFONTS.XDvi   = .;$TEXMF/%s
+PSHEADERS.XDvi = .;$TEXMF/%q{dvips,fonts/type1}//
+TEXPICTS.XDvi  = .;$TEXMF/%q{dvips,tex}//
+
+% Device-independent font metric files.
+VFFONTS = .;$TEXMF/fonts/vf//
+TFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/tfm//
+
+% The $MAKETEX_MODE below means the drivers will not use a cx font when
+% the mode is ricoh.  If no mode is explicitly specified, kpse_prog_init
+% sets MAKETEX_MODE to /, so all subdirectories are searched.  See the manual.
+% The modeless part guarantees that bitmaps for PostScript fonts are found.
+PKFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}//
+
+% Similarly for the GF format, which only remains in existence because
+% Metafont outputs it (and MF isn't going to change).
+GFFONTS = .;$TEXMF/fonts/gf/$MAKETEX_MODE//
+
+% A backup for PKFONTS and GFFONTS. Not used for anything.
+GLYPHFONTS = .;$TEXMF/fonts
+
+% A place to puth everything that doesn't fit the other font categories.
+MISCFONTS = .;$TEXMF/fonts/misc//
+
+% font name map files.  This isn't just fonts/map// because ConTeXt
+% wants support for having files with the same name in the different
+% subdirs.  Maybe if the programs ever get unified to accepting the same
+% map file syntax the definition can be simplified again.
+TEXFONTMAPS = .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//
+
+% BibTeX bibliographies and style files.
+BIBINPUTS = .;$TEXMF/bibtex/bib//
+BSTINPUTS = .;$TEXMF/bibtex/{bst,csf}//
+% For bibtex8. Do we really need to repeat the BIBINPUTS setting?
+BIBINPUTS.bibtex8 =             .;$TEXMF/bibtex/{bib,}//
+BSTINPUTS.bibtex8 =             .;$TEXMF/bibtex/{bst,csf,}//
+
+% MFT style files.
+MFTINPUTS = .;$TEXMF/mft//
+
+% PostScript headers and prologues (.pro); unfortunately, some programs
+% also use this for acessing font files (enc, type1, truetype)
+TEXPSHEADERS = .;$TEXMF/{dvips,fonts/{enc,type1,type42,type3}}//
+TEXPSHEADERS.gsftopk = .;$TEXMF/{dvips,fonts/{enc,type1,type42,type3,truetype}}//
+
+% OSFONTDIR is to provide a convenient hook for allowing TeX to find
+% fonts installed on the system (outside of TeX).  An empty default
+% value would add "//" to the search paths, so we give it a dummy value.
+OSFONTDIR = /usr/share/fonts
+
+% PostScript Type 1 outline fonts.
+T1FONTS = .;$TEXMF/fonts/type1//;$OSFONTDIR/Type1//
+
+% PostScript AFM metric files.
+AFMFONTS = .;$TEXMF/fonts/afm//;$OSFONTDIR/Type1//
+
+% TrueType outline fonts.
+TTFONTS = .;$TEXMF/fonts/truetype//;$OSFONTDIR/TTF//
+
+% Opentype outline fonts.
+OPENTYPEFONTS = .;$TEXMF/fonts/opentype//;$OSFONTDIR/OTF//
+
+% Type 42 outline fonts.
+T42FONTS = .;$TEXMF/fonts/type42//
+
+% Ligature definition files.
+LIGFONTS =  .;$TEXMF/fonts/lig//
+
+% Dvips' config.* files (this name should not start with `TEX'!).
+TEXCONFIG = $TEXMF/dvips//
+
+% Makeindex style (.ist) files.
+INDEXSTYLE = .;$TEXMF/makeindex//
+
+% Font encoding files (.enc).
+ENCFONTS = .;$TEXMF/fonts/enc//
+
+% CMap files.
+CMAPFONTS = .;$TEXMF/fonts/cmap//
+
+% Subfont definition files.
+SFDFONTS = .;$TEXMF/fonts/sfd//
+
+% OpenType outline fonts.
+OPENTYPEFONTS = .;$TEXMF/fonts/opentype//
+
+% pdftex config files:
+PDFTEXCONFIG = .;$TEXMF/pdftex/{$progname,}//
+
+% Used by DMP (ditroff-to-mpx), called by makempx -troff.
+TRFONTS = /usr{/local,}/share/groff/{current/font,site-font}/devps
+MPSUPPORT = .;$TEXMF/metapost/support
+
+% For xdvi to find mime.types and .mailcap, if they do not exist in
+% ~.  These are single directories, not paths.
+% (But the default mime.types, at least, may well suffice.)
+MIMELIBDIR = /usr/share/etc
+MAILCAPLIBDIR = /usr/share/etc
+
+% Default settings for fontconfig library, used by Win32 versions of
+% xetex/xdvipdfmx (note that fontconfig on Linux/Unix-like systems
+% will ignore settings in this file)
+FONTCONFIG_FILE=fonts.conf
+FONTCONFIG_PATH=$TEXMFSYSVAR/fonts/conf
+FC_CACHEDIR=$TEXMFSYSVAR/fonts/cache
+
+% TeX documentation and source files, for use with kpsewhich.
+% TeX Live has a separate hierarchy with just documentation, texmf-doc,
+% in addition to the doc files in the other hierarchies.
+% Also, find the English documentation first -- better than random, when
+% there are name collisions.
+TEXMFDOCDIR = $TEXMFDOC/doc{/english,}
+TEXDOCS = .;$TEXMF/doc//;$TEXMFDOCDIR//
+TEXSOURCES = .;$TEXMF/source//
+
+% Web and CWeb input paths.
+WEBINPUTS = .;$TEXMF/web//
+CWEBINPUTS = .;$TEXMF/cweb//
+
+% Omega-related fonts and other files.
+OFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/{ofm,tfm}//
+OPLFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/opl//
+OVFFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/{ovf,vf}//
+OVPFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/ovp//
+OTPINPUTS = .;$TEXMF/omega/otp//
+OCPINPUTS = .;$TEXMF/omega/ocp//
+
+% Some additional input variables for several programs.  If you add
+% a program that uses the `other text files' or `other binary files'
+% search formats, you'll want to add their variables here as well.
+T4HTINPUTS   = .;$TEXMF/tex4ht//
+
+%% t4ht utility, sharing files with TeX4ht
+TEX4HTFONTSET=alias,iso8859,unicode
+TEX4HTINPUTS = .;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}//
+
+% 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
+
+% Architecture independent executables.
+TEXMFSCRIPTS = $TEXMF/scripts/{$engine,$progname,}//
+
+% Other languages.
+JAVAINPUTS   = .;$TEXMF/scripts/{$progname,$engine,}/java//
+PERLINPUTS   = .;$TEXMF/scripts/{$progname,$engine,}/perl//
+PYTHONINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/python//
+RUBYINPUTS   = .;$TEXMF/scripts/{$progname,$engine,}/ruby//
+
+
+%% The mktex* scripts rely on KPSE_DOT. Do not set it in the environment.
+% KPSE_DOT = .
+
+% This definition isn't used from this .cnf file itself (that would be
+% paradoxical), but the compile-time default in paths.h is built from it.
+% The SELFAUTO* variables are set automatically from the location of
+% argv[0], in kpse_set_program_name.
+% 
+% This main texmf.cnf file is installed, for a release YYYY, in a
+% directory such as /usr/local/texlive/YYYY/texmf/web2c/texmf.cnf.
+% Since this file is subject to future updates, the TeX Live installer
+% or human administrator may also create a file
+% /usr/local/texlive/YYYY/texmf.cnf; any settings in this latter file
+% will take precedence over the distributed one under texmf/web2c.
+% 
+% For security reasons, it is better not to include . in this path.
+%
+TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,/usr}{,{/share,/local/share,}/texmf/web2c}
+
+# kpathsea 3.5.3 and later sets these at runtime. To avoid empty
+# expansions from binaries linked against an earlier version of the
+# library, we set $progname and $engine to something non-empty:
+progname = unsetprogname
+engine = unsetengine
+
+
+%>>> Part 2: Options.
+
+% If this is true, `tex a.b' will look first for a.b.tex (within each
+% path element), and then for a.b, i.e., we try standard extensions
+% first.  If this is false, we first look for a.b and then a.b.tex,
+% first.  If this is false, we first look for a.b and then a.b.tex,
+% i.e., we try the name as-is first.
+%
+% Both names are always tried; the difference is the order in which they
+% are tried.  The setting applies to all searches, not just .tex.
+%
+% This setting only affects names being looked up which *already* have
+% an extension.  A name without an extension (e.g., `tex story') will
+% always have an extension added first.
+%
+% The default is true, because we already avoid adding the standard
+% extension(s) in most common cases.  E.g., babel.sty will only look for
+% babel.sty, not babel.sty.tex, regardless of this setting.
+try_std_extension_first = t
+
+% Enable system commands via \write18{...}?  Obviously insecure, despite
+% being so useful.
+shell_escape = f
+
+% Allow TeX \openin, \openout, or \input on filenames starting with `.'
+% (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)?
+% a (any)        : any file can be opened.
+% r (restricted) : disallow opening "dotfiles".
+% p (paranoid)   : as `r' and disallow going to parent directories, and
+%                  restrict absolute paths to be under $TEXMFOUTPUT.
+openout_any = p
+openin_any = a
+
+% Write .log/.dvi/etc. files here, if the current directory is unwritable.
+% TEXMFOUTPUT = /tmp
+
+% If a dynamic file creation fails, log the command to this file, in
+% either the current directory or TEXMFOUTPUT.  Set to the
+% empty string or  0  to avoid logging.
+MISSFONT_LOG = missfont.log
+
+% Set to a colon-separated list of words specifying warnings to suppress.
+% To suppress everything, use TEX_HUSH = all; this is currently equivalent to
+% TEX_HUSH = checksum:lostchar:readable:special
+% To suppress nothing, use TEX_HUSH = none or do not set the variable at all.
+TEX_HUSH = none
+
+% Allow TeX, MF, and MP to parse the first line of an input file for
+% the %&format construct.
+parse_first_line = t
+
+% But don't parse the first line if invoked as "tex", since we want that
+% to remain Knuth-compatible.  The src_specials and
+% file_line_error_style settings, as well as the options -enctex,
+% -mltex, -8bit, etc., also affect this, but they are all off by default.
+parse_first_line.tex = f
+
+% Control file:line:error style messages.
+file_line_error_style = f
+
+% Enable the mktex... scripts by default?  These must be set to 0 or 1.
+% Particular programs can and do override these settings, for example
+% dvips's -M option.  Your first chance to specify whether the scripts
+% are invoked by default is at configure time.
+%
+% These values are ignored if the script names are changed; e.g., if you
+% set DVIPSMAKEPK to `foo', what counts is the value of the environment
+% variable/config value `FOO', not the `MKTEXPK' value.
+%
+% MKTEXTEX = 0
+% MKTEXPK = 0
+% MKTEXMF = 0
+% MKTEXTFM = 0
+% MKTEXFMT = 0
+% MKOCP = 0
+% MKOFM = 0
+
+% What MetaPost runs to make MPX files.  This is passed an option -troff
+% if MP is in troff mode.  Set to `0' to disable this feature.
+MPXCOMMAND = makempx
+
+% Used by makempx to run TeX.  We use "etex" because MetaPost is
+% expecting DVI, and not "tex" because we want first line parsing.
+TEX = etex
+
+% These variables specify the external program called for the
+% interactive `e' option.  %d is replaced by the line number and %s by
+% the current filename.  The default is specified at compile-time, and
+% we let that stay in place since different platforms like different values.
+%TEXEDIT = vi +%d "%s"
+%MFEDIT = ${TEXEDIT}
+%MPEDIT = ${TEXEDIT}
+
+%>>>  Part 3: Array and other sizes for TeX (and Metafont and MetaPost).
+%
+% If you want to change some of these sizes only for a certain TeX
+% variant, the usual dot notation works, e.g.,
+% main_memory.hugetex = 20000000
+%
+% If a change here appears to be ignored, try redumping the format file.
+
+% Memory. Must be less than 8,000,000 total.
+%
+% main_memory is relevant only to initex, extra_mem_* only to non-ini.
+% Thus, have to redump the .fmt file after changing main_memory; to add
+% to existing fmt files, increase extra_mem_*.  (To get an idea of how
+% much, try \tracingstats=2 in your TeX source file;
+% web2c/tests/memtest.tex might also be interesting.)
+%
+% To increase space for boxes (as might be needed by, e.g., PiCTeX),
+% increase extra_mem_bot.
+%
+% For some xy-pic samples, you may need as much as 700000 words of memory.
+% For the vast majority of documents, 60000 or less will do.
+%
+main_memory = 3000000 % words of inimemory available; also applies to inimf&mp
+extra_mem_top = 0     % extra high memory for chars, tokens, etc.
+extra_mem_bot = 0     % extra low memory for boxes, glue, breakpoints, etc.
+
+% ConTeXt needs lots of memory.
+extra_mem_top.context = 2000000
+extra_mem_bot.context = 4000000
+
+% Words of font info for TeX (total size of all TFM files, approximately).
+% Must be >= 20000 and <= 4000000 (without tex.ch changes).
+font_mem_size = 3000000
+
+% Total number of fonts. Must be >= 50 and <= 5000 (without tex.ch changes).
+font_max = 5000
+
+% Extra space for the hash table of control sequences (which allows 10K
+% names as distributed).
+hash_extra = 50000
+
+% Max number of characters in all strings, including all error messages,
+% help texts, font names, control sequences.  These values apply to TeX and MP.
+pool_size = 1250000
+% Minimum pool space after TeX/MP's own strings; must be at least
+% 25000 less than pool_size, but doesn't need to be nearly that large.
+string_vacancies = 90000
+% Maximum number of strings.
+max_strings = 500000
+% min pool space left after loading .fmt
+pool_free = 47500
+
+% Buffer size.  TeX uses the buffer to contain input lines, but macro
+% expansion works by writing material into the buffer and reparsing the
+% line.  As a consequence, certain constructs require the buffer to be
+% very large, even though most documents can be handled with a small value.
+buf_size = 200000
+
+% Hyphenation trie.  The maximum possible is 4194303 (ssup_trie_size in
+% the sources), but we don't need that much.  The value here suffices
+% for all known free hyphenation patterns to be loaded simultaneously
+% (as TeX Live does).
+%
+trie_size = 600000
+
+hyph_size = 8191        % prime number of hyphenation exceptions, >610, <32767.
+                        % http://primes.utm.edu/curios/page.php/8191.html
+nest_size = 500         % simultaneous semantic levels (e.g., groups)
+max_in_open = 15        % simultaneous input files and error insertions
+param_size = 10000      % simultaneous macro parameters
+save_size = 50000       % for saving values outside current group
+stack_size = 5000       % simultaneous input sources
+
+% These are Omega-specific.
+% ocp_buf_size = 500000   % character buffers for ocp filters.
+% ocp_stack_size = 10000  % stacks for ocp computations.
+% ocp_list_size = 1000    % control for multiple ocps.
+
+% Parameter specific to MetaPost.
+% Maximum number of knots between breakpoints of a path.
+% Set to 2000 by default.
+% path_size.mpost = 10000
+
+% These work best if they are the same as the I/O buffer size, but it
+% doesn't matter much.  Must be a multiple of 8.
+dvi_buf_size = 16384 % TeX
+gf_buf_size = 16384  % MF
+
+% It's probably inadvisable to change these. At any rate, we must have:
+% 45 < error_line      < 255;
+% 30 < half_error_line < error_line - 15;
+% 60 <= max_print_line;
+% These apply to TeX, Metafont, and MetaPost.
+error_line = 79
+half_error_line = 50
+max_print_line = 79




More information about the arch-commits mailing list