Sha256: 2e42e59d059ad5300d1d8cda67cdc1932d51d98c9248ed947aac3a1a0dd93588

Contents?: true

Size: 1.76 KB

Versions: 12

Compression:

Stored size: 1.76 KB

Contents

define 'cc' do
  name "C compiler"
  website "http://gcc.gnu.org/"
  define_checker do
    require 'phusion_passenger/platform_info/compiler'
    check_for_command(PlatformInfo.cc, false)
  end
  
  on :debian do
    apt_get_install "build-essential"
  end
  on :mandriva do
    urpmi "gcc"
  end
  on :redhat do
    yum_install "gcc"
  end
  on :gentoo do
    emerge "gcc"
  end
  on :macosx do
    install_osx_command_line_tools
  end
end

define 'c++' do
  name "C++ compiler"
  website "http://gcc.gnu.org/"
  define_checker do
    require 'phusion_passenger/platform_info/compiler'
    check_for_command(PlatformInfo.cxx, false)
  end
  
  on :debian do
    apt_get_install "build-essential"
  end
  on :mandriva do
    urpmi "gcc-c++"
  end
  on :redhat do
    yum_install "gcc-c++"
  end
  on :gentoo do
    emerge "gcc"
  end
  on :macosx do
    install_osx_command_line_tools
  end
end

define 'make' do
  name "The 'make' tool"
  define_checker do
    require 'phusion_passenger/platform_info/compiler'
    check_for_command(PlatformInfo.make)
  end
  
  on :debian do
    apt_get_install "build-essential"
  end
  on :mandriva do
    urpmi "make"
  end
  on :redhat do
    yum_install "make"
  end
  on :macosx do
    install_osx_command_line_tools
  end
  on :other_platforms do
    website "http://www.gnu.org/software/make/"
  end
end

define 'gmake' do
  name "GNU make"
  define_checker do
    require 'phusion_passenger/platform_info/compiler'
    check_for_command(PlatformInfo.gnu_make)
  end
  
  on :debian do
    apt_get_install "build-essential"
  end
  on :mandriva do
    urpmi "make"
  end
  on :redhat do
    yum_install "make"
  end
  on :macosx do
    install_osx_command_line_tools
  end
  on :other_platforms do
    website "http://www.gnu.org/software/make/"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
passenger-4.0.33 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.32 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.31 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.30 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.29 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.28 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.27 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.26 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.25 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.24 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.23 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.21 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb