mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-02 19:15:59 +00:00
Also update our profile script to define TEXMFROOT and friends there. This allows us to get rid of our texmf.cnf patch, and should prevent some of the breakages that happen on `tlmgr update --all`.
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
--- ./install-tl.orig 2023-03-12 17:33:10.000000000 +0000
|
|
+++ ./install-tl 2023-04-27 18:49:09.958341168 +0000
|
|
@@ -37,7 +37,7 @@
|
|
|
|
# debugging communication with external gui: use shared logfile
|
|
|
|
-our $dblfile = "/tmp/dblog";
|
|
+our $dblfile = "@TERMUX_PREFIX@/tmp/dblog";
|
|
$dblfile = $ENV{'TEMP'} . "\\dblog.txt" if ($^O =~ /^MSWin/i);
|
|
$dblfile = $ENV{'TMPDIR'} . "/dblog" if ($^O eq 'darwin'
|
|
&& exists $ENV{'TMPDIR'});
|
|
@@ -900,8 +900,6 @@
|
|
if ($opt_custom_bin) {
|
|
if (-d $opt_custom_bin && (-r "$opt_custom_bin/kpsewhich"
|
|
|| -r "$opt_custom_bin/kpsewhich.exe")) {
|
|
- info("Platform overridden, binaries taken from $opt_custom_bin\n"
|
|
- . "and will be installed into .../bin/custom.\n");
|
|
} else {
|
|
tldie("$0: -custom-bin argument must be a directory "
|
|
. "with TeX Live binaries, not like: $opt_custom_bin\n");
|
|
@@ -1092,11 +1090,6 @@
|
|
do_install_packages();
|
|
if ($opt_custom_bin) {
|
|
$vars{'this_platform'} = "custom";
|
|
- my $TEXDIR="$vars{'TEXDIR'}";
|
|
- mkdirhier("$TEXDIR/bin/custom");
|
|
- for my $f (<$opt_custom_bin/*>) {
|
|
- copy($f, "$TEXDIR/bin/custom");
|
|
- }
|
|
}
|
|
}
|
|
# now we save every scheme that is fully covered by the stuff we have
|
|
@@ -1790,7 +1783,7 @@
|
|
set_var_from_alternatives("TEX_PREFIX", \$tex_prefix,
|
|
($opt_in_place ? abs_path($::installerdir) : undef),
|
|
$tlprefixenv,
|
|
- (wndws() ? getenv('SystemDrive') . '/texlive' : '/usr/local/texlive'));
|
|
+ (wndws() ? getenv('SystemDrive') . '/texlive' : '@TERMUX_PREFIX@/local/texlive'));
|
|
#
|
|
set_var_from_alternatives("TEXDIR", \$vars{'TEXDIR'},
|
|
$opt_texdir,
|