texlive: initial commit, version 20200406

This commit is contained in:
Tim Biermann 2020-04-11 11:58:49 +00:00
parent 91a330fb9d
commit 1c6447ff3d
5 changed files with 164297 additions and 0 deletions

164090
texlive/.footprint Normal file

File diff suppressed because it is too large Load Diff

8
texlive/.signature Normal file
View File

@ -0,0 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3wgM899FR7/T5YJMUS0T+li/rySP14GeY7hxYdV28OLIfwXdD9VsIyvGqnbigxllAj+vCP49/X2erLVIQtmTUAM=
SHA256 (Pkgfile) = dd2f8c3ae28188147786c6a2beeda81ea124fa7e72753cfbcb9fbd01cad45a7e
SHA256 (.footprint) = e0d107d89794a4c6e62ca192bd975bd9fd7463aaf6e0b751ba4412fe2550f38a
SHA256 (texlive-20200406-texmf.tar.xz) = 0aa97e583ecfd488e1dc60ff049fec073c1e22dfe7de30a3e4e8c851bb875a95
SHA256 (texlive-20200406-source.tar.xz) = e32f3d08cbbbcf21d8d3f96f2143b64a1f5e4cb01b06b761d6249c8785249078
SHA256 (texi2html-5.0.tar.bz2) = e8a98b0ee20c495a6ab894398a065ef580272dbd5a15b1b19e8bd1bc89d9f9fa
SHA256 (tabu.sty.diff) = 4811154a91a26752e28ad8e90f198139ab54d724824cff948710295faf37004a

159
texlive/Pkgfile Normal file
View File

