From ed5e7752ac76aff62eff28faac081d31deae9b34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 26 Jan 2010 16:48:53 +0000
Subject: [PATCH]  - expose global configuration  - hack python to local one

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31995 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/openoffice-bin/buildout.cfg | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/buildout/openoffice-bin/buildout.cfg b/buildout/openoffice-bin/buildout.cfg
index a8801999d9..320e75b284 100644
--- a/buildout/openoffice-bin/buildout.cfg
+++ b/buildout/openoffice-bin/buildout.cfg
@@ -3,12 +3,21 @@
 parts =
   openoffice-bin
 
+[configuration]
+openoffice-bin_arch = X86_64 # autodetection required
+openoffice-bin_system = Linux # autodetection required
+openoffice-bin_version = 3.1.1
+openoffice-bin_base =
+  http://download.services.openoffice.org/files/stable/${:openoffice-bin_version}
+openoffice-bin_target_dir = OOO310_m19_native_packed-2_en-US.9420
+
 [openoffice-bin]
 # XXX: This recipe seems to not support new open office layout
 # XXX: This recipe does not reuse download-cache
 recipe = z3c.recipe.openoffice
 install-pyuno-egg = yes
-hack-openoffice-python = no
-download-url = http://download.services.openoffice.org/files/stable/3.1.1/OOo_3.1.1_LinuxX86-64_install_wJRE_en-US.tar.gz
-unpack-name = OOO310_m19_native_packed-2_en-US.9420
+hack-openoffice-python = yes
+download-url =
+  ${configuration:openoffice-bin_base}/OOo_${configuration:openoffice-bin_version}_${configuration:openoffice-bin_system}${configuration:openoffice-bin_arch}_install_wJRE_en-US.tar.gz
+unpack-name = ${configuration:openoffice-bin_target_dir}
 version = 3
-- 
2.30.9