summaryrefslogtreecommitdiffstats
path: root/source/t/texlive/texlive.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/t/texlive/texlive.SlackBuild')
-rwxr-xr-xsource/t/texlive/texlive.SlackBuild57
1 files changed, 23 insertions, 34 deletions
diff --git a/source/t/texlive/texlive.SlackBuild b/source/t/texlive/texlive.SlackBuild
index 064ed234f..16a2de70e 100755
--- a/source/t/texlive/texlive.SlackBuild
+++ b/source/t/texlive/texlive.SlackBuild
@@ -2,9 +2,9 @@
# TeXLive build script for Slackware
-# Copyright 2009, 2017 - 2021 Patrick J. Volkerding, Sebeka, MN, USA
-# Copyright 2009 - 2014 Robby Workman, Northport, AL, USA
-# Copyright 2016 - 2017 Johannes Schoepfer, Germany
+# Copyright 2009, 2017-2024 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2009-2014 Robby Workman, Northport, AL, USA
+# Copyright 2016-2017 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,16 +24,16 @@
# 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/
-# Testrelease: ftp://tug.org/texlive/Images/test/
-# Upstream stable fixes: svn://tug.org/texlive/branches/branch2021/Build/source
+# URL: https://www.tug.org/historic/
+# Testrelease: https://tug.org/texlive/Images/test/
+# Upstream stable fixes: svn://tug.org/texlive/branches/branch2024/Build/source
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=texlive
-SOURCEVERSION=${SOURCEVERSION:-20210324}
-TEXMFVERSION=${TEXMFVERSION:-210418}
-VERSION=${VERSION:-2021.$TEXMFVERSION}
+SOURCEVERSION=${SOURCEVERSION:-20240312}
+TEXMFVERSION=${TEXMFVERSION:-240409}
+VERSION=${VERSION:-2024.$TEXMFVERSION}
BUILD=${BUILD:-1}
TMP=${TMP:-/tmp}
@@ -77,14 +77,17 @@ cd texlive-$SOURCEVERSION-source || exit 1
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-# fixes from stable branch
-cat $CWD/patches/fixes-210420.patch | patch -p1 --verbose || exit 1
+# Make aftergroup work again with the output routine
+cat $CWD/patches/aftergroup.patch | patch -p1 --verbose || exit 1
+
+# Don't break texdoc et al every time zlib is upgraded:
+cat $CWD/patches/quit-breaking-on-minor-zlib-bump.patch | patch -p1 --verbose || exit 1
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
- ../configure \
+ ../configure -C \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
@@ -99,14 +102,14 @@ cd build
--disable-debug \
--disable-dialog \
--disable-xz \
+ --disable-texdoctk \
--with-x \
- --disable-dvisvgm \
--enable-xindy \
--disable-xindy-docs \
--disable-xindy-rules \
+ --disable-linked-scripts \
--with-clisp-runtime=system \
--enable-gc=system \
- --with-system-zlib \
--with-system-libpng \
--with-system-t1lib \
--with-system-gd \
@@ -120,11 +123,12 @@ cd build
--with-system-fontconfig \
--with-system-ncurses \
--with-system-harfbuzz \
- --disable-linked-scripts \
+ --with-system-graphite2 \
+ --with-system-libpaper \
--build=$ARCH-slackware-linux || exit 1
make $NUMJOBS || make || exit 1
- make check || exit 1
+ #make check || exit 1
make install-strip DESTDIR=$PKG || exit 1
cd ..
@@ -146,9 +150,7 @@ chmod -R u+w,go-w,a+rX-st $PKG
# use symlinks/scripts from tlnet
mv $PKG$TEXMFROOT/texmf-dist/linked_scripts/* $PKG/usr/bin
rmdir $PKG$TEXMFROOT/texmf-dist/linked_scripts
-# xindy expects to be executed within $TEXMFROOT/texmf-dist/scripts
-ln -sf $TEXMFROOT/texmf-dist/scripts/xindy/xindy.pl $PKG/usr/bin/xindy
-
+
# set some paths
sed -i \
-e "s|^TEXMFROOT.*|TEXMFROOT = $TEXMFROOT|" \
@@ -156,20 +158,6 @@ sed -i \
-e "s|^OSFONTDIR.*|OSFONTDIR = ~/.fonts:/usr/share/fonts|" \
$PKG$TEXMFROOT/texmf-dist/web2c/texmf.cnf
-# disable obsolete aleph/lamed/cslatex/pdfcslatex
-sed -i \
- -e 's|^aleph|#! aleph|' \
- -e 's|^lamed|#! lamed|' \
- -e 's|^cslatex|#! cslatex|' \
- -e 's|^pdfcslatex|#! pdfcslatex|' \
- $PKG$TEXMFROOT/texmf-dist/web2c/fmtutil.cnf
-
-# make ConTeXt work
-sed -i \
- -e "s|selfautoparent:|$TEXMFROOT/|g" \
- -e "s|\(TEXMFLOCAL[ ]*=[ ]*\)[^,]*|\1\"$TEXMFROOT/texmf-local\"|" \
- $PKG$TEXMFROOT/texmf-dist/web2c/texmfcnf.lua
-
# provide texlive fonts optionally for other system apps
mkdir -p $PKG/etc/fonts/conf.avail
cat > $PKG/etc/fonts/conf.avail/09-texlive.conf << EOF
@@ -188,7 +176,7 @@ cp -a ChangeLog README* $PKG/usr/doc/texlive-$VERSION
mv $PKG$TEXMFROOT/texmf-dist/packages.base.gz $PKG/usr/doc/texlive-$VERSION
# Put a symlink to $TEXMFROOT/texmf-dist/doc in our Slackware docdir
-ln -sf $TEXMFROOT/texmf-dist/doc $PKG/usr/doc/texlive-$VERSION/doc
+ln -srf $PKG$TEXMFROOT/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 :-)
@@ -222,6 +210,7 @@ mkdir -p $PKG/install
echo "# This install script should not collide with any other script's activities," > $PKG/install/doinst.sh
echo "# so don't demand a lock by installpkg: NOLOCK" >> $PKG/install/doinst.sh
zcat $CWD/doinst.sh.gz >> $PKG/install/doinst.sh
+cat $CWD/douninst.sh > $PKG/install/douninst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG