mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
office/texlive: Script cleanups & fixes, build bump.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
5d64e436c0
commit
6c04c1b6b1
4 changed files with 25 additions and 44 deletions
|
@ -1,7 +1,4 @@
|
|||
rm -f usr/share/texmf-config/web2c/updmap.cfg
|
||||
chroot . /usr/bin/mktexlsr 1>/dev/null 2>/dev/null
|
||||
printf "y\n" | chroot . /usr/bin/updmap-sys --nohash --syncwithtrees 1>/dev/null 2>/dev/null
|
||||
chroot . /usr/bin/updmap-sys 1>/dev/null 2>/dev/null
|
||||
chroot . /usr/bin/fmtutil-sys --all 1>/dev/null 2>/dev/null
|
||||
#chroot . /usr/bin/mtxrun --generate 1>/dev/null 2>/dev/null
|
||||
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
--- texk/tex4htk/tex4ht.c.orig 2016-10-24 01:47:40.620666159 +0200
|
||||
+++ texk/tex4htk/tex4ht.c 2016-10-24 01:50:29.023550246 +0200
|
||||
@@ -6809,8 +6809,8 @@
|
||||
||
|
||||
((ch !=
|
||||
2
|
||||
-) && (ch !=
|
||||
-5
|
||||
+) && (ch >
|
||||
+10
|
||||
|
||||
))
|
||||
) bad_dvi;
|
|
@ -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
|
||||
|
|
|
@ -4,7 +4,7 @@ HOMEPAGE="http://tug.org/texlive/"
|
|||
DOWNLOAD="http://mirrors.ctan.org/systems/texlive/Source/texlive-20160523b-source.tar.xz \
|
||||
http://slackware.schoepfer.info/slackbuilds/texlive/2016/texlive/texlive-base-2016.161031.tar.xz"
|
||||
MD5SUM="1e75db3412b3e2945fa94b0a423a29c7 \
|
||||
2314d315b70a5f4dcc03eeb45db0be14"
|
||||
2314d315b70a5f4dcc03eeb45db0be14"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue