texlive: patch texmf.cnf to point towards correct path
authorHenrik Grimler <Henrik@Grimler.se>
Wed, 24 Jan 2018 18:46:27 +0000 (19:46 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 30 Jan 2018 13:14:33 +0000 (14:14 +0100)
Necessary after files have been moved to standard path.
Also add remove file from texlive to avoid file clash with texlive-bin.

packages/texlive-bin/build.sh
packages/texlive-bin/texk-kpathsea-texmf.cnf.patch
packages/texlive/build.sh

index b483fd3..d835c9d 100644 (file)
@@ -130,7 +130,8 @@ termux_step_post_make_install () {
        mv $TL_BINDIR/tlmgr $TL_BINDIR/tlmgr.ln
        echo "#!$TERMUX_PREFIX/bin/sh" > $TL_BINDIR/tlmgr
        echo "termux-fix-shebang $TL_ROOT/texmf-dist/scripts/texlive/tlmgr.pl" >> $TL_BINDIR/tlmgr
-       echo "sed -i 's%`kpsewhich -var-value=SELFAUTOPARENT`);%`kpsewhich -var-value=TEXMFROOT`);%g' $TL_ROOT/texmf-dist/scripts/texlive/tlmgr.pl" >> $TL_BINDIR/tlmgr
+       echo "sed -i 's%\`kpsewhich -var-value=SELFAUTOPARENT\`);%\`kpsewhich -var-value=TEXMFROOT\`);%g' $TL_ROOT/texmf-dist/scripts/texlive/tlmgr.pl" >> $TL_BINDIR/tlmgr
+
        echo "sed -E -i '"'s@`/bin/sh@`'$TERMUX_PREFIX"/bin/sh@g' ${TL_ROOT}/tlpkg/TeXLive/TLUtils.pm" >> $TL_BINDIR/tlmgr
        echo 'tlmgr.ln "$@"' >> $TL_BINDIR/tlmgr
        chmod 0744 $TL_BINDIR/tlmgr
index bb7f14d..6a1b30e 100644 (file)
@@ -14,7 +14,7 @@
  
  % Local additions to the distribution trees.
 -TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
-+TEXMFLOCAL = TEXMFROOT/texmf-local
++TEXMFLOCAL = $TEXMFROOT/texmf-local
  
  % TEXMFSYSVAR, where *-sys store cached runtime data.
  TEXMFSYSVAR = $TEXMFROOT/texmf-var
index c7eb476..765e218 100644 (file)
@@ -142,4 +142,5 @@ share/texlive/tlpkg/tlpostcode/xetex/conf/fonts.conf
 share/texlive/tlpkg/tlpostcode/xetex/conf/fonts.dtd
 share/texlive/tlpkg/tlpostcode/xetex/conf/conf.d/51-local.conf
 share/texlive/tlpkg/tlpostcode/xetex/cache/readme.txt
-share/texlive/tlpkg/tlpostcode/ptex2pdf-tlpost.pl"
+share/texlive/tlpkg/tlpostcode/ptex2pdf-tlpost.pl
+share/texlive/texmf-dist/web2c/texmf.cnf"