Sha256: 5fcfa221444f0b16621526bb1b1964eb2deb1854c7b69ecef6dc111030110051
Contents?: true
Size: 815 Bytes
Versions: 16
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 "svn", "export", "-r1824", "http://gyp.googlecode.com/svn/trunk", "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
16 entries across 16 versions & 1 rubygems