Remplacement TeTex par TexLive
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Mon, 22 Aug 2011 00:04:41 +0000 (00:04 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Mon, 22 Aug 2011 00:04:41 +0000 (00:04 +0000)
stage5/pkg/jadetex [deleted file]
stage5/pkg/tetex [deleted file]
stage5/pkg/texlive [new file with mode: 0644]

diff --git a/stage5/pkg/jadetex b/stage5/pkg/jadetex
deleted file mode 100644 (file)
index 63e63d7..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/bash
-
-hvbuild()
-{
-    cd ${LFS_TMP}/${PACKAGE}
-    sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
-        -e "s/memory hog.../&\npool_size.context = 750000/" \
-        $(kpsewhich texmf.cnf)
-    cat >> $(kpsewhich texmf.cnf) << "EOF"
-
-% The following 3 sections added for JadeTeX
-
-% latex settings
-main_memory.latex = 1100000
-param_size.latex = 1500
-stack_size.latex = 1500
-hash_extra.latex = 15000
-string_vacancies.latex = 45000
-pool_free.latex = 47500
-nest_size.latex = 500
-save_size.latex = 5000
-pool_size.latex = 500000
-max_strings.latex = 55000
-font_mem_size.latex= 400000
-
-% jadetex settings
-main_memory.jadetex = 1500000
-param_size.jadetex = 1500
-stack_size.jadetex = 1500
-hash_extra.jadetex = 50000
-string_vacancies.jadetex = 45000
-pool_free.jadetex = 47500
-nest_size.jadetex = 500
-save_size.jadetex = 5000
-pool_size.jadetex = 500000
-max_strings.jadetex = 55000
-
-% pdfjadetex settings
-main_memory.pdfjadetex = 2500000
-param_size.pdfjadetex = 1500
-stack_size.pdfjadetex = 1500
-hash_extra.pdfjadetex = 50000
-string_vacancies.pdfjadetex = 45000
-pool_free.pdfjadetex = 47500
-nest_size.pdfjadetex = 500
-save_size.pdfjadetex = 5000
-pool_size.pdfjadetex = 500000
-max_strings.pdfjadetex = 55000
-
-EOF
-
-    LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c"
-
-    mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig
-    mv -v $LATEX_FMT_DIR/latex.log $LATEX_FMT_DIR/latex.log.orig
-    fmtutil-sys --byfmt latex
-
-    make
-
-    install -v -m755 -d \
-        $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config
-    install -v -m644 dsssl.def jadetex.ltx *.sty \
-        $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex
-    install -v -m644 {,pdf}jadetex.ini \
-        $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config
-    FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)"
-    mv $FMTUTIL_CNF $FMTUTIL_CNF.orig
-    cat $FMTUTIL_CNF.orig - >> $FMTUTIL_CNF << "EOF"
-
-# JadeTeX formats:
-jadetex         etex            -               "&latex"     jadetex.ini
-pdfjadetex      pdfetex         -               "&pdflatex"  pdfjadetex.ini
-
-EOF
-    mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
-        $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig
-    mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
-        $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig
-    mktexlsr
-    fmtutil-sys --byfmt jadetex
-    fmtutil-sys --byfmt pdfjadetex
-    mktexlsr
-    ln -v -sf etex /usr/bin/jadetex
-    ln -v -sf pdfetex /usr/bin/pdfjadetex
-    install -v -m644 -D index.html \
-        /usr/share/doc/${PACKAGE}/index.html
-    install -v -m644 *.1 /usr/share/man/man1
-}
diff --git a/stage5/pkg/tetex b/stage5/pkg/tetex
deleted file mode 100644 (file)
index 284d1f0..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-
-hvpatch_pre()
-{
-    # Removing any older directory from earlier attempt...
-    rm -rf ${LFS_TMP}/cm-super
-
-    install -v -m755 -d /usr/share/texmf
-
-    decompress_package ${TETEX_TEXMF}    /usr/share/texmf
-    decompress_package ${TETEX_TEXMFSRC} /usr/share/texmf
-    decompress_package ${TETEX_CM_SUPER}
-}
-
-hvconfig_pre()
-{
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --exec-prefix=/usr \
-        --bindir=/usr/bin \
-        --with-x=yes \
-        --without-texinfo \
-        --with-system-ncurses \
-        --with-system-zlib \
-        --with-system-t1lib \
-        --with-system-pnglib \
-        --with-system-gd \
-        --disable-a4"
-}
-
-hvbuild_post()
-{
-    texconfig-sys dvips paper letter
-    texconfig-sys font rw
-
-    install -v -d -m755 /usr/local/share/texmf/tex/latex
-    var_add_path "TEXMFLOCAL" /etc/profile "/usr/local/share/texmf"
-    var_export   "TEXMFLOCAL" /etc/profile
-
-    # To install the optional cm-super fonts:
-    FONTDIR=$(kpsewhich --expand-var '$TEXMFMAIN')
-    mkdir -v -p ${FONTDIR}/fonts/afm/public/cm-super   \
-        ${FONTDIR}/fonts/type1/public/cm-super \
-        ${FONTDIR}/fonts/enc/dvips/cm-super    \
-        ${FONTDIR}/fonts/map/dvips/cm-super  
-
-    cp -v ${LFS_TMP}/cm-super/pfb/*.pfb ${FONTDIR}/fonts/type1/public/cm-super/
-
-    gunzip ${LFS_TMP}/cm-super/afm/*
-    cp -v ${LFS_TMP}/cm-super/afm/*.afm ${FONTDIR}/fonts/afm/public/cm-super/
-
-    cp -v ${LFS_TMP}/cm-super/dvips/*.enc ${FONTDIR}/fonts/enc/dvips/cm-super/
-    cp -v ${LFS_TMP}/cm-super/dvips/*.map ${FONTDIR}/fonts/map/dvips/cm-super/
-
-    cat >> ${FONTDIR}/web2c/updmap.cfg << "EOF"
-MixedMap cm-super-t1.map
-MixedMap cm-super-t2a.map
-MixedMap cm-super-t2b.map
-MixedMap cm-super-t2c.map
-MixedMap cm-super-ts1.map
-MixedMap cm-super-x2.map
-EOF
-
-    mktexlsr
-    updmap-sys
-
-    if [ ${?} -eq 0 ]; then
-        rm -rf ${LFS_TMP}/cm-super
-    fi
-}
diff --git a/stage5/pkg/texlive b/stage5/pkg/texlive
new file mode 100644 (file)
index 0000000..9a7fd8d
--- /dev/null
@@ -0,0 +1,75 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    if [ -h /usr/texmf ]; then
+        rm -v /usr/texmf
+    fi
+    if [ -h /usr/texmf-dist ]; then
+        rm -v /usr/texmf-dist
+    fi
+
+    # Two temporary symbolic links need to be created:
+    ln -svf share/texmf      /usr
+    ln -svf share/texmf-dist /usr
+
+    sed -i -e 's|PARENT/\.\./texmf-local|PARENT/texmf-local|' \
+        -e 's|\$TEXMFVAR/fonts|/var/lib/livetex/fonts|'    \
+        ${LFS_TMP}/${PACKAGE}/texk/kpathsea/texmf.cnf
+
+    CONFIGURE_OPTS="\
+        ${CONFIGURE_OPTS} \
+        --disable-native-texlive-build \
+        --enable-shared                \
+        --without-luatex               \
+        --enable-mktextex-default"
+}
+
+hvbuild_post()
+{
+    rm -v /usr/texmf{,-dist}
+    install -v -m1777 -d /var/lib/livetex/fonts
+    install -v -m755  -d /usr/share/texmf-{config,var,local}
+    install -v -m755  -d /usr/share/doc/texlive
+    ln -svfT ../../texmf/doc /usr/share/doc/texlive/texmf
+    ln -svfT ../../texmf-dist/doc /usr/share/doc/texlive/texmf-dist
+
+    for FN in `find /usr/bin -type l`; do
+        if [ `readlink $FN | grep "\.\./texmf"` ]; then
+            ln -svfT `readlink $FN | sed 's|\.\./texmf|../share/texmf|'` $FN
+        fi
+    done
+    unset FN
+
+    # Fix bug with $SELFAUTOPARENT variable being empty...
+    sed -i -e 's!\$SELFAUTOPARENT!/usr/share!' /usr/share/texmf/web2c/texmf.cnf
+
+    # Configuration:
+    mktexlsr /usr/share/texmf   \
+        /usr/share/texmf-config \
+        /usr/share/texmf-dist   \
+        /usr/share/texmf-var    \
+        /usr/share/texmf-local  \
+        /var/lib/livetex/fonts
+
+    texconfig-sys font rw
+    texconfig-sys paper letter
+    fmtutil-sys --all
+    updmap-sys
+
+    mktexlsr /usr/share/texmf   \
+        /usr/share/texmf-config \
+        /usr/share/texmf-dist   \
+        /usr/share/texmf-var    \
+        /usr/share/texmf-local  \
+        /var/lib/livetex/fonts
+
+    texlinks
+
+    mktexlsr /usr/share/texmf   \
+        /usr/share/texmf-config \
+        /usr/share/texmf-dist   \
+        /usr/share/texmf-var    \
+        /usr/share/texmf-local  \
+        /var/lib/livetex/fonts
+}