summaryrefslogtreecommitdiff
path: root/libre/texlive-bin
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2023-08-11 17:50:33 +0200
committerAndreas Grapentin <andreas@grapentin.org>2023-08-11 17:50:33 +0200
commit76f2ef4908219cea5f16308ef08e5a0d1b6e8173 (patch)
treea4f0617769f56c461df00a5b195789a1f8e86e11 /libre/texlive-bin
parente081db190c874f9771bb35564056bf37b1090e3b (diff)
texlive-bin: updated
Diffstat (limited to 'libre/texlive-bin')
-rw-r--r--libre/texlive-bin/PKGBUILD58
-rw-r--r--libre/texlive-bin/ptex-debug-print.patch14
2 files changed, 54 insertions, 18 deletions
diff --git a/libre/texlive-bin/PKGBUILD b/libre/texlive-bin/PKGBUILD
index 9bc5cac68..3113ccce8 100644
--- a/libre/texlive-bin/PKGBUILD
+++ b/libre/texlive-bin/PKGBUILD
@@ -11,31 +11,38 @@
# parabola changes and rationale:
# - rebrand for parabola
# - pin to strongly-coupled dependency versions (NOTE: this build does not pin to poppler - it may no longer be necessary due to removal of --with-system-poppler flag?)
-# - disable xindy on armv7h
+# - disable texindy/xindy on armv7h
pkgname=('texlive-bin' 'libsynctex')
-pkgver=2021.59745
+pkgver=2023.66539
pkgrel=1
-pkgrel+=.parabola2
+pkgrel+=.parabola1
license=('GPL')
arch=('x86_64')
arch+=('i686' 'armv7h')
makedepends=('git' 'cairo' 'pixman' 'graphite' 't1lib' 'gd'
- 'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2'
- 'icu' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper'
- 'perl' 'clisp' 'ffcall' 'libxcrypt')
+ 'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2'
+ 'icu' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper'
+ 'perl' 'clisp' 'ffcall' 'libxcrypt')
[[ "${CARCH}" == 'armv7h' ]] && makedepends=( $(sed -E 's/clisp|ffcall//g' <<<${makedepends[@]}) )
url='https://tug.org/texlive/'
-_commit=7eaec95e244515fe11445111c0aaa1349de6790d # svn://tug.org/texlive/tags/texlive-2021.3/Build/source@59745
-source=("git+https://github.com/Tex-Live/texlive-source.git#commit=${_commit}")
-sha256sums=('SKIP')
+_commit=0d0bb3a2401e8825b4987eee51e8ef469eb8c3fc # tags/texlive-2023.0
+source=("git+https://github.com/Tex-Live/texlive-source.git#commit=${_commit}"
+ "ptex-debug-print.patch")
+sha256sums=('SKIP'
+ 'aa838f09003c62c2efb5770a8de66f99b409df049fbd65098d80fd1957d06c50')
prepare() {
cd "$srcdir/texlive-source"
+ # bibtex-x needs kpathsea flags
+ sed -i '/AC_SEARCH_LIBS/a KPSE_KPATHSEA_FLAGS' texk/bibtex-x/configure.ac
+ (cd texk/bibtex-x && autoreconf)
# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
sed -i s/SELFAUTOPARENT/TEXMFROOT/ texk/tex4htk/t4ht.c
+ # remove spurious ptex "guessed encoding" print
+ patch -Np1 -i "${srcdir}/ptex-debug-print.patch"
}
build() {
@@ -52,7 +59,7 @@ build() {
# Preset float endianness to avoid a crash in cairo configure
# with recent toolchains. We are not building cairo anyway.
ax_cv_c_float_words_bigendian=no \
- ../configure --prefix=/usr -C \
+ ../configure --prefix=/usr -C \
--sysconfdir=/etc \
--datarootdir=/usr/share \
--datadir=/usr/share \
@@ -109,6 +116,8 @@ package_libsynctex() {
cd "${srcdir}/texlive-source/Work"
make -C texk/web2c DESTDIR="${pkgdir}" \
install-data-am install-libLTLIBRARIES
+
+ rm -f "$pkgdir"/usr/share/man/man1/hi*.*
}
package_texlive-bin() {
@@ -120,7 +129,6 @@ package_texlive-bin() {
provides=('lcdf-typetools' 'kpathsea' 'xindy')
optdepends=('ed: for texconfig'
'biber: for bibliography processing')
- options=('!strip')
cd "$srcdir/texlive-source"
@@ -171,11 +179,13 @@ package_texlive-bin() {
_bibtexextra_scripts="
bbl2bib
bib2gls
+bibcop
bibdoiadd
bibexport
bibmradd
biburl2doi
bibzbladd
+citeproc-lua
convertgls2bib
listbib
ltx2crossrefxml
@@ -203,8 +213,6 @@ cjk-gs-integrate
cluttex
cllualatex
clxelatex
-context
-contextjit
ctanbib
ctanify
ctanupload
@@ -212,6 +220,7 @@ ctan-o-mat
de-macro
depythontex
deweb
+digestif
dosepsbin
dtxgen
dvi2fax
@@ -258,8 +267,8 @@ listings-ext.sh
llmk
ltxfileinfo
ltximg
+luafindfont
luaotfload-tool
-luatools
lwarpmk
make4ht
match_parens
@@ -273,8 +282,7 @@ mktexmf
mktexpk
mktextfm
mptopdf
-mtxrun
-mtxrunjit
+optexcount
ot2kpx
pamphletangler
pdfatfi
@@ -300,6 +308,7 @@ spix
srcredact
sty2dtx
tex4ebook
+texaccents
texconfig
texconfig-dialog
texconfig-sys
@@ -309,13 +318,13 @@ texdiff
texdirflatten
texdoc
texdoctk
-texexec
texfot
texhash
texlinks
texliveonfly
texloganalyser
-texmfstart
+texlogfilter
+texlogsieve
texosquery
texosquery-jre5
texosquery-jre8
@@ -329,6 +338,8 @@ updmap-sys
updmap-user
vpl2ovp
vpl2vpl
+xelatex-unsafe
+xetex-unsafe
xhlatex
xindex
"
@@ -359,11 +370,13 @@ l3build
makedtx
makeglossaries
makeglossaries-lite
+pagelayoutapi
pdfannotextractor
perltex
ps4pdf
splitindex
svn-multi
+textestvis
vpe
webquiz
wordcount
@@ -403,9 +416,18 @@ tikztosvg"
${_science_scripts} \
tlmgr; do
! readlink -e "$pkgdir"/usr/bin/$s && rm "$pkgdir"/usr/bin/$s
+ if [[ -f "$pkgdir/usr/share/man/man1/${s%.*}.1" ]]; then
+ rm -vf "$pkgdir/usr/share/man/man1/${s%.*}.1"
+ fi
done
###################################################################
+ # Install old ConTeXt stubs
+ cd "$srcdir/texlive-source"
+ for stub in context contextjit luatools mtxrun mtxrunjit texexec texmfstart; do
+ install -m755 texk/texlive/linked_scripts/context/stubs/unix/"$stub" "$pkgdir/usr/bin/$stub"
+ done
+
# remove libsynctex
rm -f "$pkgdir"/usr/include/synctex/*
rm -f "$pkgdir"/usr/lib/libsynctex.*
diff --git a/libre/texlive-bin/ptex-debug-print.patch b/libre/texlive-bin/ptex-debug-print.patch
new file mode 100644
index 000000000..cc2953d99
--- /dev/null
+++ b/libre/texlive-bin/ptex-debug-print.patch
@@ -0,0 +1,14 @@
+diff --git a/texk/ptexenc/ptexenc.c b/texk/ptexenc/ptexenc.c
+index 4e81dbee7c..3c98d68125 100644
+--- a/texk/ptexenc/ptexenc.c
++++ b/texk/ptexenc/ptexenc.c
+@@ -1044,7 +1044,9 @@ long input_line2(FILE *fp, unsigned char *buff, unsigned char *buff2,
+ enc = ptenc_guess_enc(fp);
+ if (string_to_enc(enc) > 0) {
+ infile_enc[fd] = string_to_enc(enc);
++#ifdef DEBUG
+ fprintf(stderr, "(guessed encoding #%d: %s = %s)", fd, enc, enc_to_string(infile_enc[fd]));
++#endif /* DEBUG */
+ } else {
+ infile_enc[fd] = get_file_enc();
+ }