Use here-strings.
This commit is contained in:
parent
7963dbfce8
commit
53b1e8ed2b
@ -11,19 +11,24 @@ end
|
|||||||
|
|
||||||
def check_for_x11
|
def check_for_x11
|
||||||
unless File.exists? '/usr/X11/lib/libpng.dylib'
|
unless File.exists? '/usr/X11/lib/libpng.dylib'
|
||||||
puts "You don't have X11 installed as part of your Xcode installation."
|
puts <<-EOS.undent
|
||||||
puts "This isn't required for all formula. But it is expected by some."
|
You don't have X11 installed as part of your Xcode installation.
|
||||||
|
This isn't required for all formula. But it is expected by some.
|
||||||
|
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_other_package_managers
|
def check_for_other_package_managers
|
||||||
if macports_or_fink_installed?
|
if macports_or_fink_installed?
|
||||||
puts "You have Macports or Fink installed. This can cause trouble."
|
puts <<-EOS.undent
|
||||||
puts "You don't have to uninstall them, but you may like to try temporarily"
|
You have Macports or Fink installed. This can cause trouble.
|
||||||
puts "moving them away, eg."
|
You don't have to uninstall them, but you may like to try temporarily
|
||||||
puts
|
moving them away, eg.
|
||||||
puts " sudo mv /opt/local ~/macports"
|
|
||||||
puts
|
sudo mv /opt/local ~/macports
|
||||||
|
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -32,15 +37,19 @@ def check_gcc_versions
|
|||||||
gcc_40 = gcc_40_build
|
gcc_40 = gcc_40_build
|
||||||
|
|
||||||
if gcc_42 < RECOMMENDED_GCC_42
|
if gcc_42 < RECOMMENDED_GCC_42
|
||||||
puts "Your gcc 4.2.x version is older than the recommended version. It may be advisable"
|
puts <<-EOS.undent
|
||||||
puts "to upgrade to the latest release of Xcode."
|
Your gcc 4.2.x version is older than the recommended version. It may be advisable
|
||||||
puts
|
to upgrade to the latest release of Xcode.
|
||||||
|
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
if gcc_40 < RECOMMENDED_GCC_40
|
if gcc_40 < RECOMMENDED_GCC_40
|
||||||
puts "Your gcc 4.0.x version is older than the recommended version. It may be advisable"
|
puts <<-EOS.undent
|
||||||
puts "to upgrade to the latest release of Xcode."
|
Your gcc 4.0.x version is older than the recommended version. It may be advisable
|
||||||
puts
|
to upgrade to the latest release of Xcode.
|
||||||
|
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user