Browse Source

texlive: patch texmf.cnf to point towards correct path

Necessary after files have been moved to standard path.
Also add remove file from texlive to avoid file clash with texlive-bin.
android-5
Henrik Grimler 7 years ago
committed by Fredrik Fornwall
parent
commit
de4d50a73d
  1. 3
      packages/texlive-bin/build.sh
  2. 2
      packages/texlive-bin/texk-kpathsea-texmf.cnf.patch
  3. 3
      packages/texlive/build.sh

3
packages/texlive-bin/build.sh

@ -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

2
packages/texlive-bin/texk-kpathsea-texmf.cnf.patch

@ -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

3
packages/texlive/build.sh

@ -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"

Loading…
Cancel
Save