diff options
Diffstat (limited to 'office/texlive/texlive.SlackBuild')
-rw-r--r-- | office/texlive/texlive.SlackBuild | 106 |
1 files changed, 44 insertions, 62 deletions
diff --git a/office/texlive/texlive.SlackBuild b/office/texlive/texlive.SlackBuild index 6abd007618..e2d8141cc0 100644 --- a/office/texlive/texlive.SlackBuild +++ b/office/texlive/texlive.SlackBuild @@ -24,13 +24,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# URL: ftp://tug.org/historic/systems/texlive/2016/ -# Testrelease 2016 ftp://tug.org/texlive/Images/test/ +# URL: ftp://tug.org/historic/systems/texlive/ +# Testrelease: ftp://tug.org/texlive/Images/test/ PRGNAM=texlive -VERSION=20160523 -TEXMF_VERS=20161023 -BUILD=${BUILD:-3} +SOURCEVERSION=20160523 +VERSION=${VERSION:-2016.161031} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -62,14 +62,14 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf texlive-$VERSION-source -tar xvf $CWD/texlive-${VERSION}b-source.tar.xz -cd texlive-$VERSION-source +rm -rf texlive-$SOURCEVERSION-source +tar xvf $CWD/texlive-${SOURCEVERSION}b-source.tar.xz +cd texlive-$SOURCEVERSION-source chown -R root:root . chmod -R u+w,go-w,a+rX-st . export LANG=C -export PATH="$PKG/usr/bin:$PATH" +export PATH="$PKG/usr/bin:$PATH" export LD_LIBRARY_PATH="$PKG/usr/lib${LIBDIRSUFFIX}:$LD_LIBRARY_PATH" # set TEXMFROOT and TEXMFLOCAL @@ -78,13 +78,9 @@ sed -i "s|^TEXMFROOT.*|TEXMFROOT = \$SELFAUTODIR/share|;s|^TEXMFLOCAL.*|TEXMFLOC # Fix a segfault in upmendex, thanks to the lfs-folks. patch -Np1 -i $CWD/patches/texlive-20160523b-source-upstream_fixes-1.patch -# allow the tex4ht binary to process the updated xdv id byte in xetex -# for tl'2016 (i.e., 0.99996). Without this, htxelatex and the like -# simply bail out. -patch -p0 < $CWD/patches/tex4ht.patch - # --with-system-harfbuzz requires graphite2 (and harfbuzz linked to it) -mkdir build ; cd build +mkdir build +pushd build CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ../configure \ @@ -105,6 +101,7 @@ mkdir build ; cd build --disable-xindy-docs \ --disable-xindy-rules \ --with-clisp-runtime=system \ + --enable-gc=system \ --with-system-poppler \ --with-system-xpdf \ --with-system-zlib \ @@ -120,63 +117,44 @@ mkdir build ; cd build --with-system-mpfr \ --with-system-fontconfig \ --with-system-ncurses \ - --enable-gc=system \ --build=$ARCH-slackware-linux - make + make # make check - make install-strip DESTDIR=$PKG + make install-strip DESTDIR=$PKG # Create symlinks make texlinks DESTDIR=$PKG -cd .. +popd # install the texmf stuff, overwrite partly stuff coming from the source build; # don't remove/separate koma-script docs as this is the wish of the author mkdir -p $PKG/usr/share -tar vxf $CWD/texlive-base-$TEXMF_VERS.tar.xz -C $PKG/usr/share +tar vxf $CWD/texlive-base-$VERSION.tar.xz -C $PKG/usr/share chown -R root:root $PKG chmod -R u+w,go-w,a+rX-st $PKG -( + # Move biber binary to $PATH -cd $PKG/usr/share/texmf-dist case $ARCH in - "x86_64") mv bin/x86_64-linux/biber $PKG/usr/bin ;; - "i586") mv bin/i386-linux/biber $PKG/usr/bin ;; + "x86_64") mv $PKG/usr/share/texmf-dist/bin/x86_64-linux/biber $PKG/usr/bin ;; + "i586") mv $PKG/usr/share/texmf-dist/bin/i386-linux/biber $PKG/usr/bin ;; esac rm -rf $PKG/usr/share/texmf-dist/bin -) - # set TEXMFROOT and TEXMFLOCAL sed -i \ "s|^TEXMFROOT.*|TEXMFROOT = \$SELFAUTODIR/share|;s|^TEXMFLOCAL.*|TEXMFLOCAL = \$TEXMFROOT/texmf-local|" \ $PKG/usr/share/texmf-dist/web2c/texmf.cnf -# Remove context-stuff -rm -rf $PKG/usr/share/texmf-dist/scripts/context - -## Move context script(mtxrun) to the correct place. -## Handle the short context-helper scripts, by putting stub-scripts -## in the texlive-extra package and delete them here, as the needed -## context-packages are included in the texlive-extra package. -#( -#cd $PKG/usr/share/texmf-dist/scripts/context/stubs/unix/ -#mv mtxrun $PKG/usr/bin/ -#rm context contextjit luatools mtxrunjit texexec texmfstart -#cd ../../ -#rmdir -p stubs/unix -#) - # Install the docs while we're still here mkdir -p $PKG/usr/doc/texlive-$VERSION cp -a ChangeLog README* $PKG/usr/doc/texlive-$VERSION # Put a symlink to /usr/share/texmf-dist/doc in our Slackware docdir -ln -s ../../share/texmf-dist/doc $PKG/usr/doc/$PRGNAM-$VERSION/doc +ln -s ../../share/texmf-dist/doc $PKG/usr/doc/texlive-$VERSION/doc # We won't make tlmgr easily available; it's still there, but # we'll make it harder to void the warranty :-) rm -f $PKG/usr/bin/tlmgr -cat $CWD/README.tlpkg > $PKG/usr/doc/$PRGNAM-$VERSION/README.tlpkg +cat $CWD/README.tlpkg > $PKG/usr/doc/texlive-$VERSION/README.tlpkg # Create some directories to make it clear that they're owned by this package mkdir -p $PKG/usr/share/{texmf-config,texmf-var,texmf-local} @@ -185,6 +163,29 @@ 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 @@ -197,24 +198,5 @@ mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc -###### Maybe context is better supportet by a standalone installation, -## have a look at http://wiki.contextgarden.net/ -# -## create profile, to make ConTEXt working -#mkdir -p $PKG/etc/profile.d -#cat << EOF > $PKG/etc/profile.d/texlive.sh -##!/bin/sh -## Add TEXMF and OSFONTDIR for ConTEXt: -#TEXMF=/usr/share/texmf-dist -#OSFONTDIR=~/.fonts:/usr/share/fonts -#EOF -#cat << EOF > $PKG/etc/profile.d/texlive.csh -##!/bin/csh -## Add TEXMF and OSFONTDIR for ConTEXt: -#setenv TEXMF /usr/share/texmf-dist -#setenv OSFONTDIR ~/.fonts:/usr/share/fonts -#EOF -#chmod 755 $PKG/etc/profile.d/texlive.* - cd $PKG /sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |