From 37d696945fe08cbbf43c1e8fa508c4653d357cf3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Mon, 7 Jun 2010 12:52:47 +0000
Subject: [PATCH]  - implement working ocropus recipe for 0.4.4 from tag Note:
 Those package is pre-patched in Nexedi repository to mimic configure and make
 for hexagonit.recipe.cmmi.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36021 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/helpers/debian.lenny.sh       |  2 +-
 buildout/helpers/mandriva2010.0.sh     |  2 +-
 buildout/profiles/official.cfg         |  2 +-
 buildout/software-profiles/ocropus.cfg | 23 ++++++++++++++---------
 4 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/buildout/helpers/debian.lenny.sh b/buildout/helpers/debian.lenny.sh
index 41ba570f39..90663a3891 100755
--- a/buildout/helpers/debian.lenny.sh
+++ b/buildout/helpers/debian.lenny.sh
@@ -7,7 +7,6 @@ build-essential
 cpio
 flex
 gcc
-jam
 libbz2-dev
 libgdbm-dev
 libglib2.0-dev
@@ -26,6 +25,7 @@ make
 patch
 python-setuptools
 rpm
+scons
 subversion
 subversion-tools
 tesseract-ocr-dev
diff --git a/buildout/helpers/mandriva2010.0.sh b/buildout/helpers/mandriva2010.0.sh
index 545c9b46f4..71401326e7 100755
--- a/buildout/helpers/mandriva2010.0.sh
+++ b/buildout/helpers/mandriva2010.0.sh
@@ -17,7 +17,6 @@ automake
 bison
 cpio
 flex
-ftjam
 gcc
 gcc-c++
 groff
@@ -39,6 +38,7 @@ patch
 python-devel
 python-setuptools
 rpm
+scons
 subversion
 subversion-devel
 subversion-tools
diff --git a/buildout/profiles/official.cfg b/buildout/profiles/official.cfg
index 9c631de6a3..4d2eaf8e81 100644
--- a/buildout/profiles/official.cfg
+++ b/buildout/profiles/official.cfg
@@ -27,7 +27,7 @@ parts =
   eggs
   apache
   memcached
-#  ocropus
+  ocropus
 #  haproxy
   varnish
   mysql-tritonn-5.0
diff --git a/buildout/software-profiles/ocropus.cfg b/buildout/software-profiles/ocropus.cfg
index 9d4a93048e..70b771b975 100644
--- a/buildout/software-profiles/ocropus.cfg
+++ b/buildout/software-profiles/ocropus.cfg
@@ -1,21 +1,26 @@
 [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://ocropus.googlecode.com/files/ocropus-0.1.1.tar.gz
-md5sum = 91a0e9b44d5599f22a42139a93ed0127
+url = http://www.nexedi.org/static/packages/source/ocropus/ocropus-0.4.4.tar.gz
 configure-options =
-  --with-tesseract=/usr
-make-binary=jam
-environment-section = ocropus-environment
+  ${iulib:location}
+patches = ${ocropus-patch-scons:location}/${ocropus-patch-scons:filename}
+patch-options = -p1
 
-[ocropus-environment]
-# fix compilation on debian: http://code.google.com/p/ocropus/issues/detail?id=27#c5
-LIBS=-lpthread
+[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
 binary =
-  jam
+  scons
-- 
2.30.9