$OpenBSD: patch-texmf-dist_web2c_texmfcnf_lua,v 1.2 2014/01/20 21:34:44 edd Exp $

Patch in OpenBSD paths.

--- texmf-dist/web2c/texmfcnf.lua.origy	Tue Apr  9 15:15:26 2013
+++ texmf-dist/web2c/texmfcnf.lua	Mon Jan 20 17:33:53 2014
@@ -3,9 +3,6 @@
 -- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
 -- bit of lua code to make that happen
 
-local texmflocal = resolvers.prefixes.selfautoparent();
-texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");
-
 return {
 
     type    = "configuration",
@@ -41,10 +38,14 @@ return {
             --     "selfautoparent:/texmf/web2c",
             --     "selfautoparent:",
             -- }
+	    
+	    -- Note that in OpenBSD, where we use the old teTeX path convention 
+	    -- selfautodir does not work.                                       
+	    TEXMFROOT       = "${TRUEPREFIX}/share",
 
             -- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live
 
-            TEXMFSYSVAR     = "selfautoparent:texmf-var",
+            TEXMFSYSVAR     = "$TEXMFROOT/texmf-var",
             TEXMFVAR        = "home:.texlive2013/texmf-var",
 
             -- We have only one cache path but there can be more. The first writable one
@@ -62,12 +63,12 @@ return {
             -- entry. This makes the tex root relocatable.
 
             TEXMFOS         = "selfautodir:",
-            TEXMFDIST       = "selfautoparent:texmf-dist",
+            TEXMFDIST       = "$TEXMFROOT/texmf-dist",
 
             TEXMFLOCAL      = texmflocal,
-            TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
-            TEXMFFONTS      = "selfautoparent:texmf-fonts",
-            TEXMFPROJECT    = "selfautoparent:texmf-project",
+            TEXMFSYSCONFIG  = "$TEXMFROOT/texmf-config",
+            TEXMFFONTS      = "$TEXMFROOT/texmf-fonts",
+            TEXMFPROJECT    = "$TEXMFROOT/texmf-project",
 
             TEXMFHOME       = "home:texmf",
          -- TEXMFHOME       = os.name == "macosx" and "home:Library/texmf" or "home:texmf",
