[Erp5-report] r36157 luke - in /erp5/trunk/utils/erp5.recipe.softwareinstance: ./ src/ src/...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 9 14:46:56 CEST 2010


Author: luke
Date: Wed Jun  9 14:46:55 2010
New Revision: 36157

URL: http://svn.erp5.org?rev=36157&view=rev
Log:
 - initial version of recipe to build any software

Added:
    erp5/trunk/utils/erp5.recipe.softwareinstance/
    erp5/trunk/utils/erp5.recipe.softwareinstance/CHANGES.txt   (with props)
    erp5/trunk/utils/erp5.recipe.softwareinstance/README.txt   (with props)
    erp5/trunk/utils/erp5.recipe.softwareinstance/setup.py
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/__init__.py
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/__init__.py
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/softwareinstance/
    erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/softwareinstance/__init__.py

Added: erp5/trunk/utils/erp5.recipe.softwareinstance/CHANGES.txt
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.softwareinstance/CHANGES.txt?rev=36157&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.softwareinstance/CHANGES.txt (added)
+++ erp5/trunk/utils/erp5.recipe.softwareinstance/CHANGES.txt [utf8] Wed Jun  9 14:46:55 2010
@@ -0,0 +1,8 @@
+Changelog
+=========
+
+0.1 (2010-06-09)
+----------------
+
+- Initial version
+  [Lukasz Nowak]

Propchange: erp5/trunk/utils/erp5.recipe.softwareinstance/CHANGES.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: erp5/trunk/utils/erp5.recipe.softwareinstance/README.txt
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.softwareinstance/README.txt?rev=36157&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.softwareinstance/README.txt (added)
+++ erp5/trunk/utils/erp5.recipe.softwareinstance/README.txt [utf8] Wed Jun  9 14:46:55 2010
@@ -0,0 +1,20 @@
+Introduction
+============
+
+This recipe allows to build any type of software in controllable way.
+
+Inspired on:
+
+ * zc.recipe.cmmi
+ * hexagonit.recipe.cmmi
+
+Plans
+=====
+
+Support different build / installation backends:
+
+ * configure / make / make install
+ * pure make like 'make install TARGET=location'
+ * scons
+ * ant
+ * ...

Propchange: erp5/trunk/utils/erp5.recipe.softwareinstance/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: erp5/trunk/utils/erp5.recipe.softwareinstance/setup.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.softwareinstance/setup.py?rev=36157&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.softwareinstance/setup.py (added)
+++ erp5/trunk/utils/erp5.recipe.softwareinstance/setup.py [utf8] Wed Jun  9 14:46:55 2010
@@ -0,0 +1,33 @@
+from setuptools import setup, find_packages
+
+name = "erp5.recipe.softwareinstance"
+version = '0.1'
+
+def read(name):
+    return open(name).read()
+
+long_description=( read('README.txt')
+                   + '\n' +
+                   read('CHANGES.txt')
+                 )
+
+setup(
+    name = name,
+    version = version,
+    author = "Lukasz Nowak",
+    author_email = "luke at nexedi.com",
+    description = "ZC Buildout recipe for create instance of a software",
+    long_description=long_description,
+    license = "ZPL 2.1",
+    keywords = "software compilation buildout",
+    classifiers=[
+        "License :: OSI Approved :: Zope Public License",
+        "Framework :: Buildout",
+        ],
+    packages = find_packages('src'),
+    package_dir = {'': 'src'},
+    include_package_data = True,
+    install_requires = ['zc.recipe.egg', 'setuptools', 'zc.recipe.cmmi'],
+    namespace_packages = ['erp5', 'erp5.recipe'],
+    entry_points = {'zc.buildout': ['default = %s:Recipe' % name]},
+    )

Added: erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/__init__.py?rev=36157&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/__init__.py [utf8] Wed Jun  9 14:46:55 2010
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__) 

Added: erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/__init__.py?rev=36157&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/__init__.py [utf8] Wed Jun  9 14:46:55 2010
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__) 

Added: erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/softwareinstance/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/softwareinstance/__init__.py?rev=36157&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/softwareinstance/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.softwareinstance/src/erp5/recipe/softwareinstance/__init__.py [utf8] Wed Jun  9 14:46:55 2010
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
+# Copyright (c) 2006-2008 Zope Corporation and Contributors.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+from zc.recipe.cmmi import Recipe as OriginalRecipe, system
+
+class Recipe(OriginalRecipe):
+  def cmmi(self, dest):
+    configure_options = self.configure_options
+    run_configure = self.options.get('run-configure', 'true').lower()
+
+    make_options = self.options.get('make-options', None)
+    run_make = self.options.get('run-make', 'true').lower()
+
+    make_install_options = self.options.get('make-install-options', None)
+    run_make_install = self.options.get('run-make', 'true').lower()
+    make_install_destination_parameter = self.options.get(
+        'make-install-destination-parameter', None)
+
+    if run_configure == 'true':
+      if configure_options is None:
+          configure_options = '--prefix=%s' % dest
+      if self.extra_options:
+          configure_options += ' %s' % self.extra_options
+      system("%s %s" % (self.configure_cmd, configure_options))
+
+    if run_make == 'true':
+      make_command = "make"
+      if make_options is not None:
+        make_command += " " + make_options
+      system(make_command)
+    if run_make_install == 'true':
+      make_install_command = "make install"
+      if make_install_options is not None:
+        make_install_command += " " + make_install_options
+      if make_install_destination_parameter is not None:
+        make_install_command += " " + make_install_destination_parameter + dest
+      system(make_install_command)




More information about the Erp5-report mailing list