Sha256: 5ff1948e6264b37e917f9208a0a762c0481e2d6012f7582687dae6a024d4a6a9

Contents?: true

Size: 520 Bytes

Versions: 36

Compression:

Stored size: 520 Bytes

Contents

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

require 'rubygems/ext/builder'

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

  def self.build(extension, directory, dest_path, results, args=[])
    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

36 entries across 36 versions & 1 rubygems

Version Path
rubygems-update-2.0.17 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.16 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.15 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.11 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.14 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.10 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.13 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.12 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.9 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.8 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.7 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.11 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.6 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.10 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.5 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.4 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.0.9 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.3 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.2 lib/rubygems/ext/configure_builder.rb
rubygems-update-2.1.1 lib/rubygems/ext/configure_builder.rb