termux-packages/packages/texlive-installer/tlpkg-TeXLive-TLUtils.pm.patch
Henrik Grimler 2ed75e267f
texlive-installer: update to 20220403
pythontex patch has been removed since termux's python now support
multiprocessing!
2022-05-02 10:43:23 +02:00

30 lines
999 B
Diff

--- ./tlpkg/TeXLive/TLUtils.pm.orig 2022-05-01 20:24:48.919325797 +0200
+++ ./tlpkg/TeXLive/TLUtils.pm 2022-05-01 20:30:27.652807200 +0200
@@ -1871,7 +1871,7 @@
}
my $cmd = $keyval{'cmd'};
- my $texdir = `kpsewhich -var-value=TEXMFROOT`;
+ my $texdir = "@TERMUX_PREFIX@/share/texlive";
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
$cmd =~ s!^("?)TEXDIR/!$1$texdir/!g;
@@ -1946,7 +1946,7 @@
if (win32() && defined($keyval{'filew32'})) {
$file = $keyval{'filew32'};
}
- my $texdir = `kpsewhich -var-value=TEXMFROOT`;
+ my $texdir = "@TERMUX_PREFIX@/share/texlive";
chomp($texdir);
my @syscmd;
if ($file =~ m/\.pl$/i) {
@@ -2021,7 +2021,7 @@
&log("postaction $how shortcut for " . $tlpobj->name . "\n");
if ($how eq "install") {
- my $texdir = `kpsewhich -var-value=TEXMFROOT`;
+ my $texdir = "@TERMUX_PREFIX@/share/texlive";
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
$icon =~ s!^TEXDIR/!$texdir/!;