Commit c5c5a6fe authored by Kai Lautaportti's avatar Kai Lautaportti

Fixed the documentation.

parent af32057e
...@@ -102,7 +102,7 @@ Supported options ...@@ -102,7 +102,7 @@ Supported options
[component] [component]
recipe = hexagonit.recipe.cmmi recipe = hexagonit.recipe.cmmi
environment = environment environment-section = environment
[environment] [environment]
PATH = %(PATH)s:${buildout:directory}/bin PATH = %(PATH)s:${buildout:directory}/bin
...@@ -258,14 +258,18 @@ more. Let's try again with a new buildout and provide more options. ...@@ -258,14 +258,18 @@ more. Let's try again with a new buildout and provide more options.
... [buildout] ... [buildout]
... parts = package ... parts = package
... ...
... [build-environment]
... CFLAGS = -I/sw/include
... LDFLAGS = -I/sw/lib
...
... [package] ... [package]
... recipe = hexagonit.recipe.cmmi ... recipe = hexagonit.recipe.cmmi
... url = file://%(src)s/package-0.0.0.tar.gz ... url = file://%(src)s/package-0.0.0.tar.gz
... md5sum = 6b94295c042a91ea3203857326bc9209 ... md5sum = 6b94295c042a91ea3203857326bc9209
... prefix = /somewhere/else ... prefix = /somewhere/else
... environment-section = build-environment
... environment = ... environment =
... CFLAGS=-I/sw/include ... LDFLAGS=-L/sw/lib -L/some/extra/lib
... LDFLAGS=-L/sw/lib
... configure-options = ... configure-options =
... --with-threads ... --with-threads
... --without-foobar ... --without-foobar
...@@ -277,14 +281,15 @@ more. Let's try again with a new buildout and provide more options. ...@@ -277,14 +281,15 @@ more. Let's try again with a new buildout and provide more options.
... patches/Makefile.dist.patch ... patches/Makefile.dist.patch
... """ % dict(src=src)) ... """ % dict(src=src))
This configuration uses custom configure options, custom environment, custom This configuration uses custom configure options, an environment
prefix, multiple make targets and also patches the source code before the section, per-part customization to the environment, custom prefix,
multiple make targets and also patches the source code before the
scripts are run. scripts are run.
>>> print system(buildout) >>> print system(buildout)
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] LDFLAGS = -L/sw/lib package: [ENV] LDFLAGS = -L/sw/lib -L/some/extra/lib
package: [ENV] CFLAGS = -I/sw/include package: [ENV] CFLAGS = -I/sw/include
package: Using a cached copy from /sample_buildout/downloads/package-0.0.0.tar.gz package: Using a cached copy from /sample_buildout/downloads/package-0.0.0.tar.gz
package: MD5 checksum OK package: MD5 checksum OK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment