diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2013-11-10 22:56:31 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-11 10:55:47 -0600 |
commit | ec170afb14699e06be7b8026904e387c285b42bc (patch) | |
tree | e069dba21f3b7506cdfdf82534016dd8f5f520ec /office/texlive/texlive.SlackBuild | |
parent | 03f6fb3e3c95456e5852f96a7fc142e387a220cb (diff) | |
download | slackbuilds-ec170afb14699e06be7b8026904e387c285b42bc.tar.gz |
office/texlive: Remove initial build dep on tetex.
Delay building xindy until the end of the script when we
have the texlive environment already available and use
some PATH/LD_LIBRARY_PATH trickery to build xindy using
that environment rather than a system one.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'office/texlive/texlive.SlackBuild')
-rw-r--r-- | office/texlive/texlive.SlackBuild | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/office/texlive/texlive.SlackBuild b/office/texlive/texlive.SlackBuild index 04d8a4e983..69d2109f9b 100644 --- a/office/texlive/texlive.SlackBuild +++ b/office/texlive/texlive.SlackBuild @@ -27,7 +27,7 @@ PRGNAM=texlive VERSION=20130530 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SOURCE_VERS=$VERSION @@ -99,7 +99,7 @@ mkdir build ; cd build --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --infodir=/usr/info \ - --with-banner-add='TeX Live 2013/Slackware (SlackBuilds.org)' \ + --with-banner-add=' on Slackware (SlackBuilds.org)' \ --disable-native-texlive-build \ --enable-largefile \ --with-xdvi-x-toolkit=xaw3d \ @@ -108,7 +108,7 @@ mkdir build ; cd build --disable-missing \ --with-x \ --without-etex \ - --enable-xindy \ + --disable-xindy \ --with-clisp-runtime=system \ --with-system-poppler \ --with-system-xpdf \ @@ -135,7 +135,7 @@ PATH="$PATH:$PKG/usr/bin" LD_LIBRARY_PATH+=$PKG/usr/lib${LIBDIRSUFFIX} \ mkdir -p $PKG/usr/doc/texlive-$VERSION cp -a ChangeLog README* $PKG/usr/doc/texlive-$VERSION -# We won't make tlmgr easily available; it's still there, but +# 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 @@ -166,7 +166,7 @@ patch -p1 < $CWD/patches/texmf-fixup_texmf-local_tree_in_texmf_cnf.diff # Move manual pages to the correct place # There's some duplicates of stuff that's already present in /usr/man -# from the texlive source we just compiled above, but I'm going to +# from the texlive source we just compiled above, but I'm going to # work from the assumption that they're identical - I just don't have # the requisite number of fucks to give in order to ensure that. mv $PKG/usr/share/texmf-dist/doc/man/man1/*.1 $PKG/usr/man/man1 @@ -174,10 +174,36 @@ mv $PKG/usr/share/texmf-dist/doc/man/man1/*.1 $PKG/usr/man/man1 rm -rf $PKG/usr/share/texmf-dist/doc/man # We're going to put docs in our standard location (with a compat link) -mv $PKG/usr/share/texmf-dist/doc/* $PKG/usr/doc/$PRGNAM-$VERSION -rmdir $PKG/usr/share/texmf-dist/doc/ +mv $PKG/usr/share/texmf-dist/doc $PKG/usr/doc/$PRGNAM-$VERSION/ ln -s ../../doc/$PRGNAM-$VERSION/doc $PKG/usr/share/texmf-dist/doc +# Now that we have everything in place, build xindy +cd $TMP/texlive-$SOURCE_VERS-source/utils/xindy + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LATEX="$PKG/usr/bin/latex" \ +PDFLATEX="$PKG/usr/bin/pdflatex" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --with-clisp-runtime=system \ + --with-banner-add=' on Slackware (SlackBuilds.org)' \ + --build=$ARCH-slackware-linux + +export PATH="$PATH:$PKG/usr/bin" +export LD_LIBRARY_PATH="$PKG/usr/lib$LIBDIRSUFFIX" +$PKG/usr/bin/texhash + +make +make install DESTDIR=$PKG + +# Not really sure if this is necessary, but we changed the contents of +# /usr/share/texmf-dist so let's just do it for good measure. +$PKG/usr/bin/texhash + # 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 |