cookbook 'boost-source', '= 0.1.0'
boost-source (2) Versions 0.1.0 Follow0
Builds/Installs C++ boost library
cookbook 'boost-source', '= 0.1.0', :supermarket
knife supermarket install boost-source
knife supermarket download boost-source
boost-source
A chef cookbook that builds and installs the C++ Boost library from a
source tarball.
Supported Platforms
- All major.
Attributes
Attribute | Description | Type | Default |
---|---|---|---|
major_ver | Major version of boost | String | 1 |
minor_ver | Minor version of boost | String | 58 |
patch_ver | Patch version of boost | String | 0 |
download_url | Overrides the url where boost is downloaded from. Can be used to set a local file. | String | Dynamically built. |
file_ext | Extension of boost tarball (i.e. .gz, .bz2) | String | .gz |
install_prefix | Prefix location where boost gets installed. | String | /usr/local |
build_cmd | The bootstrap and build command for boost. | String | ./bootstrap.sh --prefix=/usr/local && ./b2 install |
Usage
Include default recipe and the 1.58.0 (current latest) will be
downloaded, built and installed.
include_recipe 'boost-source'
To control a specific version, set the attributes accordingly. To
install 1.57.0 of boost you would set the minor_ver
attribute and then
include the recipe:
node['boost-source']['minor_ver'] = "57"
include_recipe 'boost-source'
boost-source::default
Include boost-source
in your node's run_list
:
{ "run_list": [ "recipe[boost-source::default]" ] }
License and Authors
Author:: Scott Saad (saadsj@gmail.com)
Dependent cookbooks
apt >= 0.0.0 |
build-essential >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of boost-source
Foodcritic Metric
0.1.0 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:25
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:29
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:31
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:39
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:43
FC024: Consider adding platform equivalents: /tmp/cook/a40683507e169900192aba9d/boost-source/recipes/default.rb:13
0.1.0 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:29
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:31
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:39
FC002: Avoid string interpolation where not required: /tmp/cook/a40683507e169900192aba9d/boost-source/attributes/default.rb:43
FC024: Consider adding platform equivalents: /tmp/cook/a40683507e169900192aba9d/boost-source/recipes/default.rb:13