[weasel-commit] Source: latex2html=2008-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Tue, 01 Jun 2010 17:30:29 -0400

================================
latex2html:source=2008-1
cvc rdiff latex2html -1 /weasel.rpath.org@wgl:3-devel/2008-1
================================
2008-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun  1 17:29:48 2010
    latex2html 2008

latex2html-extract-major-version.patch: new
--- /dev/null
+++ latex2html-extract-major-version.patch
@@ -0,0 +12 @@
+diff -urN latex2html-2002-2-1.orig/config/config.pl 
latex2html-2002-2-1/config/config.pl
+--- latex2html-2002-2-1.orig/config/config.pl  2006-06-02 20:41:18.000000000 
+0200
++++ latex2html-2002-2-1/config/config.pl       2006-06-02 20:42:07.000000000 
+0200
+@@ -1275,7 +1275,7 @@
+     ($stat,$msg,$err) = &get_out_err("$pnmcrop -version");
+     my $vers = '';
+     $msg = $msg || $err;
+-    if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
++    if ($msg =~ /(^|\s*)Version.*\s(\d+)\..*\s*([\n\r]|$)/is) { $vers = $2; }
+     if ($vers =~ /^199/) {
+       # try left crop
+       &checking('if pnmcrop can crop from one direction');

latex2html-destdir.patch: new
--- /dev/null
+++ latex2html-destdir.patch
@@ -0,0 +15 @@
+Index: latex2html-2008/config/install.pl
+===================================================================
+--- latex2html-2008.orig/config/install.pl
++++ latex2html-2008/config/install.pl
+@@ -372,7 +372,9 @@ foreach $item (sort keys %Install_items)
+ 
+ if($cfg{TEXPATH}) {
+   print "\nNote: trying to install LaTeX2HTML style files in TeX directory 
tree\n     ($cfg{TEXPATH})\n";
+-  unless(mkpath($cfg{TEXPATH})) {
++  my $destdir = $cfg{TEXPATH};
++  $destdir = $ENV{'DESTDIR'}.$destdir if($ENV{'DESTDIR'});
++  unless(mkpath($destdir)) {
+   #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
+   #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
+   #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {

latex2html.recipe: new
--- /dev/null
+++ latex2html.recipe
@@ -0,0 +78 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Latex2html(AutoPackageRecipe):
+    name = 'latex2html'
+    version = '2008'
+
+    buildRequires = [
+        'ghostscript:runtime', 'texlive-latexrecommended:runtime',
+        'netpbm:devel', 'perl:devellib', 'giflib:devel',
+        'libpng:devel',
+        ]
+
+    shortDesc  = 'LaTeX to HTML convertor'
+    longDesc   = """
+LaTeX2HTML is a convertor written in Perl that converts LaTeX
+documents to HTML. This way e.g. scientific papers - primarily typeset
+for printing - can be put on the Web for online viewing. LaTeX2HTML
+does also a good job in rapid web site deployment. These pages are
+generated from a single LaTeX source.
+"""
+    url        = 'http://www.latex2html.org/'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Development/TeX' ]
+
+    def unpack(r):
+        r.addArchive('http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/')
+
+        r.addPatch('latex2html-convert-length.patch')
+        r.addPatch('latex2html-perl_name.patch')
+        r.addPatch('latex2html-extract-major-version.patch')
+        r.addPatch('latex2html-destdir.patch')
+
+        # Dont install old url.sty and other files
+        r.Remove('texinputs/url.sty', 'texinputs/latin9.def')
+
+    def configure(r):
+        r.Configure(
+            ' --libdir=%(libdir)s/latex2html'
+            ' --shlibdir=%(libdir)s/latex2html'
+            ' --enable-pk'
+            ' --enable-eps'
+            ' --enable-reverse'
+            ' --enable-pipes'
+            ' --enable-paths'
+            ' --enable-wrapper'
+            ' --with-texpath=%(datadir)s/texmf-site/tex/latex/html'
+            ' --without-mktexlsr'
+            ' --enable-gif'
+            ' --enable-png'
+            )
+
+    def policy(r):
+        r.Doc('BUGS', 'Changes', 'FAQ', 'LICENSE.orig', 'MANIFEST',
+              'README*', 'TODO')
+
+        # make /usr/share/latex2html sticky
+        r.MakeDirs('%(datadir)s/latex2html')
+        r.ExcludeDirectories(exceptions='%(datadir)s/latex2html')
+
+        postScript = """#!/bin/sh
+
+%(bindir)s/mktexlsr
+""" % r.macros
+
+        r.ScriptPostInstall(contents=postScript)
+        r.ScriptPostUpdate(contents=postScript)
+        r.ScriptPostErase(contents=postScript)
+
+        for req in [ 'ghostscript:runtime',
+                     'texlive-latexrecommended:runtime',
+                     'netpbm:runtime',
+                     'giflib:runtime',
+                     'libpng:lib',
+                     ]:
+            r.Requires(req, '%(bindir)s/')

latex2html-2008.tar.gz: new
latex2html-convert-length.patch: new
--- /dev/null
+++ latex2html-convert-length.patch
@@ -0,0 +22 @@
+--- latex2html-2002-2-1/versions/html2_2.pl.old        2006-02-21 
20:37:50.000000000 +0100
++++ latex2html-2002-2-1/versions/html2_2.pl    2006-02-21 20:38:03.000000000 
+0100
+@@ -91,7 +91,7 @@
+     ($pxs,$len);
+ }
+ # should no longer be needed, as this is defined in latex2html.pin
+-if (undefined &convert_length) { sub convert_length 
{&convert_length_table(@_)} }
++if (!defined (&convert_length)) { sub convert_length 
{&convert_length_table(@_)} }
+ 
+ # Translates LaTeX column specifications to HTML. Again, Netscape
+ # needs some extra work with its width attributes in the <td> tags.
+--- latex2html-2002-2-1/versions/table.pl.old  2006-02-21 20:37:54.000000000 
+0100
++++ latex2html-2002-2-1/versions/table.pl      2006-02-21 20:38:11.000000000 
+0100
+@@ -91,7 +91,7 @@
+     ($pxs,$len);
+ }
+ # should no longer be needed, as this is defined in latex2html.pin
+-if (undefined &convert_length) { sub convert_length 
{&convert_length_table(@_)} }
++if (!defined (&convert_length)) { sub convert_length 
{&convert_length_table(@_)} }
+ 
+ # Translates LaTeX column specifications to HTML. Again, Netscape
+ # needs some extra work with its width attributes in the <td> tags.

latex2html-perl_name.patch: new
--- /dev/null
+++ latex2html-perl_name.patch
@@ -0,0 +11 @@
+--- latex2html-2002-2-1/config/config.pl       2002-11-29 12:49:01.000000000 
+0100
++++ latex2html-2002-2-1/config/config.pl.new   2006-05-23 11:29:10.000000000 
+0200
+@@ -617,7 +617,7 @@
+ 
+ # only perl gets an absolute pathname
+ my $abs_path_names = 1;
+-$newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
++$newcfg{'PERL'} = &find_prog("perl"); # take the perl internal executable name
+ &checking('perl version');
+ &result($]);
+ 


Committed by: brcha

Other related posts:

  • » [weasel-commit] Source: latex2html=2008-1 - rbuilder