[buildout]
extends =
  mysql-tritonn-5.0.cfg
  python-2.4.cfg
  mysql-python.cfg
  subversion.cfg
  pysvn-python.cfg
  python-ldap-python.cfg
  glib.cfg

parts =
  cmf15
  itools
  mysql-python
  products-other
  products-deps
  products-erp5

[cmf15]
recipe = plone.recipe.distros
urls =
    http://www.zope.org/Products/CMF/CMF-1.5.4/CMF-1.5.4.tar.gz
nested-packages =
  CMF-1.5.4.tar.gz
version-suffix-packages =
  CMF-1.5.4.tar.gz

[itools]
# use a custom build for itools, to add lib64 to the include path
recipe = zc.recipe.egg:custom
python = python2.4
egg = itools
include-dirs = /usr/include/glib-2.0:/usr/lib/glib-2.0/include/:/usr/lib64/glib-2.0/include/

[products-deps]
recipe = plone.recipe.distros
urls =
    http://www.zope.org/Members/shh/ExtFile/1.4.4/ExtFile-1.4.4.tar.gz
    http://www.zope.org/Members/NIP/ZMailIn/1.0.1/ZMailIn-1-0-1.tgz
    http://www.zope.org/Members/NIP/ZMailIn/1.0.0/CMFMailIn-1.0.0
    http://www.zope.org/Products/PluggableAuthService/PluggableAuthService-1.1b2/PluggableAuthService-1.1b2.tar.gz
    http://download.hforge.org/localizer/Localizer-1.2.3.tar.gz
version-suffix-packages =
    Localizer-1.2.3.tar.gz

[products-ldap]
recipe = plone.recipe.distros

urls =
  http://www.dataflake.org/software/ldapmultiplugins/ldapmultiplugins_1.1/LDAPMultiPlugins-1_1.tgz
  http://www.dataflake.org/software/ldapuserfolder/ldapuserfolder_2.6/LDAPUserFolder-2_6.tgz

[products-other]
recipe = infrae.subversion
# dircty hack to support PluginRegistry/utils.py:17 assumption that products
# are in Products folder
# XXX: Zelenium was eggfied for recent zope versions (2.12) and are available at Bazaar.
#      some better alternative should be used in future.
location = parts/products-other/Products
urls =
    http://svn.plone.org/svn/collective/DCWorkflowGraph/tags/release-0_3/ DCWorkflowGraph
    svn://svn.zope.org/repos/main/Zelenium/trunk/@110603 Zelenium
    svn://svn.zope.org/repos/main/PluginRegistry/tags/1.0 PluginRegistry
    http://svn.plone.org/svn/archetypes/MimetypesRegistry/tags/Archetypes-1.4.0-final MimetypesRegistry

[eggs]
recipe = zc.recipe.egg
eggs =
  ${itools:egg}
  ${mysql-python:egg}
  ${pysvn-python:egg}
  ${python-ldap-python:egg}
  ClientForm
  PyXML
  SOAPpy
  cElementTree
  chardet
  elementtree
  erp5.recipe.mysqldatabase
  erp5diff
  ipdb
  lxml
  mechanize
  numpy
  ordereddict
  paramiko
  ply
  python-ldap
  python-memcached
  pytz
  simplejson
  threadframe
  timerserver
  uuid
  xml_marshaller
  xupdate_processor
  feedparser

python = python2.4
extra-paths =
  ${zope-2.8:location}/lib/python
# shut down script generation. Other parts can generate scripts as needed by
# reusing ${eggs:eggs}

# parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the
# installation of python, which we don't want on an instance
interpreter = python2.4
scripts =
        python=${:interpreter}
        ipython=i${:interpreter}

[precache-eggs]
# recipe to populate the egg cache during software-home build, so instances can
# run in offline mode. Hence, no scripts
recipe = zc.recipe.egg
scripts =
eggs =
  collective.recipe.supervisor
  collective.recipe.template
  erp5.recipe.mysqlserver
  erp5.recipe.ooodinstance
  erp5.recipe.standaloneinstance
  erp5.recipe.testrunner
  plone.recipe.command
  plone.recipe.zope2instance
  supervisor

[omelette]
# XXX don't use this part until this omelette bug is fixed:
# https://bugs.launchpad.net/collective.buildout/+bug/553005
recipe = collective.recipe.omelette
eggs = ${eggs:eggs}
packages =
      ${itools:lib} .
products =
    ${products:paths}