buildout.cfg 1.86 KB
Newer Older
1 2 3 4
[buildout]
extends =
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
5 6
  ../libtool/buildout.cfg
  ../git/buildout.cfg
7 8 9 10 11
  ../openssl/buildout.cfg
  ../libuuid/buildout.cfg

parts = accords

12 13 14 15
[accords-source]
recipe=plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
16
url = http://git.gitorious.ow2.org/ow2-compatibleone/accords-platform.git
17 18 19
command =
  (${git:location}/bin/git clone --quiet ${:url} ${:location} ) || (rm -fr ${:location} ; exit 1)
update-command =
20
  (cd ${:location} && ${git:location}/bin/git pull --quiet origin master)
21

22 23 24 25
[accords]
# Part of Compatible One project
# http://gitorious.ow2.org/ow2-compatibleone/accords-platform
recipe = hexagonit.recipe.cmmi
26 27
#url = http://gitorious.ow2.org/ow2-compatibleone/accords-platform/archive-tarball/master
path = ${accords-source:location}/
28
#md5sum = 
29 30 31 32 33 34 35 36 37 38
# Replaces autogen.sh
configure-command =
  ./clean
  libtoolize -c -f
  aclocal -I ${libtool:location}/share/aclocal
  automake -c -a -f --add-missing
  autoreconf --install
  ./configure
configure-options =
  --with-ssl=${openssl:location}
39
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
40
environment =
41
  CPPFLAGS =-I${libuuid:location}/include -I${openssl:location}/include
42
  LDFLAGS =-Wl,-rpath=${openssl:location}/lib -L${libuuid:location}/lib -Wl,-rpath=${libuuid:location}/lib
43 44 45
  LIBTOOL=libtool
  PATH=${autoconf:location}/bin:${automake:location}/bin:${libtool:location}/bin:%(PATH)s

46 47 48 49 50 51 52 53
# Accords makefile does not install necessary scripts. Let's copy it
[accords-scripts]
recipe = plone.recipe.command
requires = ${accords:location}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
origin = ${accords-source:location}/scripts
destination = ${:location}
command = ([ -e ${:origin}/co-broker ] && [ ! -e ${:destination}/co-broker ] && mkdir ${:destination} && cp -r ${:origin} ${:destination})