[buildout]

parts = 
  python-slip-egg

[python-slip]
recipe = slapos.recipe.cmmi
url = https://fedorahosted.org/released/python-slip/python-slip-0.6.1.tar.bz2
md5sum = a6d8ee96245fc21785d4c1c062c85f2f
configure-command = true
make-targets = 
make-binary = 
  make all
  cp -ax . ${:slip}/
  cp -ax . ${:slip.dbus}/
  cp -ax . ${:slip.gtk}/
  sed -i '/setup(name="slip.dbus"/,/"gtk", "pango"])/d' ${:slip}/setup.py
  sed -i '/setup(name="slip"/,/selinux"])/d' ${:slip.dbus}/setup.py
  sed -i '/if sys.version_info.major/,/"gtk", "pango"])/d' ${:slip.dbus}/setup.py
  sed -i '/setup(name="slip"/,/xml.etree.ElementTree"])/d' ${:slip.gtk}/setup.py
slip = ${buildout:parts-directory}/slip
slip.dbus = ${buildout:parts-directory}/slip.dbus
slip.gtk = ${buildout:parts-directory}/slip.gtk

[slip.gtk-develop]
recipe = zc.recipe.egg:develop
setup = ${python-slip:slip.gtk}
egg-name = slip.gtk

[slip.dbus-develop]
recipe = zc.recipe.egg:develop
setup = ${python-slip:slip.dbus}
egg-name = slip.dbus

[slip-develop]
recipe = zc.recipe.egg:develop
setup = ${python-slip:slip}
egg-name = slip

[python-slip-egg]
recipe = zc.recipe.egg
eggs =
  ${slip-develop:egg-name}
  ${slip.dbus-develop:egg-name}
  ${slip.gtk-develop:egg-name}