@ -0,0 +1,159 @@
# Description: TeX distribution for UNIX compatible systems, including luatex and xindy support
# URL: https://www.tug.org/tetex/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: clisp ghostscript graphite2 harfbuzz-icu libgd libmpfr libpaper poppler xorg-libxaw xorg-libxi zziplib cairo libpng xorg-libpixman libgmp
name=texlive
version=20200406
release=1
source=(ftp://tug.org/historic/systems/texlive/${version:0:4}/$name-$version-texmf.tar.xz
ftp://tug.org/historic/systems/texlive/${version:0:4}/$name-$version-source.tar.xz
https://download.savannah.gnu.org/releases/texi2html/texi2html-5.0.tar.bz2
tabu.sty.diff)
unpack_source() {
for file in ${source[@]}; do
case ${file##*/} in
$name-$version-source.tar.xz)
bsdtar -p -o -C $SRC -xf $(get_filename $file) ;;
$name-$version-texmf.tar.xz)
mkdir -p $PKG/usr/share
bsdtar -p -o -C $PKG/usr/share -xf $(get_filename $file) --strip-components 1 ;;
texi2html-5.0.tar.bz2)
bsdtar -p -o -C $SRC -xf $(get_filename $file) ;;
*)
cp $(get_filename $file) $SRC ;;
esac
done
}
build() {
# remove broken symlinks
find $SRC -type l -xtype l -exec rm '{}' \+
find $PKG -type l -xtype l -exec rm '{}' \+
# make ConTeXt work, and remove unused settings
sed -i \
-e 's|selfautoparent:|/usr/share/|g' \
-e 's|\(TEXMFLOCAL[ ]*=[ ]*\)[^,]*|\1"/usr/share/texmf-local"|' \
-e '/selfautodir/d' \
-e '/texmflocal/d' \
$PKG/usr/share/texmf-dist/web2c/texmfcnf.lua
cd $name-$version-source
chmod -R a-s $SRC
find $SRC \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Fix some paths
sed -i 's/SELFAUTOPARENT/TEXMFROOT/' texk/tex4htk/t4ht.c
sed -i 's|TEXMFROOT = .*|TEXMFROOT = $SELFAUTODIR/share|g' texk/kpathsea/texmf.cnf
sed -i 's|TEXMFLOCAL = .*|TEXMFLOCAL = $TEXMFROOT/texmf-local|g' texk/kpathsea/texmf.cnf
export TEXMFCNF=""
export KPATHSEA_WARNING=0
# prevent compiling Xdvi with libXp
sed -i 's|-lXp ||' texk/xdvik/configure
mkdir build
cd build
../configure \
--prefix=/usr \
--with-banner-add=" $(crux)" \
--with-clisp-runtime=system \
--enable-{dvipdfm-x,gc=system,libtool-hack,luatex,pdftex,pdftex-syncex,shared,makeindexk,tex,texlive,tex-synctex,web2c,xindy} \
--with-system-{cairo,freetype2,gd,graphite2,gmp,harfbuzz,icu,libpaper,libpng,mpfr,ncurses,pixman,poppler,potrace,t1lib,zlib,zziplib} \
--with-x \
--with-xdvi-x-toolkit=xaw \
--disable-{all-pkgs,aleph,native-texlive-build,xetex,xindy-docs,xindy-rules}
make
make DESTDIR=$PKG install
cd ..
#fmtutil depends on these
perl_sitelib=$(perl -V:sitelib | sed -e "s|sitelib=[']\(.*\)['].*$|\1|")
install -d $PKG/$perl_sitelib/TeXLive
install texk/tests/TeXLive/TL{Config,Utils}.pm $PKG/$perl_sitelib/TeXLive
# configure fmtutil
sed \
-e 's/^aleph/#! aleph/g' \
-e 's/^lamed/#! lamed/g' \
-e 's/^amstex/#! amstex/g' \
-e 's/^cont-en xetex/#! cont-en xetex/g' \
-e 's/^pdfcs/#! pdfcs/g' \
-e 's/^luacs/#! luacs/g' \
-e 's/^pdfcs/#! pdfcs/g' \
-e 's/^csplain/#! csplain/g' \
-e 's/^eplain/#! eplain/g' \
-e 's/^pdfjadetex/#! pdfjadetex/g' \
-e 's/^jadetex/#! jadetex/g' \
-e 's/^pdfmex/#! pdfmex/g' \
-e 's/^utf8mex/#! utf8mex/g' \
-e 's/^mex/#! mex/g' \
-e 's/^mllatex/#! mllatex/g' \
-e 's/^mltex/#! mltex/g' \
-e 's/^mptopdf/#! mptopdf/g' \
-e 's/^platex/#! platex/g' \
-e 's/^eptex/#! eptex/g' \
-e 's/^ptex/#! ptex/g' \
-e 's/^texsis/#! texsis/g' \
-e 's/^euptex/#! euptex/g' \
-e 's/^uplatex/#! uplatex/g' \
-e 's/^uptex/#! uptex/g' \
-e 's/^xelatex/#! xelatex/g' \
-e 's/^xetex/#! xetex/g' \
-e 's/^cslatex/#! cslatex/g' \
-e 's/^lollipop/#! lollipop/g' \
-i $PKG/usr/share/texmf-dist/web2c/fmtutil.cnf
#-e 's/^pdftex/#! pdftex/g' \
#-e 's/^pdflatex/#! pdflatex/g' \
#-e 's/^luajittex/#! luajittex/g' \
#-e 's/^mf/#! mf/g' \
# Create symlinks
# this uses above configuration to create links like $PKG/usr/bin/lualatex for example
# without, the engines just won't work like we want
PATH="$PKG/usr/bin:$PATH" LD_LIBRARY_PATH+="$PKG/usr/lib:$LD_LIBRARY_PATH" \
texlinks -f $PKG/usr/share/texmf-dist/web2c/fmtutil.cnf $PKG/usr/bin
#cd $SRC/$name-$version-texmf
# Fix some paths
sed \
-e 's|TEXMFROOT = .*|TEXMFROOT = $SELFAUTODIR/share|g' \
-e 's|TEXMFLOCAL = .*|TEXMFLOCAL = $TEXMFROOT/texmf-local|g' \
-e 's|^OSFONTDIR.*|OSFONTDIR = ~/.fonts:/usr/share/fonts|' \
-i $PKG/usr/share/texmf-dist/web2c/texmf.cnf
cd $SRC/texi2html-*
./configure --prefix=/usr
make
make install DESTDIR=$PKG
# final clean up
rm -r $PKG/usr/share/{info,locale,texmf-dist/doc}
rm -r $PKG/usr/bin/{tlmgr,man}
rm -r $PKG/usr/share/texmf-dist/scripts/texlive/tlmgr{,gui}.pl
find $PKG/usr/share/texmf-dist \
-regex '.*/\(COPYING\|README\|AUTHORS\|INSTALL\|ChangeLog\|NEWS\|TODO\|fonts_README.md\|BUGS\).*' \
-exec rm '{}' \+
find $PKG/usr/share/texi2html \
-regex '.*/\(README\|COPYING\).*' \
-exec rm '{}' \+
# strip .la files
rm -f $PKG/usr/lib/*.la
# patch tabu.sty from https://github.com/tabu-fixed/tabu to fix
# breakage when compiling doxygen
( cd $PKG/usr/share/texmf-dist/tex/latex/tabu
cat $SRC/tabu.sty.diff | patch -p1 --verbose || exit 1
)
}

8
texlive/post-install Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
umask 0022
/usr/bin/mktexlsr
/usr/bin/updmap-sys --nohash --syncwithtrees
/usr/bin/mktexlsr
/usr/bin/fmtutil-sys --all

32
texlive/tabu.sty.diff Normal file
View File

@ -0,0 +1,32 @@
--- ./tabu.sty.orig 2019-01-14 16:10:48.000000000 -0600
+++ ./tabu.sty 2019-06-30 16:24:01.975474339 -0500
@@ -57,7 +57,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tabu}[2019/01/11 v2.9 - flexible LaTeX tabulars (FC+tabu-fixed)]
+\ProvidesPackage{tabu}[2019/01/11 v2.9 - flexible LaTeX tabulars (FC+tabu-fixed) + intermediate FMi]
\RequirePackage{array}[2008/09/09]
\RequirePackage{varwidth}[2009/03/30]
\AtEndOfPackage{\tabu@AtEnd \let\tabu@AtEnd \@undefined}
@@ -727,6 +727,10 @@
\tabu@currentgrouptype\expandafter{\the\currentgrouptype}}%
\fi
}% \tabu@init
+%%TABU-FIXED set up \tabu@currentgrouptype
+%FMi cancel for nested arrays ...
+\def\@tabarray{\m@th\def\tabu@currentgrouptype{\currentgrouptype}\@ifnextchar[\@array{\@array[c]}}
+
\def\tabu@indent{% correction for indentation
\ifdim \parindent>\z@\ifx \linewidth\tabudefaulttarget
\everypar\expandafter{%
@@ -1663,6 +1667,9 @@
\ifdim \tabu@temp\p@>\z@ \ifdim \tabu@temp\tabucolX<\tabu@target
\tabu@target=\tabu@temp\tabucolX \fi\fi
\setbox\tabu@box \hbox \bgroup
+%%TABU-FIXED add \color@begingroup
+%%FMi not yet understood why this one is also needed ...
+ \color@begingroup
\begin{varwidth}\tabu@target
\let\FV@ListProcessLine \tabu@FV@ListProcessLine % \hbox to natural width...
\narrowragged \arraybackslash \parfillskip \@flushglue