[buildout]
parts = ghostscript

[ghostscript-hooks-download]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/buildout-hooks/ghostscript-hooks.py-r38557
filename = ghostscript-hooks.py
md5sum = e7b4a88db7000d3d3222dbe803791d8f
download-only = true

[ghostscript]
<= ghostscript-9
pre-configure-hook = ${ghostscript-hooks-download:location}/${ghostscript-hooks-download:filename}:pre_configure_hook

[ghostscript-9]
recipe = hexagonit.recipe.cmmi
url = http://ghostscript.com/releases/ghostscript-9.00.tar.gz
md5sum = a402462478b4cdda3e1816899227b845
configure-options =
  --disable-cups

[ghostscript-8]
recipe = hexagonit.recipe.cmmi
url = http://ghostscript.com/releases/ghostscript-8.71.tar.gz
md5sum = 51a522a5b4818bd3dc7c1c0e9dd22bad