Sha256: d6ef6d03b020e09b7712aa18eefa4b4bd258d5a45c342bafe41ebdc2ddd94f68

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

# file: lib/rip/commands/build.rb
#
# rip build
# Builds Ruby extensions for installed packages

module Rip
  module Commands
    def build(options={}, *packages)
      packages.each do |package_name|
        ui.puts "rip: building package: #{package_name}"
        package = manager.package(package_name)

        Dir["#{package.cache_path}/**/extconf.rb"].each do |build_file|
          build_dir = File.dirname(build_file)
          Dir.chdir(build_dir) {
            system "ruby extconf.rb"
            system "make install RUBYARCHDIR=#{manager.dir}/lib"
          }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rip-0.0.1 lib/rip/commands/build.rb