Skip to content

Instantly share code, notes, and snippets.

@Keno
Created July 9, 2012 19:38
Show Gist options
  • Save Keno/3078447 to your computer and use it in GitHub Desktop.
Save Keno/3078447 to your computer and use it in GitHub Desktop.
include_recipe "mingw::default"
execute "install msys" do
command "mingw-get install msys"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\make.exe") }
end
execute "install wget" do
command "mingw-get install msys-wget"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\wget.exe") }
end
execute "install patch" do
command "mingw-get install msys-patch"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\patch.exe") }
end
execute "install tar" do
command "mingw-get install msys-tar"
command "mingw-get install msys-libbz2"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\tar.exe") }
end
execute "install wget" do
command "mingw-get install msys-perl"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\perl.exe") }
end
execute "install m4" do
command "mingw-get install msys-m4"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\m4.exe") }
end
execute "install flex" do
command "mingw-get install msys-m4"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\flex.exe") }
end
execute "install iconv" do
command "mingw-get install mingw32-libiconv"
not_if { File.exists?("#{node[:mingw][:dir]}\\bin\\iconv.exe") }
end
env "PATH" do
action :modify
delim File::PATH_SEPARATOR
value "#{node[:mingw][:dir]}\\msys\\1.0\\bin"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment