0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
Henrik Grimler 6e65c289ea
updpkg(main/texlive-installer): update to 20240310
Starting from this release we switch and install to
$PREFIX/share/texlive/2024 instead of $PREFIX/share/texlive.
2024-03-24 09:06:16 +01:00

30 lines
1020 B
Diff

--- ./tlpkg/TeXLive/TLUtils.pm.orig 2022-05-01 21:50:15.993394677 +0200
+++ ./tlpkg/TeXLive/TLUtils.pm 2022-05-01 21:50:48.037394654 +0200
@@ -1802,7 +1802,7 @@
}
my $cmd = $keyval{'cmd'};
- my $texdir = `kpsewhich -var-value=TEXMFROOT`;
+ my $texdir = "@TERMUX_PREFIX@/share/texlive/@YEAR@";
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
$cmd =~ s!^("?)TEXDIR/!$1$texdir/!g;
@@ -1877,7 +1877,7 @@
if (win32() && defined($keyval{'filew32'})) {
$file = $keyval{'filew32'};
}
- my $texdir = `kpsewhich -var-value=TEXMFROOT`;
+ my $texdir = "@TERMUX_PREFIX@/share/texlive/@YEAR@";
chomp($texdir);
my @syscmd;
if ($file =~ m/\.pl$/i) {
@@ -1952,7 +1952,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/@YEAR@";
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
$icon =~ s!^TEXDIR/!$texdir/!;