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