Sha256: 0b3ff1d642eb1f0c0ead5a994c5418ae9cfc415e9f144055130b8b1cd7f9545f
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
require "rubygems" unless defined?(Gem) require "mkmf" $extout_prefix = '/numru' alias __install_dirs install_dirs def install_dirs dirs = __install_dirs dirs.assoc("RUBYARCHDIR")[1].sub!(/target_prefix/,'extout_prefix') dirs end #dir_config('narray',$sitearchdir,$sitearchdir) hoge = Gem::GemPathSearcher.new.find("narray") narray_fullname = hoge.full_name narray_installpath = hoge.installation_path narray_include = "#{narray_installpath}/gems/#{narray_fullname}/" narray_lib = "#{narray_installpath}/gems/#{narray_fullname}/" dir_config('narray',narray_include,narray_lib) if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then print <<EOS ** configure error ** Header narray.h or narray_config.h is not found. If you have these files in /narraydir/include, try the following: % ruby extconf.rb --with-narray-include=/narraydir/include EOS exit(-1) end if /cygwin|mingw/ =~ RUBY_PLATFORM unless have_library("narray") print <<-EOS ** configure error ** libnarray.a is not found. % ruby extconf.rb --with-narray-lib=/narraydir/lib EOS exit(-1) end end create_makefile("numru/gphys_ext")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gphys-1.1.1b | extconf.rb |