From 77bd03a93ad528b13cc1ce4b590518a2d50fc314 Mon Sep 17 00:00:00 2001
From: Leonardo Rochael Almeida <leonardo@nexedi.com>
Date: Thu, 8 Apr 2010 03:16:02 +0000
Subject: [PATCH] cache eggs needed by instance, coalesce business templates
 into a single part

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34340 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/profiles/development-2.12.cfg   |  2 +-
 buildout/profiles/official-2.12.cfg      |  3 ++-
 buildout/software-profiles/erp5-2.12.cfg | 24 ++++++++++++++++++++++--
 3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/buildout/profiles/development-2.12.cfg b/buildout/profiles/development-2.12.cfg
index bdc6565c8d..bfd984a09f 100644
--- a/buildout/profiles/development-2.12.cfg
+++ b/buildout/profiles/development-2.12.cfg
@@ -18,7 +18,7 @@ products =
 # XXX have this list be populated by software_definition keys. Maybe adjust
 # erp5.recipe.testrunner to accept this parameter in multiple lines and convert
 # to this comma separated list.  
-bt5_path = ${development-site:bt5-path},${buildout:software_home}/parts/bt5-erp5,${buildout:software_home}/parts/bt5-erp5-extra
+bt5_path = ${development-site:bt5-path},${business-templates:paths}
 
 instance-home = ${development-site:instancehome}
 initialization =
diff --git a/buildout/profiles/official-2.12.cfg b/buildout/profiles/official-2.12.cfg
index 78bff984dc..3d2380489d 100644
--- a/buildout/profiles/official-2.12.cfg
+++ b/buildout/profiles/official-2.12.cfg
@@ -50,7 +50,8 @@ parts =
   bootstrap2.6
   bt5-erp5
   bt5-erp5-extra
-#  business-templates
+  business-templates
+  precache-eggs
   software_home
 
 [show-requirements]
diff --git a/buildout/software-profiles/erp5-2.12.cfg b/buildout/software-profiles/erp5-2.12.cfg
index a2d7bd7926..024ca209d8 100644
--- a/buildout/software-profiles/erp5-2.12.cfg
+++ b/buildout/software-profiles/erp5-2.12.cfg
@@ -63,7 +63,6 @@ rpath =${software_definition:mysql_software}/lib/mysql/
 recipe = minitage.recipe.fetch
 urls =
 	git://git.hforge.org/Localizer.git|git|| Localizer
-    svn://svn.zope.org/repos/main/Zelenium/trunk|svn|| Zelenium
     https://svn.plone.org/svn/collective/ExtFile/trunk|svn|| ExtFile
 
 [products]
@@ -74,7 +73,6 @@ command =
   echo "Product folders: ${:paths}"
 update-command = ${:command}
 
-
 [eggs]
 recipe = zc.recipe.egg
 eggs =
@@ -122,6 +120,8 @@ eggs =
     Products.DCWorkflowGraph
     Products.MimetypesRegistry
     Products.ExternalEditor
+    Products.Zelenium
+
 # Currently forked in our repository
 #    Products.PortalTransforms
 # Dependency for our fork of PortalTransforms
@@ -143,6 +143,17 @@ 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
+  supervisor
+  plone.recipe.zope2instance
+  erp5.recipe.testrunner
+
 [omelette]
 # XXX don't use this part until this omelette bug is fixed:
 # https://bugs.launchpad.net/collective.buildout/+bug/553005
@@ -153,6 +164,14 @@ packages =
 products =
     ${products:paths}
 
+[business-templates]
+recipe = plone.recipe.command
+# comma separated list for the benefit of [runUnitTest]
+paths = ${bt5-erp5:location},${bt5-erp5-extra:location}
+command =
+  echo "Business Template Paths: ${:paths}"
+update-command = ${:command}
+
 [requirements]
 development =
   /usr/include/glib-2.0/glib.h
@@ -164,3 +183,4 @@ development =
 
 binary =
   zip
+  pkg-config
-- 
2.30.9