diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-08-06 03:00:27 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-08-06 03:00:27 -0300 |
commit | aaf0573d5ee85c5a83f74f17659a192bfe1f5455 (patch) | |
tree | 1ddc12b16301c92f5b3ec6fc8fd3509407130c79 /libre/texlive-bin | |
parent | 97baef09944acb124ca7ddc5fb40a609b6c1a49f (diff) | |
download | abslibre-aaf0573d5ee85c5a83f74f17659a192bfe1f5455.tar.gz abslibre-aaf0573d5ee85c5a83f74f17659a192bfe1f5455.tar.bz2 abslibre-aaf0573d5ee85c5a83f74f17659a192bfe1f5455.zip |
texlive-bin-2016.41290-4.parabola1: updating version
* poppler 0.46.0 rebuild
* define pacman hooks for mktexlsr and updmap
Diffstat (limited to 'libre/texlive-bin')
-rw-r--r-- | libre/texlive-bin/PKGBUILD | 68 | ||||
-rw-r--r-- | libre/texlive-bin/mktexlsr.hook | 15 | ||||
-rw-r--r-- | libre/texlive-bin/mktexlsr.script | 13 | ||||
-rw-r--r-- | libre/texlive-bin/texlive-updmap.hook | 12 | ||||
-rw-r--r-- | libre/texlive-bin/texlive-updmap.script | 17 | ||||
-rw-r--r-- | libre/texlive-bin/texlive.install | 2 |
6 files changed, 103 insertions, 24 deletions
diff --git a/libre/texlive-bin/PKGBUILD b/libre/texlive-bin/PKGBUILD index 7ca82ffa0..984a43bdc 100644 --- a/libre/texlive-bin/PKGBUILD +++ b/libre/texlive-bin/PKGBUILD @@ -1,38 +1,36 @@ -# $Id: PKGBUILD 267050 2016-05-06 20:41:10Z arojas $ +# $Id: PKGBUILD 272795 2016-08-01 23:01:50Z remy $ # Maintainer (Arch): Rémy Oudompheng <remy@archlinux.org> # Contributor (Arch): francois <francois.archlinux.org> # Maintainer: Michał Masłowski <mtjm@mtjm.eu> # Contributor: André Silva <emulatorman@parabola.nu> pkgname=texlive-bin -pkgver=2015.37497 -pkgrel=12.parabola1 +pkgver=2016.41290 +pkgrel=4.parabola1 license=('GPL') arch=('i686' 'x86_64' 'armv7h') -makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler=0.42.0' +makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler=0.46.0' 'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2' 'icu=57.1' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper' 'perl' 'clisp' 'ffcall') url='http://tug.org/texlive/' source=('fix-fontforge-encoding.patch' "http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-source-${pkgver}.tar.xz" + "mktexlsr.hook" + "mktexlsr.script" + "texlive-updmap.hook" + "texlive-updmap.script" ) md5sums=('bfb9716aa00c86c08cd31e5b32edeb98' - '20be644511704910151560a4d99f6995') - -prepare() { - cd source - true -} + '7303361f2d441eb5c962a996fd77e8fa' + '7bc9cef52d3b0c15d2364b7d8658faa6' + 'b8005a998186d3846df357ef0f4b4560' + 'c18cbbd000aac60813b1695aa058964f' + '06034157badeeefe9982d7b29e7f5b51') build() { cd "$srcdir" - if [ "${CARCH}" != "i686" ]; then - export CFLAGS="${CFLAGS} -fPIC" - export CXXFLAGS="${CXXFLAGS} -fPIC" - fi - # this patch removes spurious error message with locale "xx_YY.utf8" #patch -Np0 -i fix-fontforge-encoding.patch # t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251) @@ -99,7 +97,7 @@ build() { package() { pkgdesc="TeX Live binaries, without biber binaries (Parabola rebranded)" - depends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler=0.42.0' + depends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler=0.46.0' 'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2' 'icu=57.1' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper' 'libsynctex') @@ -125,7 +123,6 @@ package() { make DESTDIR="${pkgdir}" texmf="$pkgdir"/usr/share/texmf install rm -rf "${pkgdir}"/usr/{texmf,share/texmf-dist} - ## symlink engines by hand. texlinks has moved to texlive-core... mkdir -p ${pkgdir}/usr/bin ln -s eptex ${pkgdir}/usr/bin/platex @@ -133,7 +130,6 @@ package() { ln -s luatex ${pkgdir}/usr/bin/dvilualatex ln -s luatex ${pkgdir}/usr/bin/dviluatex ln -s luatex ${pkgdir}/usr/bin/lualatex - ln -s luatex ${pkgdir}/usr/bin/lualollipop ln -s pdftex ${pkgdir}/usr/bin/amstex ln -s pdftex ${pkgdir}/usr/bin/cslatex ln -s pdftex ${pkgdir}/usr/bin/csplain @@ -141,7 +137,7 @@ package() { ln -s pdftex ${pkgdir}/usr/bin/etex ln -s pdftex ${pkgdir}/usr/bin/jadetex ln -s pdftex ${pkgdir}/usr/bin/latex - ln -s pdftex ${pkgdir}/usr/bin/lollipop + ln -s tex ${pkgdir}/usr/bin/lollipop ln -s pdftex ${pkgdir}/usr/bin/mex ln -s pdftex ${pkgdir}/usr/bin/mllatex ln -s pdftex ${pkgdir}/usr/bin/mltex @@ -156,7 +152,12 @@ package() { ln -s pdftex ${pkgdir}/usr/bin/utf8mex ln -s pdftex ${pkgdir}/usr/bin/xmltex ln -s xetex ${pkgdir}/usr/bin/xelatex - ln -s xetex ${pkgdir}/usr/bin/xelollipop + + ## 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 -m755 ${srcdir}/mktexlsr.script "$pkgdir/usr/share/libalpm/scripts/mktexlsr" + install -D -m755 ${srcdir}/texlive-updmap.script "$pkgdir/usr/share/libalpm/scripts/texlive-updmap" ############################################################# # remove dangling symlinks @@ -182,6 +183,7 @@ arlatex autoinst bundledoc checkcites +checklistings chkweb cjk-gs-integrate context @@ -223,6 +225,7 @@ ltximg lua2dox_filter luaotfload-tool luatools +make4ht match_parens mf2pt1 mkjobtexmf @@ -237,6 +240,7 @@ pdf270 pdf90 pdfatfi pdfbook +pdfbook2 pdfcrop pdfflip pdfjam @@ -246,6 +250,7 @@ pdfjam-slides6up pdfjoin pdfnup pdfpun +pdfxup pfarrei pkfix pkfix-helper @@ -258,7 +263,9 @@ repstopdf rpdfcrop rungs simpdftex +srcredact sty2dtx +tex4ebook texconfig texconfig-dialog texconfig-sys @@ -285,6 +292,7 @@ xindy " _games_scripts="rubikrotation" _htmlxml_scripts="ht htcontext htlatex htmex httex httexi htxelatex htxetex mk4ht" + _humanities_scripts="diadia" _langcyrillic_scripts="rubibtex rumakeindex" _langextra_scripts="ebong" _langgreek_scripts="mkgrkindex" @@ -297,7 +305,9 @@ kanji-config-updmap-sys _latexextra_scripts=" authorindex exceltex +makedtx makeglossaries +makeglossaries-lite pdfannotextractor perltex ps4pdf @@ -307,14 +317,23 @@ vpe yplan" _music_scripts="lily-glyph-commands lily-image-commands lily-rebuild-pdfs m-tx musixtex musixflx pmx2pdf pmxchords" - _pictures_scripts="cachepic epspdf epspdftk fig4latex getmapdl mathspic mkpic" + _pictures_scripts=" +cachepic +epspdf +epspdftk +fig4latex +getmapdl +mathspic +mkpic +pn2pdf" _pstricks_scripts="pedigree pst2pdf" _science_scripts="pygmentex ulqda" for s in \ ${_bibtexextra_scripts} \ - ${_core_scripts} \ + ${_core_scripts} \ ${_games_scripts} \ - ${_htmlxml_scripts} \ + ${_htmlxml_scripts} \ + ${_humanities_scripts} \ ${_langcyrillic_scripts} \ ${_langextra_scripts} \ ${_langgreek_scripts} \ @@ -331,6 +350,9 @@ m-tx musixtex musixflx pmx2pdf pmxchords" ################################################################### # remove libsynctex + rm -f "$pkgdir"/usr/include/synctex/* rm -f "$pkgdir"/usr/lib/libsynctex.* + rm -f "$pkgdir"/usr/lib/pkgconfig/synctex.pc + rm -f "$pkgdir"/usr/share/man/man*/synctex.* } diff --git a/libre/texlive-bin/mktexlsr.hook b/libre/texlive-bin/mktexlsr.hook new file mode 100644 index 000000000..5ce4cc929 --- /dev/null +++ b/libre/texlive-bin/mktexlsr.hook @@ -0,0 +1,15 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = etc/texmf/* +Target = usr/share/texmf/* +Target = usr/share/texmf-dist/* +Target = var/lib/texmf/* + +[Action] +Description = Updating TeXLive filename database... +When = PostTransaction +Exec = /usr/share/libalpm/scripts/mktexlsr + diff --git a/libre/texlive-bin/mktexlsr.script b/libre/texlive-bin/mktexlsr.script new file mode 100644 index 000000000..e0c98f349 --- /dev/null +++ b/libre/texlive-bin/mktexlsr.script @@ -0,0 +1,13 @@ +#!/bin/bash + +/usr/bin/mktexlsr +echo ">>> Updating LuaTeX filename database..." +(cd /etc/texmf && /usr/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 + if grep -F '["root"]="."' "$item" >/dev/null; then + rm -vf "$item" "${item%.lua}.luc" + fi +done + diff --git a/libre/texlive-bin/texlive-updmap.hook b/libre/texlive-bin/texlive-updmap.hook new file mode 100644 index 000000000..7b8798a0c --- /dev/null +++ b/libre/texlive-bin/texlive-updmap.hook @@ -0,0 +1,12 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = var/lib/texmf/arch/installedpkgs/*.maps + +[Action] +Description = Updating TeXLive font maps... +When = PostTransaction +Exec = /usr/share/libalpm/scripts/texlive-updmap + diff --git a/libre/texlive-bin/texlive-updmap.script b/libre/texlive-bin/texlive-updmap.script new file mode 100644 index 000000000..88be8e460 --- /dev/null +++ b/libre/texlive-bin/texlive-updmap.script @@ -0,0 +1,17 @@ +#!/bin/bash + +UPDMAP="etc/texmf/web2c/updmap.cfg" +UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg" + +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 +if [[ -f "$UPDMAPLOCAL" ]]; then + cat "$UPDMAPLOCAL" >> $UPDMAP +fi + +echo ">>> texlive: updating the fontmap files with updmap..." +/usr/bin/updmap-sys --quiet --nohash +echo " done." + diff --git a/libre/texlive-bin/texlive.install b/libre/texlive-bin/texlive.install index f84144388..22d2ad1fb 100644 --- a/libre/texlive-bin/texlive.install +++ b/libre/texlive-bin/texlive.install @@ -20,7 +20,7 @@ post_upgrade() { _pacout=$(pacman -Q texlive-core 2>/dev/null) read corename corever <<< ${_pacout} # only recreate formats if texlive-core has right version - if [[ ${corever} == 2014* ]]; then + if [[ ${corever} == 2016* ]]; then if [[ -f usr/bin/fmtutil-sys ]]; then echo -n "recreating all formats..." usr/bin/fmtutil-sys --all 1>/dev/null |