Sha256: 480c5575171908de5093518dc46ceda45b5e389102dfdb8e088efa6b2b033f3a

Contents?: true

Size: 1.8 KB

Versions: 46

Compression:

Stored size: 1.8 KB

Contents

define 'cc' do
  name "C compiler"
  website "http://gcc.gnu.org/"
  define_checker do
    PhusionPassenger.require_passenger_lib '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
    PhusionPassenger.require_passenger_lib '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
    PhusionPassenger.require_passenger_lib '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
    PhusionPassenger.require_passenger_lib '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

46 entries across 46 versions & 2 rubygems

Version Path
passenger-5.0.4 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-5.0.3 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-5.0.2 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-5.0.1 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-5.0.0.rc2 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-5.0.0.rc1 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb