Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/texmf-dist: Update and less insane build

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Tue, 12 Dec 2017 23:07:00 +0100

- Updated to current version
- Bundle TeXlive packages as in Arch Linux
- A bit less insane build process
- The trigger script needs fine tuning. (But it succeeds in
  creating a useable texmf distribution.)
---
 testing/texmf-dist/APKBUILD       | 187 +++++++++++++++++++++++++++++++---
 testing/texmf-dist/duplicates.txt | 207 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 378 insertions(+), 16 deletions(-)
 create mode 100644 testing/texmf-dist/duplicates.txt
diff --git a/testing/texmf-dist/APKBUILD b/testing/texmf-dist/APKBUILD
index 593683f409..daf374db8d 100644
--- a/testing/texmf-dist/APKBUILD
+++ b/testing/texmf-dist/APKBUILD
_at_@ -1,19 +1,54 @@
 # Contributor: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
 # Maintainer: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
 pkgname=texmf-dist
-pkgver=2017.44907
-pkgrel=1
+_core=2017.45811
+_bibtexextra=2017.45810
+_fontsextra=2017.45939
+_games=2017.44131
+_humanities=2017.45709
+_latexextra=2017.45733
+_music=2017.45674
+_pictures=2017.45569
+_pstricks=2017.45644
+_publishers=2017.45734
+_science=2017.45707
+pkgver=${_core}
+pkgrel=0
 pkgdesc="TeX Live texmf core distribution"
 url="http://tug.org/texlive/"
 arch="noarch"
 license="GPL"
 depends="texlive"
 depends_dev=""
-makedepends="texlive-full xz"
+makedepends="texlive-full unzip"
 install=""
-subpackages="${pkgname}-most"
-source="${pkgname}-${pkgver}.tar.xz::https://github.com/maribu/${pkgname}/raw/master/${pkgname}-${pkgver}.tar.xz
-	${pkgname}-most-${pkgver}.tar.xz::https://github.com/maribu/${pkgname}/raw/master/${pkgname}-most-${pkgver}.tar.xz"
+subpackages="
+	${pkgname}-most
+	${pkgname}-bibtexextra
+	${pkgname}-fontsextra
+	${pkgname}-games
+	${pkgname}-humanities
+	${pkgname}-latexextra
+	${pkgname}-music
+	${pkgname}-pictures
+	${pkgname}-pstricks
+	${pkgname}-publishers
+	${pkgname}-science
+	"
+source="
+	duplicates.txt
+	https://sources.archlinux.org/other/texlive/texlive-core-${_core}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-bibtexextra-${_bibtexextra}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-fontsextra-${_fontsextra}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-games-${_games}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-humanities-${_humanities}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-latexextra-${_latexextra}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-music-${_music}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-pictures-${_pictures}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-pstricks-${_pstricks}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-publishers-${_publishers}-src.zip
+	https://sources.archlinux.org/other/texlive/texlive-science-${_science}-src.zip
+	"
 options="!check"
 triggers="texmf-dist.trigger=/usr/share/texmf-dist"
 unpack() {
_at_@ -26,18 +61,138 @@ build(){
 }
 	
 package() {
-	mkdir -p "${pkgdir}/usr/share"
-	cd "${pkgdir}/usr/share"
-	tar xJf "${srcdir}/${pkgname}-${pkgver}.tar.xz"
+	mkdir -p "${pkgdir}/usr/share/"
+	mkdir -p "${srcdir}/pkgs-packed"
+	mkdir -p "${srcdir}/pkgs-unpacked"
+	cd "${srcdir}/pkgs-packed"
+	unzip "${srcdir}/texlive-core-${_core}-src.zip" > /dev/null
+	cd "${srcdir}/pkgs-unpacked"
+	find "${srcdir}/pkgs-packed" -name '*.tar.xz' -exec tar -xf {} \;
+	find . -maxdepth 1 -name 'texmf*' -exec mv {} "${pkgdir}/usr/share/" \;
+	find . -type d -mindepth 1 -exec mkdir -p "${pkgdir}/usr/share/texmf-dist/"{} \;
+	find . -type f -exec mv {} "${pkgdir}/usr/share/texmf-dist/"{} \;
+	for file in $(cat "${srcdir}/duplicates.txt"); do
+		rm -f "${pkgdir}/usr/share/texmf-dist/${file}"
+	done
+	rm -rf "${srcdir}/pkgs-packed" "${srcdir}/pkgs-unpacked"
+}
+
+pack_subpkg() {
+	mkdir -p "${subpkgdir}/usr/share/"
+	mkdir -p "${srcdir}/pkgs-packed"
+	mkdir -p "${srcdir}/pkgs-unpacked"
+	cd "${srcdir}/pkgs-packed"
+	unzip "${srcdir}/texlive-${subpkgname#texmf-dist-}-${pkgver}-src.zip" > /dev/null
+	cd "${srcdir}/pkgs-unpacked"
+	find "${srcdir}/pkgs-packed" -name '*.tar.xz' -exec tar -xf {} \;
+	find . -maxdepth 1 -name 'texmf*' -exec mv {} "${subpkgdir}/usr/share/" \;
+	find . -type d -mindepth 1 -exec mkdir -p "${subpkgdir}/usr/share/texmf-dist/"{} \;
+	find . -type f -exec mv {} "${subpkgdir}/usr/share/texmf-dist/"{} \;
+	for file in $(cat "${srcdir}/duplicates.txt"); do
+		rm -f "${subpkgdir}/usr/share/texmf-dist/${file}"
+	done
+	rm -rf "${srcdir}/pkgs-packed" "${srcdir}/pkgs-unpacked"
 }
 
 most() {
-	pkgdesc="TeX Live texmf distribution including most of the TeX Live distribution"
-	depends="${pkgname}"
-	mkdir -p "${subpkgdir}/usr/share"
-	cd "${subpkgdir}/usr/share"
-	tar xJf "${srcdir}/${pkgname}-most-${pkgver}.tar.xz"
+	pkgdesc="TeX Live texmf distribution including most packages"
+	pkgver="2017"
+	pkgrel=0
+	depends="
+		${pkgname}
+		${pkgname}-bibtexextra
+		${pkgname}-fontsextra
+		${pkgname}-games
+		${pkgname}-humanities
+		${pkgname}-latexextra
+		${pkgname}-music
+		${pkgname}-pictures
+		${pkgname}-pstricks
+		${pkgname}-publishers
+		${pkgname}-science
+		"
+	mkdir -p "${subpkgdir}"
+}
+
+bibtexextra() {
+	pkgdesc="TeX Live texmf distribution: Additional BibTeX styles and bibliography DBs"
+	pkgver="${_bibtexextra}"
+	pkgrel=0
+	pack_subpkg
+}
+
+fontsextra() {
+	pkgdesc="TeX Live texmf distribution: Additional fonts"
+	pkgver="${_fontsextra}"
+	pkgrel=0
+	pack_subpkg
+}
+
+games() {
+	pkgdesc="TeX Live texmf distribution: Typesetting board games including chess"
+	pkgver="${_games}"
+	pkgrel=0
+	pack_subpkg
+}
+
+humanities() {
+	pkgdesc="TeX Live texmf distribution: Packages for humanities, law, linguistics, ..."
+	pkgver="${_humanities}"
+	pkgrel=0
+	pack_subpkg
+}
+
+latexextra() {
+	pkgdesc="TeX Live texmf distribution: Add-onpackages for LaTeX"
+	pkgver="${_latexextra}"
+	pkgrel=0
+	pack_subpkg
+}
+
+music() {
+	pkgdesc="TeX Live texmf distribution: Music typesetting packages"
+	pkgver="${_music}"
+	pkgrel=0
+	pack_subpkg
+}
+
+pictures() {
+	pkgdesc="TeX Live texmf distribution: Packages for drawing graphics"
+	pkgver="${_pictures}"
+	pkgrel=0
+	pack_subpkg
+}
+
+pstricks() {
+	pkgdesc="TeX Live texmf distribution: Additional PSTricks packages"
+	pkgver="${_pstricks}"
+	pkgrel=0
+	pack_subpkg
+}
+
+publishers() {
+	pkgdesc="TeX Live texmf distribution: LaTeX packages for specific publishers"
+	pkgver="${_publishers}"
+	pkgrel=0
+	pack_subpkg
+}
+
+science() {
+	pkgdesc="TeX Live texmf distribution: Typesetting for math and sciences"
+	pkgver="${_science}"
+	pkgrel=0
+	pack_subpkg
 }
 
-sha512sums="9d08aa5850f89bd7a1327a0a2e4aef117ea05cc71d074fc95d3cba4494414426124976703b85c5a2d58b4358d74e9f23bd97b5668c6fa872acf4daf9fb92be27  texmf-dist-2017.44907.tar.xz
-c53926b9a9c1092a35cc1d32593ab46828877ab2faf4f582910a62bda7de6f81d9db61b5c508e768c68a80fa7a0c6470b05f3114a8ff98512fe811198230a8cd  texmf-dist-most-2017.44907.tar.xz"
+sha512sums="795df101ccb6708cb197df3785f033140bfe47ff041a375d469826e0d6217775a40e58e7c5a752229d40bb7b3fd36a297617137089752d24b7999d2d17d15339  duplicates.txt
+85823ca890894ea58a118519301ed836000ace5217dcb79cd6f099d0a8e239087beb81aa85bd514a7af9ed1462973f5562d3e07e22f9625ef232330a904efecf  texlive-core-2017.45811-src.zip
+49d8ee283797038b76bdaa0a819e8707fd4b5cd73deea7e6b3e14c0363ba9f708935b13b4251dc9b8ace6b606b9e6927d8674495c22fa857b905e0fb0278e07f  texlive-bibtexextra-2017.45810-src.zip
+d65cfc8917ceef5c899b012a02df2d139bf1b772c2e932edbf121ae6e5f4b0a4e9c0c9e7118f90f394e47bf5d34bb2c51df1375c5504fb61af13cbd0ee0518fb  texlive-fontsextra-2017.45939-src.zip
+829d7fb5330cafeb4615b6c072bfa4f31b825108884b568c57e597ecd7daede01cc3f4de09dfb763a83b4bdc345bba2b59da0f67658414c26b66a7ebee700302  texlive-games-2017.44131-src.zip
+141dad84db77e24bd4ab877f983f343bf8242fe68aa7a5fef1b7bd2653e4d77185e272585a10c2e081b046579a87a148be2c0fa346cf59f8166a3ce35dd56d3e  texlive-humanities-2017.45709-src.zip
+b2b0cbd057b864bea1ce182fdd17153f09a716aa8254ca3ea6cd9b5a426e37631c9844be75f85a0c85f4fa1f340466555359c5a0d58433e752851cecea3afa92  texlive-latexextra-2017.45733-src.zip
+3dcb9375d39615b0c983238d98cb2289f13bd31c6b42eddbfe8c10a2c5710cea33e42171e16534b19abe158c4124a6654d6306db69a0d889520ae9b5fa6c4033  texlive-music-2017.45674-src.zip
+ee73f93bacde12c742eac451923a2749448e122b347c6de0242a027d8a318063e3ee556415895bd7297411188e0ae787123e25ce384b6d193cdb9f0246421cde  texlive-pictures-2017.45569-src.zip
+8ef6902a22ba407b42128b7e4e48a91d592c58abb8324460afb8e02ea12e328f1023b6d1657530cac5be29c6610055e2a7fe4725fe9a55e402e7106bc911f8bd  texlive-pstricks-2017.45644-src.zip
+4168ce44f866b5b7eaf600978887d1431f10ce0c75a406aa11340b70f1b44bbf800a95bd3b313a74921adc8f7b1400af04645d8bdb59f64e5d973ff57c15266e  texlive-publishers-2017.45734-src.zip
+823eb038665f70431da91058ac430ecced6d0f5fda1dde6dc583e55ea35540dafa0fe45ca54ecc17dd8438e34e057e77db0edd60eae22213d07869c7ea89b84f  texlive-science-2017.45707-src.zip"
diff --git a/testing/texmf-dist/duplicates.txt b/testing/texmf-dist/duplicates.txt
new file mode 100644
index 0000000000..ecf87f3478
--- /dev/null
+++ b/testing/texmf-dist/duplicates.txt
_at_@ -0,0 +1,207 @@
+./dvipdfmx/dvipdfmx.cfg
+./dvips/base/texps.pro
+./dvips/base/hps.pro
+./dvips/base/crop.pro
+./dvips/base/color.pro
+./dvips/base/special.pro
+./dvips/base/texc.pro
+./dvips/base/finclude.pro
+./dvips/base/tex.pro
+./dvips/config/config.xdvi
+./dvips/gsftopk/render.ps
+./xdvi/pixmap/toolbar2.xpm
+./xdvi/pixmap/toolbar.xpm
+./xdvi/XDvi
+./web2c/mktexdir.opt
+./web2c/fmtutil.cnf
+./web2c/mktexnam.opt
+./web2c/mktexnam
+./web2c/mktexupd
+./web2c/mktex.opt
+./web2c/mktexdir
+./web2c/texmf.cnf
+./scripts/latex-git-log/latex-git-log
+./scripts/mf2pt1/mf2pt1.pl
+./scripts/urlbst/urlbst
+./scripts/petri-nets/pn2pdf
+./scripts/getmap/getmapdl.lua
+./scripts/epspdf/epspdf.tlu
+./scripts/epspdf/epspdftk.tcl
+./scripts/texdirflatten/texdirflatten
+./scripts/latex2man/latex2man
+./scripts/epstopdf/epstopdf.pl
+./scripts/oberdiek/pdfatfi.pl
+./scripts/sty2dtx/sty2dtx.pl
+./scripts/purifyeps/purifyeps
+./scripts/mathspic/mathspic.pl
+./scripts/typeoutfileinfo/typeoutfileinfo.sh
+./scripts/crossrefware/bbl2bib.pl
+./scripts/crossrefware/bibzbladd.pl
+./scripts/crossrefware/ltx2crossrefxml.pl
+./scripts/crossrefware/bibmradd.pl
+./scripts/crossrefware/bibdoiadd.pl
+./scripts/dtxgen/dtxgen
+./scripts/tex4ebook/tex4ebook
+./scripts/convbkmk/convbkmk.rb
+./scripts/accfonts/vpl2ovp
+./scripts/accfonts/vpl2vpl
+./scripts/accfonts/mkt1font
+./scripts/fontools/afm2afm
+./scripts/fontools/autoinst
+./scripts/fontools/ot2kpx
+./scripts/texfot/texfot.pl
+./scripts/lilyglyphs/lily-rebuild-pdfs.py
+./scripts/lilyglyphs/lily-glyph-commands.py
+./scripts/lilyglyphs/lily-image-commands.py
+./scripts/texosquery/texosquery-jre5.sh
+./scripts/texosquery/texosquery-jre8.sh
+./scripts/texosquery/texosquery.sh
+./scripts/checkcites/checkcites.lua
+./scripts/ulqda/ulqda.pl
+./scripts/pst2pdf/pst2pdf.pl
+./scripts/texdef/texdef.pl
+./scripts/kotex-utils/komkindex.pl
+./scripts/kotex-utils/ttf2kotexfont.pl
+./scripts/kotex-utils/jamo-normalize.pl
+./scripts/ctanupload/ctanupload.pl
+./scripts/ltxfileinfo/ltxfileinfo
+./scripts/fragmaster/fragmaster.pl
+./scripts/dosepsbin/dosepsbin.pl
+./scripts/texlive/kpsewhere.sh
+./scripts/texlive/allcm.sh
+./scripts/texlive/rumakeindex.sh
+./scripts/texlive/dvired.sh
+./scripts/texlive/texlinks.sh
+./scripts/texlive/texconfig-dialog.sh
+./scripts/texlive/dvi2fax.sh
+./scripts/texlive/e2pall.pl
+./scripts/texlive/rungs.tlu
+./scripts/texlive/updmap.pl
+./scripts/texlive/pslatex.sh
+./scripts/texlive/fmtutil-sys.sh
+./scripts/texlive/tlmgr.pl
+./scripts/texlive/rubibtex.sh
+./scripts/texlive/ps2frag.sh
+./scripts/texlive/kpsetool.sh
+./scripts/texlive/updmap-user.sh
+./scripts/texlive/fmtutil.pl
+./scripts/texlive/updmap-sys.sh
+./scripts/texlive/texconfig-sys.sh
+./scripts/texlive/texconfig.sh
+./scripts/texlive/allneeded.sh
+./scripts/texlive/fontinst.sh
+./scripts/texlive/fmtutil-user.sh
+./scripts/texlive/TeXLive/TLConfig.pm
+./scripts/texlive/TeXLive/TLUtils.pm
+./scripts/checklistings/checklistings.sh
+./scripts/glossaries/makeglossaries-lite.lua
+./scripts/glossaries/makeglossaries
+./scripts/ltximg/ltximg.pl
+./scripts/ptex2pdf/ptex2pdf.lua
+./scripts/bundledoc/bundledoc
+./scripts/bundledoc/arlatex
+./scripts/make4ht/make4ht
+./scripts/simpdftex/simpdftex
+./scripts/latex-papersize/latex-papersize.py
+./scripts/ctanify/ctanify
+./scripts/a2ping/a2ping.pl
+./scripts/texcount/texcount.pl
+./scripts/ptex-fontmaps/kanji-config-updmap-sys.sh
+./scripts/ptex-fontmaps/kanji-fontmap-creator.pl
+./scripts/ptex-fontmaps/kanji-config-updmap.pl
+./scripts/ptex-fontmaps/kanji-config-updmap-user.sh
+./scripts/match_parens/match_parens
+./scripts/pdflatexpicscale/pdflatexpicscale.pl
+./scripts/luaotfload/luaotfload-tool.lua
+./scripts/yplan/yplan
+./scripts/latexfileversion/latexfileversion
+./scripts/arara/arara.sh
+./scripts/latex2nemeth/latex2nemeth
+./scripts/pmxchords/pmxchords.lua
+./scripts/splitindex/splitindex.pl
+./scripts/texdoc/texdoc.tlu
+./scripts/exceltex/exceltex
+./scripts/adhocfilelist/adhocfilelist.sh
+./scripts/pythontex/depythontex.py
+./scripts/pythontex/pythontex.py
+./scripts/perltex/perltex.pl
+./scripts/mkjobtexmf/mkjobtexmf.pl
+./scripts/m-tx/m-tx.lua
+./scripts/texloganalyser/texloganalyser
+./scripts/latexmk/latexmk.pl
+./scripts/texdiff/texdiff
+./scripts/multibibliography/multibibliography.pl
+./scripts/context/perl/mptopdf.pl
+./scripts/context/stubs/unix/mtxrun
+./scripts/context/stubs/unix/texmfstart
+./scripts/context/stubs/unix/mtxrunjit
+./scripts/context/stubs/unix/luatools
+./scripts/context/stubs/unix/contextjit
+./scripts/context/stubs/unix/context
+./scripts/context/stubs/unix/texexec
+./scripts/authorindex/authorindex
+./scripts/pdfjam/pdfjam-pocketmod
+./scripts/pdfjam/pdfnup
+./scripts/pdfjam/pdfbook
+./scripts/pdfjam/pdf180
+./scripts/pdfjam/pdfjam-slides6up
+./scripts/pdfjam/pdfflip
+./scripts/pdfjam/pdfjam
+./scripts/pdfjam/pdf90
+./scripts/pdfjam/pdfjoin
+./scripts/pdfjam/pdf270
+./scripts/pdfjam/pdfjam-slides3up
+./scripts/pdfjam/pdfpun
+./scripts/fig4latex/fig4latex
+./scripts/svn-multi/svn-multi.pl
+./scripts/pst-pdf/ps4pdf
+./scripts/latexpand/latexpand
+./scripts/diadia/diadia.lua
+./scripts/pdfbook2/pdfbook2
+./scripts/latexdiff/latexdiff-vc.pl
+./scripts/latexdiff/latexdiff.pl
+./scripts/latexdiff/latexrevise.pl
+./scripts/cjk-gs-integrate/cjk-gs-integrate.pl
+./scripts/bibexport/bibexport.sh
+./scripts/pedigree-perl/pedigree.pl
+./scripts/mkgrkindex/mkgrkindex
+./scripts/pygmentex/pygmentex.py
+./scripts/mkpic/mkpic
+./scripts/pax/pdfannotextractor.pl
+./scripts/listings-ext/listings-ext.sh
+./scripts/ebong/ebong.py
+./scripts/rubik/rubikrotation.pl
+./scripts/pkfix-helper/pkfix-helper
+./scripts/texdoctk/texdoctk.pl
+./scripts/pdfcrop/pdfcrop.pl
+./scripts/dviasm/dviasm.py
+./scripts/makedtx/makedtx.pl
+./scripts/listbib/listbib
+./scripts/pkfix/pkfix.pl
+./scripts/pfarrei/pfarrei.tlu
+./scripts/pfarrei/a5toa4.tlu
+./scripts/pdfxup/pdfxup
+./scripts/findhyph/findhyph
+./scripts/de-macro/de-macro
+./scripts/lua2dox/lua2dox_filter
+./scripts/texliveonfly/texliveonfly.py
+./scripts/psutils/extractres.pl
+./scripts/psutils/psjoin.pl
+./scripts/psutils/includeres.pl
+./scripts/installfont/installfont-tl
+./scripts/cachepic/cachepic.tlu
+./scripts/lwarp/lwarpmk.lua
+./scripts/musixtex/musixflx.lua
+./scripts/musixtex/musixtex.lua
+./scripts/ps2eps/ps2eps.pl
+./scripts/thumbpdf/thumbpdf.pl
+./scripts/vpe/vpe.pl
+./scripts/srcredact/srcredact.pl
+./scripts/latexindent/latexindent.pl
+./fonts/map/dvipdfmx/cid-x.map
+./fonts/map/glyphlist/glyphlist.txt
+./fonts/map/glyphlist/pdfglyphlist.txt
+./fonts/cmap/dvipdfmx/EUC-UCS2
+./texconfig/tcfmgr.map
+./texconfig/tcfmgr
+./psutils/paper.cfg
-- 
2.15.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Dec 12 2017 - 23:07:00 GMT