tesseract patch: remove BOM from header file
[slapos.git] / component / tesseract / buildout.cfg
1 [buildout]
2 extends =
3   ../automake/buildout.cfg
4   ../libtool/buildout.cfg
5   ../leptonica/buildout.cfg
6
7 parts =
8   tesseract
9
10 [tesseract-gcc-4.7-build-patch]
11 recipe = hexagonit.recipe.download
12 url = ${:_profile_base_location_}/${:filename}
13 download-only = true
14 filename = tesseract-3.00-gcc-4.7-build.patch
15 md5sum = ca80db3ec489c547b03f3ee48879c1b1
16
17 [tesseract-3.01-remove-bom.patch]
18 recipe = hexagonit.recipe.download
19 url = ${:_profile_base_location_}/${:filename}
20 download-only = true
21 filename = ${:_buildout_section_name_}
22 md5sum = fd22e78d867105a10b622442c6269526
23
24 [tesseract]
25 recipe = hexagonit.recipe.cmmi
26 url = http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz
27 md5sum = 1ba496e51a42358fb9d3ffe781b2d20a
28 patch-options =
29   -p1
30 patches =
31   ${tesseract-gcc-4.7-build-patch:location}/${tesseract-gcc-4.7-build-patch:filename}
32   ${tesseract-3.01-remove-bom.patch:location}/${tesseract-3.01-remove-bom.patch:filename}
33 configure-command =
34   aclocal -I ${libtool:location}/share/aclocal -I config
35   libtoolize -f -c
36   libtoolize --automake
37   autoheader -f
38   automake -c -a -f
39   autoconf -Wno-portability
40   ./configure --prefix=${buildout:parts-directory}/${:_buildout_section_name_} --disable-static --datarootdir=${tesseract-eng-traineddata:location}
41 # XXX: tesseract seems not easily configurable at runtime about where to find
42 # its trained data, so we set its datarootdir above to a controlled location
43
44 # tesseract has a non-standard way of testing for leptonica, hence the
45 # LIBLEPT_HEADERSDIR entry below:
46 environment =
47   PATH=${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:%(PATH)s
48   ACLOCAL_ARGS=-I${libtool:location}/share/aclocal
49   LIBLEPT_HEADERSDIR=${leptonica:location}/include
50   CPPFLAGS=-I${leptonica:location}/include
51   LDFLAGS =-L${leptonica:location}/lib -Wl,-rpath=${leptonica:location}/lib
52
53 [tesseract-eng-traineddata]
54 recipe = hexagonit.recipe.download
55 strip-top-level-dir = true
56 url = http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
57 md5sum = 89c139a73e0e7b1225809fc7b226b6c9