[arch-commits] Commit in texlive-bin/trunk (6 files)
Rémy Oudompheng
remy at archlinux.org
Mon Nov 21 06:27:04 UTC 2016
Date: Monday, November 21, 2016 @ 06:27:04
Author: remy
Revision: 281690
upgpkg: texlive-bin 2016.41290-8
Add hook for format regeneration
Added:
texlive-bin/trunk/texlive-fmtutil.hook
texlive-bin/trunk/texlive-fmtutil.script
Modified:
texlive-bin/trunk/PKGBUILD
texlive-bin/trunk/mktexlsr.hook
texlive-bin/trunk/texlive-updmap.hook
Deleted:
texlive-bin/trunk/texlive.install
------------------------+
PKGBUILD | 16 ++++++++++------
mktexlsr.hook | 1 +
texlive-fmtutil.hook | 12 ++++++++++++
texlive-fmtutil.script | 19 +++++++++++++++++++
texlive-updmap.hook | 1 +
texlive.install | 31 -------------------------------
6 files changed, 43 insertions(+), 37 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-21 06:23:51 UTC (rev 281689)
+++ PKGBUILD 2016-11-21 06:27:04 UTC (rev 281690)
@@ -4,7 +4,7 @@
pkgname=('texlive-bin' 'libsynctex')
pkgver=2016.41290
-pkgrel=7
+pkgrel=8
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
@@ -17,12 +17,15 @@
"mktexlsr.script"
"texlive-updmap.hook"
"texlive-updmap.script"
-)
+ "texlive-fmtutil.hook"
+ "texlive-fmtutil.script")
md5sums=('7303361f2d441eb5c962a996fd77e8fa'
- '7bc9cef52d3b0c15d2364b7d8658faa6'
+ 'a4e54f0cb05f401728b2b230fd63b300'
'2bbbef810687f4b2804a4b8cb91ce02f'
- 'c18cbbd000aac60813b1695aa058964f'
- 'c64d77b5111a26b9995263b49df4937c')
+ '0ecdbd88cae12dbeb5d0d63127c5fc38'
+ 'c64d77b5111a26b9995263b49df4937c'
+ '582af708588fd09eeaa0f08111e60091'
+ '3f05fa08f84b94fcb3a76be271116a95')
build() {
cd "$srcdir"
@@ -106,7 +109,6 @@
provides=('lcdf-typetools' 'kpathsea' 'xindy')
optdepends=('ed: for texconfig'
'biber: for bibliography processing')
- install="texlive.install"
options=('!strip')
cd "$srcdir"
@@ -157,8 +159,10 @@
## install pacman hooks
install -D -m644 ${srcdir}/mktexlsr.hook "$pkgdir/usr/share/libalpm/hooks/mktexlsr.hook"
install -D -m644 ${srcdir}/texlive-updmap.hook "$pkgdir/usr/share/libalpm/hooks/texlive-updmap.hook"
+ install -D -m644 ${srcdir}/texlive-fmtutil.hook "$pkgdir/usr/share/libalpm/hooks/texlive-fmtutil.hook"
install -D -m755 ${srcdir}/mktexlsr.script "$pkgdir/usr/share/libalpm/scripts/mktexlsr"
install -D -m755 ${srcdir}/texlive-updmap.script "$pkgdir/usr/share/libalpm/scripts/texlive-updmap"
+ install -D -m755 ${srcdir}/texlive-fmtutil.script "$pkgdir/usr/share/libalpm/scripts/texlive-fmtutil"
#############################################################
# remove dangling symlinks
Modified: mktexlsr.hook
===================================================================
--- mktexlsr.hook 2016-11-21 06:23:51 UTC (rev 281689)
+++ mktexlsr.hook 2016-11-21 06:27:04 UTC (rev 281690)
@@ -3,6 +3,7 @@
Operation = Install
Operation = Upgrade
Operation = Remove
+Target = usr/bin/mktexlsr
Target = etc/texmf/*
Target = usr/share/texmf/*
Target = usr/share/texmf-dist/*
Added: texlive-fmtutil.hook
===================================================================
--- texlive-fmtutil.hook (rev 0)
+++ texlive-fmtutil.hook 2016-11-21 06:27:04 UTC (rev 281690)
@@ -0,0 +1,12 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = var/lib/texmf/arch/installedpkgs/*.fmts
+
+[Action]
+Description = Updating TeXLive format files...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/texlive-fmtutil
+
Added: texlive-fmtutil.script
===================================================================
--- texlive-fmtutil.script (rev 0)
+++ texlive-fmtutil.script 2016-11-21 06:27:04 UTC (rev 281690)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+FMTUTIL="etc/texmf/web2c/fmtutil.cnf"
+FMTUTILLOCAL="etc/texmf/web2c/fmtutil-local.cnf"
+
+cp usr/share/texmf-dist/web2c/fmtutil-hdr.cnf $FMTUTIL
+for file in var/lib/texmf/arch/installedpkgs/*.fmts; do
+ echo >> $FMTUTIL
+ echo "# $file" >> $FMTUTIL
+ cat $file >> $FMTUTIL
+done
+if [[ -f "$FMTUTILLOCAL" ]]; then
+ echo >> $FMTUTIL
+ echo "# $FMTUTILLOCAL" >> $FMTUTIL
+ cat "$FMTUTILLOCAL" >> $FMTUTIL
+fi
+
+/usr/bin/fmtutil-sys --all --cnffile $FMTUTIL > /dev/null
+
Modified: texlive-updmap.hook
===================================================================
--- texlive-updmap.hook 2016-11-21 06:23:51 UTC (rev 281689)
+++ texlive-updmap.hook 2016-11-21 06:27:04 UTC (rev 281690)
@@ -3,6 +3,7 @@
Operation = Install
Operation = Upgrade
Operation = Remove
+Target = usr/bin/tex
Target = var/lib/texmf/arch/installedpkgs/*.maps
[Action]
Deleted: texlive.install
===================================================================
--- texlive.install 2016-11-21 06:23:51 UTC (rev 281689)
+++ texlive.install 2016-11-21 06:27:04 UTC (rev 281690)
@@ -1,31 +0,0 @@
-post_install() {
- if [[ -f usr/bin/mktexlsr ]]; then
- echo ">>> texlive: updating the filename database..."
- usr/bin/mktexlsr
- fi
- if [[ -f usr/bin/fmtutil-sys ]]; then
- 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)"
- fi
-}
-
-post_upgrade() {
- local corename corever _pacout
- if [[ -f usr/bin/mktexlsr ]]; then
- echo ">>> texlive: updating the filename database..."
- usr/bin/mktexlsr
- fi
- _pacout=$(pacman -Q texlive-core 2>/dev/null)
- read corename corever <<< ${_pacout}
- # only recreate formats if texlive-core has right version
- if [[ ${corever} == 2016* ]]; then
- if [[ -f usr/bin/fmtutil-sys ]]; then
- echo -n "recreating all formats..."
- usr/bin/fmtutil-sys --all 1>/dev/null
- echo " done."
- echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
- fi
- fi
-}
More information about the arch-commits
mailing list