Sha256: 0493867cdc89abb3d6daebb24cc3b9b25b3e42f178559a89dbb678f3cd93dd0f

Contents?: true

Size: 501 Bytes

Versions: 86

Compression:

Stored size: 501 Bytes

Contents

#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

class Gem::Ext::ConfigureBuilder < Gem::Ext::Builder

  def self.build(extension, directory, dest_path, results, args=[], lib_dir=nil)
    unless File.exist?('Makefile') then
      cmd = "sh ./configure --prefix=#{dest_path}"
      cmd << " #{args.join ' '}" unless args.empty?

      run cmd, results
    end

    make dest_path, results

    results
  end

end

Version data entries

86 entries across 58 versions & 4 rubygems

Version Path
rubygems-update-2.4.0 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.3.0 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.2.2 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.2.1 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.2.0 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.2.0.rc.1 lib/rubygems/ext/configure_builder.rb