Skip to content

Commit

Permalink
Support downloading libyaml on Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Feb 22, 2020
1 parent feffdea commit 0606652
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrbgem.rake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ MRuby::Gem::Specification.new('mruby-yaml') do |spec|
if ! File.exists? yaml_dir
Dir.chdir(build_dir) do
e = {}
run_command e, "curl -L https://pyyaml.org/download/libyaml/yaml-#{yaml_version}.tar.gz | tar -xzv"
tar_zxf = (RUBY_PLATFORM.match(/solaris/) ? 'gzip -d | tar xf -' : 'tar zxf -')
run_command e, "curl -L https://pyyaml.org/download/libyaml/yaml-#{yaml_version}.tar.gz | #{tar_zxf}"
run_command e, "mkdir #{yaml_dir}/build"
end
end
Expand Down

0 comments on commit 0606652

Please sign in to comment.