Sha256: f101e01c6f193b21f8e2b59cb60d69765f7122992ceff2ec10c9b57057b762fe

Contents?: true

Size: 1.78 KB

Versions: 13

Compression:

Stored size: 1.78 KB

Contents

define 'gcc' do
  name "GNU 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
    xcode_install "Command Line Tools"
  end
end

define 'g++' do
  name "GNU 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
    xcode_install "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
    xcode_install "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
    xcode_install "Command Line Tools"
  end
  on :other_platforms do
    website "http://www.gnu.org/software/make/"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
passenger-4.0.19 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.18 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.17 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.16 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.14 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.13 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.10 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.8 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.7 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.6 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.5 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.4 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb
passenger-4.0.3 lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb