[buildout]
parts = ocropus

[ocropus-patch-scons]
recipe = hexagonit.recipe.download
download-only = true
filename = ocropus.SConstruct-local-installation.patch
url = http://www.nexedi.org/static/packages/source/ocropus/${:filename}

[ocropus]
recipe = hexagonit.recipe.cmmi
url = http://www.nexedi.org/static/packages/source/ocropus/ocropus-0.4.4.tar.gz
configure-options =
  ${iulib:location}
patches = ${ocropus-patch-scons:location}/${ocropus-patch-scons:filename}
patch-options = -p1

[iulib]
recipe = hexagonit.recipe.cmmi
url = http://www.nexedi.org/static/packages/source/ocropus/iulib-0.4.4.tar.gz

[requirements]
development =
  tesseract/baseapi.h
  include/omp.h
binary =
  scons