Mail archive
alpine-aports

[alpine-aports] [PATCH] community/texlive: Added trigger for texmf-dist and subpkg for dvi tools

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Fri, 2 Mar 2018 19:57:37 +0100

 texlive.trigger: Recreate all formats on changes in /usr/share/texmf-dist
 - Current approach blindly tries to recreate everything
 - For each missing font/formt/... this will fail. However, installed
   fonts and formats are created successfully. While being ugly, this
   approach seem to work fine

Dependencies:
 - Added dependency to pkg texmf-dist to texlive, as texlive is unusable
   without
 - Added dependency to pkg texmf-dist-full to texlive-full, so a full
   texlive distribution and not only the texlive tools is installed.
   *BEWARE*: This requires the patch to texmf-dist to be accepted!

texlive-dvi:
 - Enabled some tools (especially dvips) required for a dvi based
   workflow and moved the new tools to texlive-dvi. (Maybe some other
   dvi-related tools fit there better, too?)
 - A few publishers and conferences required this workflow, including
   some high level conferences. Thus, researchers depend on these tools
---
 community/texlive/APKBUILD        | 26 +++++++++++++++++++-------
 community/texlive/texlive.trigger |  4 ++++
 2 files changed, 23 insertions(+), 7 deletions(-)
 create mode 100644 community/texlive/texlive.trigger
diff --git a/community/texlive/APKBUILD b/community/texlive/APKBUILD
index ba7a9e9daf..c6340802bc 100644
--- a/community/texlive/APKBUILD
+++ b/community/texlive/APKBUILD
_at_@ -7,13 +7,14 @@ 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"
+triggers="$pkgname.trigger=/usr/share/texmf-dist"
+subpackages="$pkgname-dev $pkgname-doc xdvik:xdvi $pkgname-xetex:xetex $pkgname-luatex:lua $pkgname-dvi:dvi $pkgname-full:meta"
 source="ftp://ftp.tug.org/texlive/historic/${pkgver:0:4}/texlive-$pkgver-source.tar.xz"
 builddir="$srcdir"/texlive-${pkgver}-source
 
_at_@ -22,6 +23,7 @@ _pdftex="amstex cslatex csplain eplain etex jadetex latex lollipop mex
 	mllatex mltex pdfetex pdfcslatex pdfcsplain pdfjadetex pdflatex
 	pdfmex pdfxmltex texsis utf8mex xmltex"
 _xetex="xelatex xelollipop"
+_dvi="afm2tfm bbox dvigif dvipng dvips epsffit extractres includeres ps2eps psbook psjoin psnup psresize psselect pstops"
 
 build() {
 	cd "$builddir"
_at_@ -49,23 +51,23 @@ build() {
 		--enable-tektronixwin \
 		--enable-unitermwin \
 		--enable-xetex \
+		--enable-dvipng \
+		--enable-dvipsk \
+		--enable-ps2eps \
+		--enable-psutils \
 		--disable-bibtex-x \
 		--disable-chktex \
 		--disable-cjkutils \
 		--disable-detex \
 		--disable-dialog \
 		--disable-dvi2tty \
-		--disable-dvipng \
-		--disable-dvipsk \
 		--disable-dvisvgm \
 		--disable-largefile \
 		--disable-lcdf-typetools \
 		--disable-multiplatform \
 		--disable-native-texlive-build \
 		--disable-pdfopen \
-		--disable-ps2eps \
 		--disable-ps2pkm \
-		--disable-psutils \
 		--disable-t1utils \
 		--disable-tex4htk \
 		--disable-ttf2pk2 \
_at_@ -126,11 +128,21 @@ 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-dvi texmf-dist-full"
 
 	mkdir -p "$subpkgdir"
 }
 
+dvi() {
+	pkgdesc="Tools for dvi based workflow (e.g. dvips)"
+	depends="$pkgname"
+
+	install -d -m 0755 "$subpkgdir"/usr/bin
+		for tool in $_dvi; do
+		mv "${pkgdir}/usr/bin/${tool}" "${subpkgdir}/usr/bin/"
+	done
+}
+
 lua() {
 	pkgdesc="LuaTeX is an extended version of pdfTeX, scriptable in Lua"
 	depends="bash $pkgname"  # lua2dox_filter is a bash script
diff --git a/community/texlive/texlive.trigger b/community/texlive/texlive.trigger
new file mode 100644
index 0000000000..d549354929
--- /dev/null
+++ b/community/texlive/texlive.trigger
_at_@ -0,0 +1,4 @@
+#!/bin/sh
+texhash
+fmtutil-sys --all
+exit 0
-- 
2.16.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Mar 02 2018 - 19:57:37 GMT