Sha256: 26f90cf25eb8b24c70a3b9249d12abe68d4982b2537f41f636984aafa9db42b7
Contents?: true
Size: 815 Bytes
Versions: 13
Compression:
Stored size: 815 Bytes
Contents
module FFI::Platform def self.ia32? ARCH == "i386" end def self.x64? ARCH == "x86_64" end end file 'ext/libuv/build' do system "git", "submodule", "update", "--init" end file 'ext/libuv/build/gyp' => 'ext/libuv/build' do result = true if not File.directory?('ext/libuv/build/gyp') result = system "git", "clone", "https://chromium.googlesource.com/external/gyp", "ext/libuv/build/gyp" end raise 'unable to download gyp' unless result end CLEAN.include('ext/libuv/build/gyp') if FFI::Platform.windows? require File.join File.expand_path("../", __FILE__), 'tasks/win' elsif FFI::Platform.mac? require File.join File.expand_path("../", __FILE__), 'tasks/mac' else # UNIX require File.join File.expand_path("../", __FILE__), 'tasks/unix' end
Version data entries
13 entries across 13 versions & 1 rubygems