diff options
Diffstat (limited to 'office/texlive/texlive.SlackBuild')
-rw-r--r-- | office/texlive/texlive.SlackBuild | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/office/texlive/texlive.SlackBuild b/office/texlive/texlive.SlackBuild index e2d8141cc0..5028a03de3 100644 --- a/office/texlive/texlive.SlackBuild +++ b/office/texlive/texlive.SlackBuild @@ -30,7 +30,7 @@ PRGNAM=texlive SOURCEVERSION=20160523 VERSION=${VERSION:-2016.161031} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -73,7 +73,10 @@ export PATH="$PKG/usr/bin:$PATH" export LD_LIBRARY_PATH="$PKG/usr/lib${LIBDIRSUFFIX}:$LD_LIBRARY_PATH" # set TEXMFROOT and TEXMFLOCAL -sed -i "s|^TEXMFROOT.*|TEXMFROOT = \$SELFAUTODIR/share|;s|^TEXMFLOCAL.*|TEXMFLOCAL = \$TEXMFROOT/texmf-local|" texk/kpathsea/texmf.cnf +sed -i \ + -e 's|^TEXMFROOT.*|TEXMFROOT = $SELFAUTODIR/share|' \ + -e 's|^TEXMFLOCAL.*|TEXMFLOCAL = $TEXMFROOT/texmf-local|' \ + texk/kpathsea/texmf.cnf # Fix a segfault in upmendex, thanks to the lfs-folks. patch -Np1 -i $CWD/patches/texlive-20160523b-source-upstream_fixes-1.patch @@ -139,11 +142,28 @@ case $ARCH in esac rm -rf $PKG/usr/share/texmf-dist/bin -# set TEXMFROOT and TEXMFLOCAL +# Remove mpost from shell_escape_commands, http://tug.org/pipermail/tldistro/2016q4/000277.html sed -i \ - "s|^TEXMFROOT.*|TEXMFROOT = \$SELFAUTODIR/share|;s|^TEXMFLOCAL.*|TEXMFLOCAL = \$TEXMFROOT/texmf-local|" \ + -e '/^mpost/d' \ $PKG/usr/share/texmf-dist/web2c/texmf.cnf +# set some paths +sed -i \ + -e 's|^TEXMFROOT.*|TEXMFROOT = $SELFAUTODIR/share|' \ + -e 's|^TEXMFLOCAL.*|TEXMFLOCAL = $TEXMFROOT/texmf-local|' \ + -e 's|^OSFONTDIR.*|OSFONTDIR = ~/.fonts:/usr/share/fonts|' \ + -e 's|texlive20[0-9][0-9]|texlive|g' \ + $PKG/usr/share/texmf-dist/web2c/texmf.cnf + +# make ConTeXt work, and remove unused settings +sed -i \ + -e 's|selfautoparent:|/usr/share/|g' \ + -e 's|\(TEXMFLOCAL[ ]*=[ ]*\)[^,]*|\1"/usr/share/texmf-local"|' \ + -e 's|texlive20[0-9][0-9]|texlive|g' \ + -e '/selfautodir/d' \ + -e '/texmflocal/d' \ + $PKG/usr/share/texmf-dist/web2c/texmfcnf.lua + # Install the docs while we're still here mkdir -p $PKG/usr/doc/texlive-$VERSION cp -a ChangeLog README* $PKG/usr/doc/texlive-$VERSION @@ -163,29 +183,6 @@ mkdir -p $PKG/usr/share/{texmf-config,texmf-var,texmf-local} mkdir -p $PKG/usr/share/perl5 mv texk/tests/TeXLive $PKG/usr/share/perl5/ -mkdir -p $PKG/etc/profile.d -cat << 'EOF' > $PKG/etc/profile.d/setuptex.sh -#!/bin/sh - -# set environment for ConTeXt - -export TEXMF=/usr/share/texmf-dist -export TEXMFCACHE=~/.texmf-cache -export OSFONTDIR=~/.fonts:/usr/share/fonts -unset TEXINPUTS MPINPUTS MFINPUTS -EOF -cat << 'EOF' > $PKG/etc/profile.d/setuptex.csh -#!/bin/csh - -# set environment for ConTeXt - -setenv TEXMF /usr/share/texmf-dist -setenv TEXMFCACHE ~/.texmf-cache -setenv OSFONTDIR ~/.fonts:/usr/share/fonts -unsetenv TEXINPUTS MPINPUTS MFINPUTS -EOF -chmod 755 $PKG/etc/profile.d/setuptex.* - # Handle the man pages find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done |