forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
texmfcnflua2015.patch
59 lines (49 loc) · 2.62 KB
/
texmfcnflua2015.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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:.texlive2015/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:.texlive2015/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,12 @@ return {
-- entry. This makes the tex root relocatable.
TEXMFOS = "selfautodir:",
- TEXMFDIST = "selfautoparent:texmf-dist",
+ TEXMFDIST = "selfautodir:share/texmf-dist",
- 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",