ports/print/texlive/texmf/patches/patch-texmf-dist_web2c_texmf_cnf

46 lines
1.7 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: texmf-dist/web2c/texmf.cnf
--- texmf-dist/web2c/texmf.cnf.orig
+++ texmf-dist/web2c/texmf.cnf
@@ -1,6 +1,10 @@
% original texmf.cnf -- runtime path configuration file for kpathsea.
% Public domain.
%
+% ************************
+% HACKED FOR OPENBSD PORTS
+% ************************
+%
% If you modify this original file, YOUR CHANGES WILL BE LOST when it is
% updated. Instead, put your changes -- and only your changes, not an
% entire copy! -- in ../../texmf.cnf. That is, if this file is
@@ -59,8 +63,11 @@
% SELFAUTOPARENT (its grandparent = /usr/local/texlive/YYYY), and
% SELFAUTOGRANDPARENT (its great-grandparent = /usr/local/texlive).
% Sorry for the off-by-one-generation names.
-TEXMFROOT = $SELFAUTOPARENT
+% We use the old teTeX paths in OpenBSD.
+OBSD_PREFIX= ${TRUEPREFIX}
+TEXMFROOT = $OBSD_PREFIX/share
+
% The main tree of distributed packages and programs:
TEXMFDIST = $TEXMFROOT/texmf-dist
@@ -69,7 +76,7 @@ TEXMFDIST = $TEXMFROOT/texmf-dist
TEXMFMAIN = $TEXMFDIST
% Local additions to the distribution trees.
-TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
+TEXMFLOCAL = $TEXMFROOT/texmf-local
% TEXMFSYSVAR, where *-sys store cached runtime data.
TEXMFSYSVAR = $TEXMFROOT/texmf-var
@@ -519,7 +526,7 @@ LUAINPUTS.harflatex-dev = $TEXMFDOTDIR;$TEXMF/scripts/
LUAINPUTS = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{luatex,plain,generic,latex,}//
% Lua needs to look for binary lua libraries distributed with packages.
-CLUAINPUTS = $TEXMFDOTDIR;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//
+CLUAINPUTS = $TEXMFDOTDIR;$OBSD_PREFIX/lib/{$progname,$engine,}/lua//
% Architecture independent executables.
TEXMFSCRIPTS = $TEXMF/scripts/{$progname,$engine,}//