PageRenderTime 36ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/IronPython_Main/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.9.1/rubygems/ext/ext_conf_builder.rb

#
Ruby | 24 lines | 11 code | 8 blank | 5 comment | 0 complexity | b77310ed64176b023020fd56e84a976b MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  1. #--
  2. # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
  3. # All rights reserved.
  4. # See LICENSE.txt for permissions.
  5. #++
  6. require 'rubygems/ext/builder'
  7. require 'rubygems/command'
  8. class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
  9. def self.build(extension, directory, dest_path, results)
  10. cmd = "#{Gem.ruby} #{File.basename extension}"
  11. cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?
  12. run cmd, results
  13. make dest_path, results
  14. results
  15. end
  16. end