[buildout]
extends =
  ../pcre/buildout.cfg
  ../coreutils/buildout.cfg
  ../xz-utils/buildout.cfg
parts =
  grep-output

[grep]
recipe = slapos.recipe.cmmi
url = http://ftp.gnu.org/gnu/grep/grep-2.18.tar.xz
md5sum = 7439f8266f50844b56cc3e2721606541
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
  CPPFLAGS=-I${pcre:location}/include
  LDFLAGS=-L${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib

[grep-output]
# Shared binary location to ease migration
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = ${coreutils-output:test} -x ${:grep}
grep = ${grep:location}/bin/grep