From 376f6764c09e402bd726c2ae6f11cb2308a671f7 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Fri, 26 Nov 2010 21:42:39 +0000
Subject: [PATCH] install gdbm header files as parts/gdbm/include/gdbm/*.h etc.
 because some softwares (eg. python's dbmmodule.c extension) assume the
 location like this.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40814 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/gdbm.cfg | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/buildout/software-profiles/gdbm.cfg b/buildout/software-profiles/gdbm.cfg
index 99f4b14e4c..c491cc2ea1 100644
--- a/buildout/software-profiles/gdbm.cfg
+++ b/buildout/software-profiles/gdbm.cfg
@@ -17,6 +17,8 @@ recipe = erp5.recipe.cmmisafe
 url = ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.8.3.tar.gz
 md5sum = 1d1b1d5c0245b1c00aff92da751e9aa1
 patches = ${gdbm-nochange-patch-download:location}/${gdbm-nochange-patch-download:filename}
+# install as parts/gdbm/include/gdbm/*.h etc. because some softwares
+# (eg. python's dbmmodule.c extension) assume the location like this.
+includedir = ${buildout:parts-directory}/gdbm/include
 make-targets =
-  install
-  install-compat
+  install install-compat includedir=${:includedir}/gdbm && rm -f ${:includedir}/*.h && ln -sf gdbm/gdbm.h ${:includedir}/gdbm.h
-- 
2.30.9