aboutsummaryrefslogtreecommitdiffstats
path: root/community/texlive
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2018-03-02 19:57:37 +0100
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-06 18:54:28 +0000
commite7b7f0b4fc4b9a7415e36a571b260372f0173d96 (patch)
tree9c3eeabe2803e22c5dfb2e2fc3a87f288e00d76d /community/texlive
parentc841e21fce76e6bd4e5675155b97c31c3c4a1aab (diff)
downloadaports-e7b7f0b4fc4b9a7415e36a571b260372f0173d96.tar.bz2
aports-e7b7f0b4fc4b9a7415e36a571b260372f0173d96.tar.xz
community/texlive: Added trigger for texmf-dist and subpkg for dvi tools
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
Diffstat (limited to 'community/texlive')
-rw-r--r--community/texlive/APKBUILD26
-rw-r--r--community/texlive/texlive.trigger4
2 files changed, 23 insertions, 7 deletions
diff --git a/community/texlive/APKBUILD b/community/texlive/APKBUILD
index ba7a9e9daf..c6340802bc 100644
--- a/community/texlive/APKBUILD
+++ b/community/texlive/APKBUILD
@@ -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
@@ -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"
@@ -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 \
@@ -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
@@ -0,0 +1,4 @@
+#!/bin/sh
+texhash
+fmtutil-sys --all
+exit 0