compass-adapters/chef/cookbooks/erlang/recipes/source.rb

41 lines
1.2 KiB
Ruby

# Cookbook Name:: erlang
# Recipe:: default
# Author:: Joe Williams <joe@joetify.com>
# Author:: Matt Ray <matt@opscode.com>
# Author:: Hector Castro <hector@basho.com>
#
# Copyright 2008-2009, Joe Williams
# Copyright 2011, Opscode Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
include_recipe 'build-essential'
erlang_deps = case node['platform_family']
when 'debian'
%w{ libncurses5-dev openssl libssl-dev }
when 'rhel', 'fedora'
%w{ ncurses-devel openssl-devel }
else
[]
end
erlang_deps.each do |pkg|
package pkg do
action :install
end
end
package 'erlang'