From b267faaf5ed98a0cb31bd8dc376aa07aceed725a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 17 Feb 2010 14:17:47 +0000
Subject: [PATCH]  - use software_definition to have detached environments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32683 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/official.cfg                         | 2 ++
 buildout/software-profiles/openoffice-bin.cfg | 6 +++---
 buildout/templates/oood-runserw.in            | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/buildout/official.cfg b/buildout/official.cfg
index c1a7c50ed8..a016614973 100644
--- a/buildout/official.cfg
+++ b/buildout/official.cfg
@@ -76,3 +76,5 @@ command =
 software_home = ${buildout:directory}
 mysql_software = ${mysql-tritonn-5.0:location}
 zope_software = ${zope-2.8:location}
+openoffice_software = ${openoffice-bin:location}
+oood_software = ${oood:location}
diff --git a/buildout/software-profiles/openoffice-bin.cfg b/buildout/software-profiles/openoffice-bin.cfg
index 6850980b5a..09e47374f1 100644
--- a/buildout/software-profiles/openoffice-bin.cfg
+++ b/buildout/software-profiles/openoffice-bin.cfg
@@ -3,9 +3,9 @@ parts =
   openoffice-bin
 
 [configuration]
-openoffice_python = ${openoffice-bin:location}/basis-link/program/python.bin
-openoffice_program = ${openoffice-bin:location}/program
-openoffice_uno = ${openoffice-bin:location}/basis-link/program/
+openoffice_python = ${software_definition:openoffice_software}/basis-link/program/python.bin
+openoffice_program = ${software_definition:openoffice_software}/program
+openoffice_uno = ${software_definition:openoffice_software}/basis-link/program/
 
 [openoffice-bin]
 recipe = z3c.recipe.openoffice
diff --git a/buildout/templates/oood-runserw.in b/buildout/templates/oood-runserw.in
index 98c0f5d0ed..9386b5a882 100755
--- a/buildout/templates/oood-runserw.in
+++ b/buildout/templates/oood-runserw.in
@@ -1,2 +1,2 @@
 #!/bin/sh
-cd ${buildout:etc-directory} && ${configuration:openoffice_python} ${oood:location}/runserw.py $@
+cd ${buildout:etc-directory} && ${configuration:openoffice_python} ${software_definition:oood_software}/runserw.py $@
-- 
2.30.9