[buildout]
extends =
  ../libmemcached/buildout.cfg
  ../git/buildout.cfg
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
  ../libtool/buildout.cfg

parts =
  memstrike

[memstrike]
recipe = hexagonit.recipe.cmmi
path = ${memstrikesource:location}
configure-command =
  ./bootstrap
  ./configure
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --with-libmemcached=${libmemcached:location}
environment =
  PATH =${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:%(PATH)s
  LDFLAGS =-Wl,-rpath=${libmemcached:location}/lib

[memstrikesource]
recipe=plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_} 
stop-on-error = true
revision = 39d7a99e8bb7eea6df8b
command =
  rm -rf ${:location} &&
  ${git:location}/bin/git clone --quiet git://github.com/frsyuki/memstrike.git ${:location} &&
  cd ${:location} &&
  ${git:location}/bin/git checkout --quiet ${:revision}