/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
- #--
- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
- # All rights reserved.
- # See LICENSE.txt for permissions.
- #++
- require 'rubygems/ext/builder'
- require 'rubygems/command'
- class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
- def self.build(extension, directory, dest_path, results)
- cmd = "#{Gem.ruby} #{File.basename extension}"
- cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?
- run cmd, results
- make dest_path, results
- results
- end
- end