Skip to content

Commit

Permalink
parallel v0.99.1, upgrade version, use homebrew cookbook in osx
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed May 31, 2011
1 parent 4a148b6 commit 9d8adb5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
10 changes: 8 additions & 2 deletions gnu_parallel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ Installs GNU parallel.
Requirements
============

Requires `build-essential` cookbook for installing from source, which is the default.
Requires `build-essential` cookbook for installing from source.

On OS X, requires the `homebrew` cookbook, available from http://community.opscode.com/cookbooks/homebrew.

Attributes
==========

For now see the attributes file :).
* `node['gnu_parallel']['install_method']` - Specifies the recipe to use for installing homebrew. On OSX, homebrew is used, on everything else source is used, as there are no native packages for GNU parallel in most distributions.
* `node['gnu_parallel']['url']` - base url to download from. Default is the GNU software distribution FTP server.
* `node['gnu_parallel']['version']` - version of parallel to install.
* `node['gnu_parallel']['checksum']` - checksum of the source tarball.
* `node['gnu_parallel']['configure_options']` - array of options to pass to ./configure for compiling parallel.

Usage
=====
Expand Down
4 changes: 2 additions & 2 deletions gnu_parallel/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
end

default['gnu_parallel']['url'] = 'http://ftp.gnu.org/gnu/parallel'
default['gnu_parallel']['version'] = '20110205'
default['gnu_parallel']['checksum'] = '72ffaf2fa8497595321dc8e04b9cc8770969d75328cb09cbb7e1138deba13e7c'
default['gnu_parallel']['version'] = '20110422'
default['gnu_parallel']['checksum'] = '93de16270d6d68504b1e66893838f499c5120c75cf02efabbceb564a1520dfe7'
default['gnu_parallel']['configure_options'] = []
1 change: 1 addition & 0 deletions gnu_parallel/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
version "0.99.1"

depends "build-essential"
depends "homebrew" # comes from the community site
8 changes: 6 additions & 2 deletions gnu_parallel/recipes/homebrew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
# limitations under the License.
#

exec 'brew install parallel' do
not_if "brew list parallel"
include_recipe "homebrew"

if Chef::Platform.find_provider_for_node(node, :package) == Chef::Provider::Package::Homebrew
package p do
action :install
end
end

0 comments on commit 9d8adb5

Please sign in to comment.