depends python &&
depends SETUPTOOLS &&

runtime_depends genshi &&

if list_find "$TRAC_DB" sqlite; then
  runtime_depends pysqlite &&
  runtime_depends sqlite
fi &&

if list_find "$TRAC_DB" mysql; then
  runtime_depends mysql-python &&
  runtime_depends MYSQL
fi &&

if list_find "$TRAC_DB" postgresql; then
  runtime_depends psycopg2 &&
  runtime_depends postgresql
fi &&

suggest_depends babel "" "" "for localization support" &&
suggest_depends subversion "" "" "for Subversion SCM support" &&
suggest_depends WEBSERVER "" "" "to run connected to a 'real' webserver" &&
suggest_depends flup "" "" "for SCGI and AJP capabilities in tracd" &&

if is_depends_enabled $SPELL $(get_spell_provider $SPELL WEBSERVER) &&
   echo $(get_spell_provider $SPELL WEBSERVER) | grep -Eq "^(apache|httpd-)"; then
  suggest_depends mod_wsgi "" "" "for Apache WSGI module usage" &&
  suggest_depends mod_python "" "" "for faster execution with Apache"
fi &&

suggest_depends pygments "" "" "for syntax highlighting (Pygments)" &&
suggest_depends enscript "" "" "for syntax highlighting (Enscript)" &&
suggest_depends pytz "" "" "for advanced timezone definition and DST support" &&
suggest_depends docutils "" "" "for reStructuredText (RST) support in wiki"
