Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > 4a50ab359942ac4c35cceab4f713aaec > files > 20

texlive-2007-21.r6295.8mdv2010.1.src.rpm

#! /bin/sh /usr/share/dpatch/dpatch-run
## 53_builtin-searchpath-fix.dpatch
##
## DP: adjust built-in search paths for kpathsea library to Debian standard

@DPATCH@
 build/source/texk/kpathsea/Makefile.in |    5 -----
 build/source/texk/kpathsea/texmf.in    |   14 +++++++-------
 2 files changed, 7 insertions(+), 12 deletions(-)

Index: texlive-bin-2006.svn3816/build/source/texk/kpathsea/Makefile.in
===================================================================
--- texlive-bin-2006.svn3816.orig/build/source/texk/kpathsea/Makefile.in	2007-01-08 00:31:48.000000000 +0100
+++ texlive-bin-2006.svn3816/build/source/texk/kpathsea/Makefile.in	2007-01-26 04:02:50.000000000 +0100
@@ -127,11 +127,6 @@
 	| sed '/^$$/d' \
 	| sed 's/^\([^ 	=]*\)[ 	]*=*[ 	]*\(.*\)/#ifndef DEFAULT_\1%#define DEFAULT_\1 "\2"%#endif/' \
 	| tr '%' '\012' \
-	| sed -e 's%\$$TEXMFMAIN%$(texmf)%g' \
-	      -e 's%\$$TEXMF%$(texmf)%g' \
-	      -e 's%\$$VARTEXFONTS%$(vartexfonts)%g' \
-	      -e 's%\$$web2cdir%$(web2cdir)%g' \
-	      -e 's%\$$prefix%$(prefix)%g' \
 	| sed -e 's%;%:%g' \
 	>>paths.tmp
 	@if cmp -s paths.h paths.tmp 2>/dev/null; then \
Index: texlive-bin-2006.svn3816/build/source/texk/kpathsea/texmf.in
===================================================================
--- texlive-bin-2006.svn3816.orig/build/source/texk/kpathsea/texmf.in	2007-01-20 01:38:30.000000000 +0100
+++ texlive-bin-2006.svn3816/build/source/texk/kpathsea/texmf.in	2007-01-26 04:02:50.000000000 +0100
@@ -53,15 +53,15 @@
 
 % The tree containing the runtime files closely related to the specific
 % program version used:
-TEXMFMAIN = @texmf@
+TEXMFMAIN = /usr/share/texmf
 
 % The main distribution tree:
-TEXMFDIST = @texmf@-dist
+TEXMFDIST = /usr/share/texmf-texlive
 
 % 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 = @texmf@-local
+TEXMFLOCAL = /usr/local/share/texmf
 
 % TEXMFSYSVAR, where texconfig-sys stores variable runtime data.
 % With teTeX-3.0 or later, this must be set.
@@ -69,7 +69,7 @@
 %   TEXMFSYSVAR = $TEXMFMAIN
 % For using a separate tree:
 %   TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var
-TEXMFSYSVAR = @texmf@-var
+TEXMFSYSVAR = /var/lib/texmf
 
 % TEXMFSYSCONFIG, where texconfig-sys stores configuration data.
 % With teTeX-3.0 or later, this must be set.
@@ -77,7 +77,7 @@
 %   TEXMFSYSCONFIG = $TEXMFMAIN
 % For using a separate tree:
 %   TEXMFSYSCONFIG = $SELFAUTOPARENT/texmf-config
-TEXMFSYSCONFIG = @texmf@-config
+TEXMFSYSCONFIG = /etc/texmf
 
 % User texmf trees are allowed as follows.
 % This used to be HOMETEXMF.
@@ -119,7 +119,7 @@
 % 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 = @vartexfonts@
+VARTEXFONTS = /var/cache/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.
@@ -441,7 +441,7 @@
 %
 % For security reasons, it is better not to have . part of the path.
 %
-TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c};/.$TETEXDIR;$TEXMF/web2c;@web2c@
+TEXMFCNF = /usr/share/texmf/web2c;/usr/share/texmf-texlive/web2c;/usr/local/share/texmf/web2c
 
 # $progname: kpathsea v. 3.5.3 or later overwrites this at runtime. To
 # avoid empty expansions from binaries linked against an earlier