diff options
Diffstat (limited to 'dev-tex/latex2html/files/latex2html-extract-major-version-2.patch')
-rw-r--r-- | dev-tex/latex2html/files/latex2html-extract-major-version-2.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-tex/latex2html/files/latex2html-extract-major-version-2.patch b/dev-tex/latex2html/files/latex2html-extract-major-version-2.patch new file mode 100644 index 000000000000..11b6685385ec --- /dev/null +++ b/dev-tex/latex2html/files/latex2html-extract-major-version-2.patch @@ -0,0 +1,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: Netpbm (\d+)\..*\s*([\n\r]|$)/is) { $vers = $2; } + if ($vers =~ /^199/) { + # try left crop + &checking('if pnmcrop can crop from one direction'); |