Mail archive
alpine-aports

[alpine-aports] [PATCH 2/2] testing/texlive: plain LaTeX tools, trigger and texmf-dist

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Fri, 15 Dec 2017 16:36:24 +0100

 - Added trigger to recreate *everything* on changes in /usr/share/texmf-dist.
   (This will skip formats/fonts/... not installed and report a warning/error
   on every missing font/format/... Nontheless, this trigger brings texlive
   in a useable state
 - Added dependency on texmf-dist, so a fully working texlive will be obtained
 - Added package providing tools required for a plain LaTeX workflow (not
   using pdflatex/xetex/luatex/...), like dvips. Some conferences and publishers
   still require old plain LaTeX workflow :-(
---
 testing/texlive/APKBUILD        | 28 +++++++++++++++++++---------
 testing/texlive/texlive.trigger |  4 ++++
 2 files changed, 23 insertions(+), 9 deletions(-)
 create mode 100644 testing/texlive/texlive.trigger
diff --git a/testing/texlive/APKBUILD b/testing/texlive/APKBUILD
index cb5f837f3e..5ffecee249 100644
--- a/testing/texlive/APKBUILD
+++ b/testing/texlive/APKBUILD
_at_@ -1,5 +1,5 @@
 # Contributor: Isaac Dunham <ibid.ag_at_gmail.com>
-# Maintainer:
+# Maintainer: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
 pkgname=texlive
 pkgver=20170524
 pkgrel=2
_at_@ -7,15 +7,16 @@ pkgdesc="Comprehensive TeX document production system"
 url="http://tug.org/texlive/"
 arch="all"
 license="GPL"
-depends="perl"
+depends="perl texmf-dist"
 depends_dev=""
 makedepends="freetype-dev libpng-dev poppler-dev icu-dev harfbuzz-dev
 	cairo-dev pixman-dev zziplib-dev libpaper-dev graphite2-dev
 	libxmu-dev fontconfig-dev libxaw-dev motif-dev"
 install=""
-subpackages="$pkgname-dev $pkgname-doc xdvik:xdvi $pkgname-xetex:xetex $pkgname-luatex:lua $pkgname-full:meta"
+subpackages="$pkgname-dev $pkgname-doc xdvik:xdvi $pkgname-xetex:xetex $pkgname-luatex:lua $pkgname-plaintools:plaintools $pkgname-full:meta"
 source="ftp://ftp.tug.org/texlive/historic/${pkgver:0:4}/texlive-$pkgver-source.tar.xz"
 builddir="$srcdir"/texlive-${pkgver}-source
+triggers="$pkgname.trigger=/usr/share/texmf-dist"
 
 _luatex="dvilualatex dviluatex lualollipop"
 _pdftex="amstex cslatex csplain eplain etex jadetex latex lollipop mex
_at_@ -55,17 +56,17 @@ build() {
 		--disable-detex \
 		--disable-dialog \
 		--disable-dvi2tty \
-		--disable-dvipng \
-		--disable-dvipsk \
+		--enable-dvipng \
+		--enable-dvipsk \
 		--disable-dvisvgm \
 		--disable-largefile \
 		--disable-lcdf-typetools \
 		--disable-multiplatform \
 		--disable-native-texlive-build \
 		--disable-pdfopen \
-		--disable-ps2eps \
+		--enable-ps2eps \
 		--disable-ps2pkm \
-		--disable-psutils \
+		--enable-psutils \
 		--disable-t1utils \
 		--disable-tex4htk \
 		--disable-ttf2pk2 \
_at_@ -95,7 +96,6 @@ package() {
 	cd "$builddir"/build
 
 	make DESTDIR="$pkgdir" install
-
 	cp -rf ../texk/tests/TeXLive \
 		"$pkgdir"/usr/share/texmf-dist/scripts/texlive
 
_at_@ -126,7 +126,7 @@ xetex() {
 
 meta() {
 	pkgdesc="A complete TeX distribution"
-	depends="$pkgname $pkgname-doc $pkgname-luatex $pkgname-xetex xdvik"
+	depends="$pkgname $pkgname-doc $pkgname-luatex $pkgname-xetex xdvik $pkgname-plaintools texmf-dist-full"
 
 	mkdir -p "$subpkgdir"
 }
_at_@ -181,4 +181,14 @@ xdvi() {
 	mv "$pkgdir"/usr/share/texmf-dist/xdvi usr/share/texmf-dist/
 }
 
+plaintools() {
+	pkgdesc="Additional tools useful for a plain LaTeX (!= pdflatex) workflow"
+	depends="$pkgname"
+
+	install -d -m 0755 "$subpkgdir"/usr/bin
+	for tool in afm2tfm bbox dvigif dvipng dvips epsffit extractres includeres ps2eps psbook psjoin psnup psresize psselect pstops; do
+		mv "${pkgdir}/usr/bin/${tool}" "${subpkgdir}/usr/bin/"
+	done
+}
+
 sha512sums="18c18940992ab94ce22e22ccd4ad798253ea14ac2ab296a10ea5e9a8da9f33989f2e2641b42b564d1d5fb53bd371da3e68726b676d706b469016ad146cd19daa  texlive-20170524-source.tar.xz"
diff --git a/testing/texlive/texlive.trigger b/testing/texlive/texlive.trigger
new file mode 100644
index 0000000000..d549354929
--- /dev/null
+++ b/testing/texlive/texlive.trigger
_at_@ -0,0 +1,4 @@
+#!/bin/sh
+texhash
+fmtutil-sys --all
+exit 0
-- 
2.15.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Dec 15 2017 - 16:36:24 GMT