Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin-fuzzyocr/files: spamassassin-fuzzyocr-3.6.0-fix_tesseract.patch
Date: Fri, 30 Jul 2010 15:02:35
Message-Id: 20100730145636.2E1B22CAD8@corvid.gentoo.org
1 voyageur 10/07/30 14:56:36
2
3 Added: spamassassin-fuzzyocr-3.6.0-fix_tesseract.patch
4 Log:
5 Fix tesseract support with tiff images, bug #330461
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 mail-filter/spamassassin-fuzzyocr/files/spamassassin-fuzzyocr-3.6.0-fix_tesseract.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin-fuzzyocr/files/spamassassin-fuzzyocr-3.6.0-fix_tesseract.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin-fuzzyocr/files/spamassassin-fuzzyocr-3.6.0-fix_tesseract.patch?rev=1.1&content-type=text/plain
13
14 Index: spamassassin-fuzzyocr-3.6.0-fix_tesseract.patch
15 ===================================================================
16 --- FuzzyOcr-3.5.1-orig/Preprocessor.pm.ORIG 2008-05-15 18:24:22.000000000 +0200
17 +++ FuzzyOcr/Preprocessor.pm 2008-05-15 18:51:03.000000000 +0200
18 @@ -15,6 +15,9 @@ sub run {
19 my $tmpdir = FuzzyOcr::Config::get_tmpdir();
20 my $label = $self->{label};
21 my $output = "$tmpdir/prep.$label.out";
22 + if ($label =~ /maketiff/) {
23 + $output = "$tmpdir/prep.$label.tif";
24 + }
25 my $stderr = ">$tmpdir/prep.$label.err";
26
27 my $stdin = undef;
28 --- FuzzyOcr-3.5.1-orig/Scanset.pm.ORIG 2008-05-15 18:56:11.000000000 +0200
29 +++ FuzzyOcr/Scanset.pm 2008-05-15 19:03:26.000000000 +0200
30 @@ -63,7 +63,12 @@ sub run {
31 return ($retcode,@result);
32 }
33 # Input of next processor is output of last
34 - $input = "$tmpdir/prep.$plabel.out";
35 + # Output name of maketiff is special!
36 + if ($plabel =~ /maketiff/) {
37 + $input = "$tmpdir/prep.$plabel.tif";
38 + } else {
39 + $input = "$tmpdir/prep.$plabel.out";
40 + }
41 }
42 }