Sha256: 0b4e106be6d09324cbd543d84d9cc5e67a140ec51cdfad2072fc21d5cd38f797
Contents?: true
Size: 687 Bytes
Versions: 4
Compression:
Stored size: 687 Bytes
Contents
require "mkmf" require "fileutils" File.delete('cpu.c') if File.exists?('cpu.c') case RUBY_PLATFORM when /hpux/i FileUtils.cp("hpux/hpux.c", "cpu.c") when /sunos|solaris/i FileUtils.cp("sunos/sunos.c", "cpu.c") unless have_func("getloadavg") have_library("kstat") end when /bsd|darwin/i FileUtils.cp("bsd/bsd.c", "cpu.c") have_func("sysctlbyname") have_library("kvm") have_header("kvm.h") when /linux|dos|windows|win32|mingw|cygwin/i STDERR.puts "Run 'ruby install.rb' instead for this platform" else STDERR.puts "This platform is not currently supported. Exiting..." end create_makefile("sys/cpu")
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sys-cpu-0.6.2-x86-linux | ext/extconf.rb |
sys-cpu-0.6.2-x86-mingw32 | ext/extconf.rb |
sys-cpu-0.6.2 | ext/extconf.rb |
sys-cpu-0.6.1 | ext/extconf.rb |