Sha256: 0938e3ccc16c5d78526b06ed8ffa13b4c6db6659790f66c40850a951d40ff830
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
node.reverse_merge!( tig: { prefix: "/usr/local", src: "/usr/local/src", scheme: "git", }, ) package "git" package "gcc" package "automake" package "make" case node[:platform] when "debian", "ubuntu" package "libncursesw5-dev" when 'redhat' package "ncurses-devel" end tig_dir = "#{node[:tig][:src]}/tig" git tig_dir do repository "#{node[:tig][:scheme]}://github.com/jonas/tig.git" revision "tig-#{node[:tig][:version]}" if node[:tig][:version] end [ "make configure", "./configure", "make clean", "make prefix=#{node[:tig][:prefix]}", "make install prefix=#{node[:tig][:prefix]}", ].each do |command| execute command do cwd tig_dir not_if "#{node[:tig][:prefix]}/bin/tig -v | grep #{node[:tig][:version]}" if node[:tig][:version] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itamae-plugin-recipe-tig-0.1.1 | lib/itamae/plugin/recipe/tig/default.rb |