[arch-commits] Commit in texlive-core/trunk (PKGBUILD texlive.install)

Rémy Oudompheng remy at archlinux.org
Mon Nov 21 06:23:48 UTC 2016


    Date: Monday, November 21, 2016 @ 06:23:47
  Author: remy
Revision: 281688

upgpkg: texlive-core 2016.42515-2

Remove any calls to mktexlsr and fmtutil from install script.
Only install fmtutil.cnf stub as it is autogenerated.

Modified:
  texlive-core/trunk/PKGBUILD
  texlive-core/trunk/texlive.install

-----------------+
 PKGBUILD        |   11 ++++-----
 texlive.install |   64 +++++-------------------------------------------------
 2 files changed, 11 insertions(+), 64 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-21 03:35:09 UTC (rev 281687)
+++ PKGBUILD	2016-11-21 06:23:47 UTC (rev 281688)
@@ -4,7 +4,7 @@
 pkgname=texlive-core
 pkgver=2016.42515
 _revnr=${pkgver#2016.}
-pkgrel=1
+pkgrel=2
 pkgdesc="TeX Live core distribution"
 license=('GPL')
 arch=(any)
@@ -96,9 +96,6 @@
    # Remove manpages (already in texlive-bin).
    rm -rf "$pkgdir"/usr/share/texmf-dist/doc/man
 
-   ## remove aleph from fmtutil.cnf
-   sed -i -e '/aleph/d' "$pkgdir"/usr/share/texmf-dist/web2c/fmtutil.cnf
-
    # copy config files to $TEXMFCONFIG tree
    cp -a "$pkgdir"/usr/share/texmf-dist/chktex/chktexrc \
      	"$pkgdir"/etc/texmf/chktex/
@@ -106,8 +103,8 @@
    	  "$pkgdir"/etc/texmf/web2c/
    cp -a "$pkgdir"/usr/share/texmf-dist/web2c/updmap-hdr.cfg \
    	  "$pkgdir"/etc/texmf/web2c/
-   cp -a "$pkgdir"/usr/share/texmf-dist/web2c/fmtutil.cnf \
-   	  "$pkgdir"/etc/texmf/web2c/
+   cp -a "$pkgdir"/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf \
+   	  "$pkgdir"/etc/texmf/web2c/fmtutil.cnf
    cp -a "$pkgdir"/usr/share/texmf-dist/dvips/config/config.ps \
    	  "$pkgdir"/etc/texmf/dvips/config/
    cp -a "$pkgdir"/usr/share/texmf-dist/dvipdfmx/dvipdfmx.cfg \
@@ -154,6 +151,8 @@
    
    # remove upstream updmap.cfg: it contains too many maps.
    rm "${pkgdir}/usr/share/texmf-dist/web2c/updmap.cfg"
+   # remove upstream fmtutil.cnf: it will be autogenerated
+   rm "${pkgdir}/usr/share/texmf-dist/web2c/fmtutil.cnf"
  
    # more cleanup
    rm -rf $pkgdir/usr/share/texmf-dist/scripts/context/stubs/mswin/

Modified: texlive.install
===================================================================
--- texlive.install	2016-11-21 03:35:09 UTC (rev 281687)
+++ texlive.install	2016-11-21 06:23:47 UTC (rev 281688)
@@ -1,64 +1,12 @@
-PKGNAME="texlive-core"
-UPDMAP="etc/texmf/web2c/updmap.cfg"
-UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg"
-SYNCWITHTREES=''
-
-MAPFILE="var/lib/texmf/arch/installedpkgs/$PKGNAME.maps"
-
 post_install() {
- echo    ">>> texlive: regenerating updmap.cfg (custom additions should go"
-  echo    "             into /etc/texmf/web2c/updmap-local.cfg"
-  cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP
-  cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP
-  [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP
-  echo    ">>> texlive: updating the filename database..."
-  usr/bin/mktexlsr
-  (cd etc/texmf && ../../bin/mtxrun --generate >/dev/null)
-  # We need to remove directory "." from luatex cache to avoid absurd
-  # behaviour.
-  for item in var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
-    grep -F '["root"]="."' "$item" >/dev/null && rm -f "$item" "${item%.lua}.luc"
-  done
-  echo    ">>> texlive: updating the fontmap files with updmap..."
-  usr/bin/updmap-sys --quiet --nohash
-  echo    " done." 
-  echo -n   "creating all formats..."
-  usr/bin/fmtutil-sys --all 1>/dev/null
-  echo      " done." 
-  echo      " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
-  echo    "NB: To setup ConTeXt and the lua(la)tex font db,"
-  echo    "    see http://wiki.archlinux.org/index.php/TeX_Live"
+    echo ">>> updmap custom entries should go into /etc/texmf/web2c/updmap-local.cfg"
+    echo ">>> fmtutil custom entries should go into /etc/texmf/web2c/fmtutil-local.cnf"
+    echo "NB: To setup ConTeXt and the lua(la)tex font db,"
+    echo "    see http://wiki.archlinux.org/index.php/TeX_Live"
 }
 
 post_upgrade() {
-  echo    ">>> texlive: regenerating updmap.cfg (custom additions should go"
-  echo    "             into /etc/texmf/web2c/updmap-local.cfg"
-  cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP
-  cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP
-  [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP
-  echo    ">>> texlive: updating the filename database..."
-  usr/bin/mktexlsr
- (cd usr/share/texmf-dist && ../../bin/mtxrun --generate >/dev/null)
-   # We need to remove directory "." from luatex cache to avoid absurd
-  # behaviour.
-  for item in var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
-    grep -F '["root"]="."' "$item" >/dev/null && rm -f "$item" "${item%.lua}.luc"
-  done
-  echo    ">>> texlive: updating the fontmap files with updmap..."
-  usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES
-  echo    " done." 
-  echo    ">>> texlive: recreating all formats..."
-  usr/bin/fmtutil-sys --all 1>/dev/null
-  echo      " done." 
-  echo      " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
-  echo    "NB: To setup ConTeXt and the lua(la)tex font db,"
-  echo    "    see http://wiki.archlinux.org/index.php/TeX_Live"
-  if [[ "$2" == 200* ]]; then
-    echo      "Important note. Some directories have moved:"
-    echo      " \$TEXMFSYSVAR    is now /var/lib/texmf (previously /usr/share/texmf-var)"
-    echo      " \$TEXMFSYSCONFIG is now /etc/texmf     (previously /usr/share/texmf-config)"
-    echo      "Please move and update the config files you had modified and delete the rest."
-    echo      "(Note however that updmap.cfg has been automatically copied and updated.)"
-  fi
+    echo ">>> updmap custom entries should go into /etc/texmf/web2c/updmap-local.cfg"
+    echo ">>> fmtutil custom entries should go into /etc/texmf/web2c/fmtutil-local.cnf"
 }
 



More information about the arch-commits mailing list