Package: latex2html / 2021-debian1-1

debian/install.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Adjust to Debian installation
 This patch adjusts several files to the Debian specific installation.
Author: Roland Stigge <stigge@antcom.de>
Forwarded: not-needed

--- a/config/install.pl
+++ b/config/install.pl
@@ -236,7 +236,7 @@
   'styles'            => 'lib,recurse',
   # MRO: Tests are for pre-installation testing
   #'tests'             => 'lib,recurse',
-  'texinputs'         => 'lib,recurse',
+  #'texinputs'         => 'lib,recurse',
   #'texlive.pm'        => 'lib',
   'versions'          => 'lib,recurse',
   #'wrapper'           => 'lib,recurse',
@@ -373,7 +373,7 @@
 
 if($cfg{TEXPATH}) {
   print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n     ($cfg{TEXPATH})\n";
-  unless(mkpath($cfg{TEXPATH})) {
+  unless($ENV{'INSTALLING_DEBIAN'} || mkpath($cfg{TEXPATH})) {
   #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
   #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
   #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
@@ -395,7 +395,7 @@
         }
       }
       closedir(DIR);
-      if($ok && $cfg{MKTEXLSR}) {
+      if($ok && $cfg{MKTEXLSR} && ! $ENV{'INSTALLING_DEBIAN'}) {
         print "Info: Running $cfg{MKTEXLSR} to rebuild ls-R database...\n";
         system($cfg{MKTEXLSR});
       }
--- a/makeseg/makeseg
+++ b/makeseg/makeseg
@@ -17,23 +17,23 @@
 # config file settings therefore override anything set here
 
 # Location to look for L2H-supported LaTeX styles
-$LATEX2HTMLSTYLES="/usr/local/lib/texmf/latex2html/styles" 
+$LATEX2HTMLSTYLES="/usr/share/texmf/latex2html/styles"
     unless $LATEX2HTMLSTYLES;
 
 # Location for TeX style files etc.
 # $TEXINPUTS is read from the environment if not explicitly supplied
 $TEXINPUTS=$ENV{'TEXINPUTS'} unless $TEXINPUTS;
-$TEXINPUTS=".:/usr/local/lib/texmf/tex//" unless $TEXINPUTS;
+$TEXINPUTS=".:/usr/share/texmf/tex//" unless $TEXINPUTS;
 
 # Location for BibTeX Bibliography databases
 # $BIBINPUTS is read from the environment if not explicitly supplied
 $BIBINPUTS=$ENV{'BIBINPUTS'} unless $BIBINPUTS;
-$BIBINPUTS=".:/usr/local/lib/texmf/bibtex/bib/" unless $BIBINPUTS;
+$BIBINPUTS=".:/usr/share/texmf/bibtex/bib/" unless $BIBINPUTS;
 
 # Location for BibTeX Bibliography styles (in addition to $TEXINPUTS)
 # $BSTINPUTS is read from the environment if not explicitly supplied
 $BSTINPUTS=$ENV{'BSTINPUTS'} unless $BSTINPUTS;
-$BSTINPUTS="/usr/local/lib/texmf/bibtex/bst/" unless $BSTINPUTS;
+$BSTINPUTS="/usr/share/texmf/bibtex/bst/" unless $BSTINPUTS;
 
 # The lowest sectioning command at which to create segments
 # corresponds to -l option