summaryrefslogtreecommitdiffstats
path: root/office/texlive/texlive.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/texlive/texlive.SlackBuild')
-rw-r--r--office/texlive/texlive.SlackBuild182
1 files changed, 59 insertions, 123 deletions
diff --git a/office/texlive/texlive.SlackBuild b/office/texlive/texlive.SlackBuild
index 122485ff1c..5f1bf2d0c9 100644
--- a/office/texlive/texlive.SlackBuild
+++ b/office/texlive/texlive.SlackBuild
@@ -2,7 +2,7 @@
# TeXLive build script for Slackware
-# Copyright 2009-2011 Robby Workman, Northport, AL, USA
+# Copyright 2009-2012 Robby Workman, Northport, AL, USA
# Copyright 2009 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
@@ -23,16 +23,15 @@
# 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/2011/
+# URL: ftp://tug.org/historic/systems/texlive/2012/
PRGNAM=texlive
-VERSION=20110705
-BUILD=${BUILD:-4}
+VERSION=20120701
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SOURCE_VERS=$VERSION
TEXMF_VERS=$VERSION
-EXTRA_VERS=$VERSION
TEXI2HTML=5.0 # texi2html version - http://www.nongnu.org/texi2html/
@@ -79,81 +78,54 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Thanks to Karl Berry and the other TeXLive devs for agreeing to the extra
-# work required to maintain a -stable branch of each release
-# http://tug.org/svn/texlive/branches/branch2011
-patch -p2 < $CWD/branch2011/01-off-by-one-fix-for-enctex-xetex.patch
-patch -p2 < $CWD/branch2011/02-synctex-coordinate-fix.patch
-patch -p2 < $CWD/branch2011/03-create-README.branch2011.patch
-patch -p2 < $CWD/branch2011/04-line_number_fix_from_r24155.patch
-patch -p2 < $CWD/branch2011/05-update_README.branch2011.patch
-patch -p2 < $CWD/branch2011/06-buffer_overrun_fix_from_r24337.patch
-patch -p2 < $CWD/branch2011/07-fix_memory_corruption_from_r23592.patch
-patch -p2 < $CWD/branch2011/08-e-ptex_fixes_from_r23688.patch
-patch -p2 < $CWD/branch2011/09-update_branch_log.patch
-patch -p2 < $CWD/branch2011/10-luatex_array_fix_from_r24353.patch
-patch -p2 < $CWD/branch2011/11-update_branch_log.patch
-
-# Thanks to Peter Berntsen for the problem report and fix
+# Fix up some paths
patch -p1 < $CWD/patches/source-fixup_texmf-local_tree_in_texmf_cnf.diff
-# "kpsewhich -var-value=SELFAUTOPARENT" strips two trailing directories
-# from the location of the binaries, and this value is used by many
-# things in TeXLive (including tlmgr); therefore, it seems best to just
-# "go with the flow" and use "--enable-multiplatform" so the symlinks
-# that are automatically created will be correct...
-
-# Building with --without-etex as it is something for eclipse
-# Building with "--without-system-xpdf" because poppler API changes too often
-
-TL_BUILD_ENV="CFLAGS=\"$SLKCFLAGS\" CXXFLAGS=\"$SLKCFLAGS\"" \
-TL_CONFIGURE_ARGS="\
- --enable-multiplatform \
- --with-banner-add='TeX Live 2011/Slackware (SBo)' \
- --disable-native-texlive-build \
- --disable-static \
- --with-x \
- --without-etex \
- --without-system-xpdf \
- --enable-xindy \
- --with-clisp-runtime=system \
- --with-system-ncurses \
- --with-system-zlib \
- --with-system-libpng \
- --with-system-t1lib \
- --with-system-gd \
- --with-system-freetype2 \
- --build=$ARCH-slackware-linux" \
-./Build
-
-mkdir -p $PKG/usr/share/texmf/bin
-mv inst/bin/${ARCH}-slackware-linux-gnu/* $PKG/usr/share/texmf/bin
-
-# Install the README file while we're still here
+unset TEXMFCNF ; export TEXMFCNF
+LANG=C ; export LANG
+GNUMAKE=$(which make) ; export GNUMAKE
+KPATHSEA_WARNING=0 ; export KPATHSEA_WARNING
+
+mkdir build ; cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ ../configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --with-banner-add='TeX Live 2012/Slackware (rworkman)' \
+ --disable-native-texlive-build \
+ --enable-largefile \
+ --disable-missing \
+ --with-xdvi-x-toolkit=xaw \
+ --enable-shared \
+ --disable-static \
+ --with-x \
+ --without-etex \
+ --enable-xindy \
+ --with-clisp-runtime=system \
+ --with-system-poppler \
+ --with-system-xpdf \
+ --with-system-ncurses \
+ --with-system-zlib \
+ --with-system-libpng \
+ --with-system-t1lib \
+ --with-system-gd \
+ --with-system-freetype2 \
+ --build=$ARCH-slackware-linux
+ make
+ make install DESTDIR=$PKG
+cd ..
+
+# Create symlinks
+PATH="$PATH:$PKG/usr/bin" LD_LIBRARY_PATH+=$PKG/usr/lib${LIBDIRSUFFIX} \
+ texlinks -f $PKG/usr/share/texmf/web2c/fmtutil.cnf $PKG/usr/bin
+
+# Install the docs while we're still here
mkdir -p $PKG/usr/doc/texlive-$VERSION
-cp -a README $PKG/usr/doc/texlive-$VERSION
-
-# Now let's install the tlmgr stuff
-cd $TMP
-rm -rf texlive-$EXTRA_VERS-extra
-tar xvf $CWD/texlive-$EXTRA_VERS-extra.tar.xz
-cd texlive-$EXTRA_VERS-extra
-chown -R root:root .
-chmod -R a-s .
-find . \
- \( -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 {} \;
-
-mkdir -p $PKG/usr/doc/texlive-$VERSION/tlpkg
-cp -a tlpkg $PKG/usr/share/
-cd $TMP/texlive-$EXTRA_VERS-extra
- cp -a \
- readme-txt.dir/* readme-html.dir/* README* LICENSE* doc.html \
- $PKG/usr/doc/texlive-$VERSION/tlpkg
- cat $CWD/README.tlpkg > $PKG/usr/doc/texlive-$VERSION/tlpkg/README.SLACKWARE
-cd -
+cp -a ChangeLog README* $PKG/usr/doc/texlive-$VERSION
+cat $CWD/README.tlpkg > $PKG/usr/doc/texlive-$VERSION/README.tlpkg
# and now we'll install the texmf stuff
cd $TMP
@@ -168,12 +140,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Thanks to Peter Berntsen for the problem report and fix
+# Fix up some paths
patch -p1 < $CWD/patches/texmf-fixup_texmf-local_tree_in_texmf_cnf.diff
-mkdir -p $PKG/usr/share/{texmf,texmf-dist}
-mv texmf-dist/* $PKG/usr/share/texmf-dist
-mv texmf/* $PKG/usr/share/texmf
+mkdir -p $PKG/usr/share
+cp -a texmf texmf-dist $PKG/usr/share
# Now let's add texi2hmtl - http://www.nongnu.org/texi2html/
cd $TMP
@@ -190,8 +161,8 @@ find . \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --bindir=/usr/share/texmf/bin \
- --mandir=/usr/share/texmf/doc/man \
+ --bindir=/usr/bin \
+ --mandir=/usr/man \
--infodir=/usr/info \
--build=$ARCH-slackware-linux
make
@@ -201,35 +172,13 @@ cp -a \
AUTHORS COPYING ChangeLog NEWS README TODO \
$PKG/usr/doc/texlive-$VERSION/texi2html-$TEXI2HTML
-# Now add epstopdf
-mkdir -p $PKG/usr/doc/texlive-$VERSION/eps2pdf
-cat $CWD/epstopdf/epstopdf.pl > $PKG/usr/share/texmf/bin/epstopdf
-cat $CWD/epstopdf/epstopdf.1 > $PKG/usr/share/texmf/doc/man/man1/epstopdf.1
-cat $CWD/epstopdf/epstopdf.man1.pdf > $PKG/usr/doc/texlive-$VERSION/eps2pdf/epstopdf.man1.pdf
-cat $CWD/epstopdf/README > $PKG/usr/doc/texlive-$VERSION/eps2pdf/README
-chmod 0755 $PKG/usr/share/texmf/bin/epstopdf
-
-# Compress man pages
-cd $PKG/usr/share/texmf/doc/man || exit 1
- find . -type f -name "Makefile" -exec rm -f {} \;
- find . -type f -name "*.pdf" -exec rm -f {} \;
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-cd -
+# 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
# Handle the GNU info pages
-cd $PKG/usr/info
- mv $PKG/usr/share/texmf/doc/info/* .
- rm -rf $PKG/usr/share/texmf/doc/info
- rm -f dir
- gzip -9 *
-cd -
-
-# Add profile scripts
-mkdir -p $PKG/etc/profile.d
-cat $CWD/profile.d/texlive.sh > $PKG/etc/profile.d/texlive.sh
-cat $CWD/profile.d/texlive.csh > $PKG/etc/profile.d/texlive.csh
-chmod 0755 $PKG/etc/profile.d/*
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
@@ -237,16 +186,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -p -l y -c n $OUTPUT/texlive-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-
-# Ignore this - it's for reference purposes :-) -RW
-# If we turn off --enable-multiplatform and place the
-# binaries only one folder deeper than texmf{,-dist}
-# we should have our own configuration.
-#cat > $PKG/usr/share/texmf.cnf <<EOF
-#% \$SELFAUTODIR will be /usr/share
-#TEXMFMAIN = \$SELFAUTODIR/texmf
-#TEXMFDIST = \$SELFAUTODIR/texmf-dist
-#TEXMFLOCAL = \$SELFAUTODIR/texmf-local
-#TEXMFSYSVAR = \$SELFAUTODIR/texmf-var
-#TEXMFSYSCONFIG = \$SELFAUTODIR/texmf-config
-#EOF