From 335ab60fa45666267afa94ef14b2ea473680cb18 Mon Sep 17 00:00:00 2001
From: Guillaume Bottex <guillaume.bottex@nexedi.com>
Date: Thu, 1 Sep 2011 15:00:26 +0200
Subject: [PATCH] Use libedit software profile to build cubrid.

The configure scriptproduces error when trying to configure
the libedit bundled with cubrid when used with buildout.
So it's better to use the option --with-libedit
with the configure script.
---
 component/cubrid/buildout.cfg | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/component/cubrid/buildout.cfg b/component/cubrid/buildout.cfg
index 3409860a7..9c8a7cbbf 100644
--- a/component/cubrid/buildout.cfg
+++ b/component/cubrid/buildout.cfg
@@ -2,7 +2,7 @@
 extends =
   ../java/buildout.cfg
   ../ant/buildout.cfg
-  ../ncurses/buildout.cfg
+  ../libedit/buildout.cfg
 
 parts =
   cubrid
@@ -11,8 +11,13 @@ parts =
 recipe = hexagonit.recipe.cmmi
 url = http://dev.naver.com/frs/download.php/3782/CUBRID-8.4.0.1008.src.tar.gz
 md5sum = 833d503bd29b076092b61e1fb5f4c035
+prefix = ${buildout:parts-directory}/${:_buildout_section_name_}
+configure-options =
+  --prefix=${:prefix}
+  --with-libedit=${libedit-20100424-3.0:location}
+  --enable-64bit
 environment =
   JAVA_HOME=${java:location}
-  PATH=${ant:location}/bin:${ncurses:location}/lib:%(PATH)s
+  PATH=${ant:location}/bin:%(PATH)s
   CPPFLAGS=-I${ncurses:location}/include
   LDFLAGS=-L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib
-- 
2.30.9