aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2013-08-19 17:21:13 -0500
committerJack Nagel2013-08-19 17:21:13 -0500
commitea8f51256b22f86c3d802ac6432c3bb76ca434cf (patch)
tree44426f47ba62e5cc897f13b1bfa4f60c4401fc76 /Library/Homebrew/extend
parentb672b44cf9d60738276c137a064b31e68572e196 (diff)
downloadbrew-ea8f51256b22f86c3d802ac6432c3bb76ca434cf.tar.bz2
Use ENV.append_path
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb24
-rw-r--r--Library/Homebrew/extend/ENV/super.rb2
2 files changed, 13 insertions, 13 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index caf0471e8..204b636a2 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -72,9 +72,9 @@ module Stdenv
# For Xcode 4.3 (*without* the "Command Line Tools for Xcode") compiler and tools inside of Xcode:
if not MacOS::CLT.installed? and MacOS::Xcode.installed? and MacOS::Xcode.version >= "4.3"
# Some tools (clang, etc.) are in the xctoolchain dir of Xcode
- append 'PATH', "#{MacOS.xctoolchain_path}/usr/bin", File::PATH_SEPARATOR if MacOS.xctoolchain_path
+ append_path 'PATH', "#{MacOS.xctoolchain_path}/usr/bin" if MacOS.xctoolchain_path
# Others are now at /Applications/Xcode.app/Contents/Developer/usr/bin
- append 'PATH', "#{MacOS.dev_tools_path}", File::PATH_SEPARATOR
+ append_path 'PATH', MacOS.dev_tools_path
end
end
@@ -217,15 +217,15 @@ module Stdenv
# Extra setup to support Xcode 4.3+ without CLT.
self['SDKROOT'] = sdk
# Tell clang/gcc where system include's are:
- append 'CPATH', "#{sdk}/usr/include", File::PATH_SEPARATOR
+ append_path 'CPATH', "#{sdk}/usr/include"
# The -isysroot is needed, too, because of the Frameworks
append_to_cflags "-isysroot #{sdk}"
append 'CPPFLAGS', "-isysroot #{sdk}"
# And the linker needs to find sdk/usr/lib
append 'LDFLAGS', "-isysroot #{sdk}"
# Needed to build cmake itself and perhaps some cmake projects:
- append 'CMAKE_PREFIX_PATH', "#{sdk}/usr", File::PATH_SEPARATOR
- append 'CMAKE_FRAMEWORK_PATH', "#{sdk}/System/Library/Frameworks", File::PATH_SEPARATOR
+ append_path 'CMAKE_PREFIX_PATH', "#{sdk}/usr"
+ append_path 'CMAKE_FRAMEWORK_PATH', "#{sdk}/System/Library/Frameworks"
end
end
@@ -250,24 +250,24 @@ module Stdenv
def x11
# There are some config scripts here that should go in the PATH
- append 'PATH', MacOS::X11.bin, File::PATH_SEPARATOR
+ append_path 'PATH', MacOS::X11.bin
# Append these to PKG_CONFIG_LIBDIR so they are searched
# *after* our own pkgconfig directories, as we dupe some of the
# libs in XQuartz.
- append 'PKG_CONFIG_LIBDIR', MacOS::X11.lib/'pkgconfig', File::PATH_SEPARATOR
- append 'PKG_CONFIG_LIBDIR', MacOS::X11.share/'pkgconfig', File::PATH_SEPARATOR
+ append_path 'PKG_CONFIG_LIBDIR', MacOS::X11.lib/'pkgconfig'
+ append_path 'PKG_CONFIG_LIBDIR', MacOS::X11.share/'pkgconfig'
append 'LDFLAGS', "-L#{MacOS::X11.lib}"
- append 'CMAKE_PREFIX_PATH', MacOS::X11.prefix, File::PATH_SEPARATOR
- append 'CMAKE_INCLUDE_PATH', MacOS::X11.include, File::PATH_SEPARATOR
+ append_path 'CMAKE_PREFIX_PATH', MacOS::X11.prefix
+ append_path 'CMAKE_INCLUDE_PATH', MacOS::X11.include
append 'CPPFLAGS', "-I#{MacOS::X11.include}"
- append 'ACLOCAL_PATH', MacOS::X11.share/'aclocal', File::PATH_SEPARATOR
+ append_path 'ACLOCAL_PATH', MacOS::X11.share/'aclocal'
unless MacOS::CLT.installed?
- append 'CMAKE_PREFIX_PATH', MacOS.sdk_path/'usr/X11', File::PATH_SEPARATOR
+ append_path 'CMAKE_PREFIX_PATH', MacOS.sdk_path/'usr/X11'
append 'CPPFLAGS', "-I#{MacOS::X11.include}/freetype2"
append 'CFLAGS', "-I#{MacOS::X11.include}"
end
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 84247b2fd..1ca49200b 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -96,7 +96,7 @@ module Superenv
# so xcrun may not be able to find it
if self['HOMEBREW_CC'] == 'gcc-4.2'
apple_gcc42 = Formula.factory('apple-gcc42') rescue nil
- append('PATH', apple_gcc42.opt_prefix/'bin', File::PATH_SEPARATOR) if apple_gcc42
+ append_path('PATH', apple_gcc42.opt_prefix/'bin') if apple_gcc42
end
end