summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ehmsen <ehmsen@gentoo.org>2006-06-02 18:57:50 +0000
committerMartin Ehmsen <ehmsen@gentoo.org>2006-06-02 18:57:50 +0000
commita195fc920be23302dba1e31a52b0775fd7b5b5c9 (patch)
treec81ceaa930029ffc9e0b6b1518eda3e3b182ea39 /dev-tex/latex2html/files/latex2html-extract-major-version.patch
parentVersion bump. (diff)
downloadhistorical-a195fc920be23302dba1e31a52b0775fd7b5b5c9.tar.gz
historical-a195fc920be23302dba1e31a52b0775fd7b5b5c9.tar.bz2
historical-a195fc920be23302dba1e31a52b0775fd7b5b5c9.zip
Fixed the extraction of netpbms major verions number in config/config.pl, bug #122927
Package-Manager: portage-2.1_rc3-r5
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');