Index: work/texmf-dist/web2c/texmfcnf.lua =================================================================== --- work.orig/texmf-dist/web2c/texmfcnf.lua +++ work/texmf-dist/web2c/texmfcnf.lua @@ -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", @@ -30,7 +27,7 @@ return { -- most cases you can leve this one untouched. The built-in definition -- permits relocation of the tree. -- - -- TEXMFCNF = "{selfautodir:,selfautoparent:}{,{/share,}/texmf{-local,}/web2c}" + -- TEXMFCNF = "selfautodir:share/texmf-dist/web2c" -- -- more readable than "selfautoparent:{/texmf{-local,}{,/web2c},}}" is: -- @@ -44,14 +41,14 @@ return { -- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live - TEXMFSYSVAR = "selfautoparent:texmf-var", - TEXMFVAR = "home:.texlive2017/texmf-var", + TEXMFSYSVAR = "selfautoparent:var/lib/texmf", + TEXMFVAR = "home:.texlive/texmf-var", -- We have only one cache path but there can be more. The first writable one -- will be chosen but there can be more readable paths. TEXMFCACHE = "$TEXMFSYSVAR;$TEXMFVAR", - TEXMFCONFIG = "home:.texlive2017/texmf-config", + TEXMFCONFIG = "home:.texlive/texmf-config", -- I don't like this texmf under home and texmf-home would make more -- sense. One never knows what installers put under texmf anywhere and @@ -62,12 +59,13 @@ return { -- entry. This makes the tex root relocatable. TEXMFOS = "selfautodir:", - TEXMFDIST = "selfautoparent:texmf-dist", + TEXMFDIST = "selfautodir:share/texmf-dist", + TEXMFSITE = "selfautodir:share/texmf-site", - TEXMFLOCAL = texmflocal, - TEXMFSYSCONFIG = "selfautoparent:texmf-config", - TEXMFFONTS = "selfautoparent:texmf-fonts", - TEXMFPROJECT = "selfautoparent:texmf-project", + TEXMFLOCAL = "selfautodir:local/share/texmf", + TEXMFSYSCONFIG = "selfautoparent:etc/texmf", + TEXMFFONTS = "selfautodir:share/texmf-dist", + TEXMFPROJECT = "selfautodir:share/texmf-dist", TEXMFHOME = "home:texmf", -- TEXMFHOME = os.name == "macosx" and "home:Library/texmf" or "home:texmf", @@ -75,7 +73,7 @@ return { -- We need texmfos for a few rare files but as I have a few more bin trees -- a hack is needed. Maybe other users also have texmf-platform-new trees. - TEXMF = "{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST}", + TEXMF = "{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST,!!$TEXMFSITE}", TEXFONTMAPS = ".;$TEXMF/fonts/data//;$TEXMF/fonts/map/{pdftex,dvips}//", ENCFONTS = ".;$TEXMF/fonts/data//;$TEXMF/fonts/enc/{dvips,pdftex}//",