From c130cf3e71c8feaf29515c35b787a43bd0599c12 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 2 Oct 2009 18:36:58 +0100 Subject: [PATCH] HttpDownloadStrategy renamed CurlDownloadStrategy Because people didn't realise it was actually curl and thus supports eg. ftp too. --- Library/Homebrew/brewkit.rb | 18 +++++++++--------- Library/Homebrew/download_strategy.rb | 11 ++++++++++- Library/Homebrew/formula.rb | 2 +- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index f120cc468a..86858ab0f7 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -35,9 +35,15 @@ require 'hardware' ENV['MACOSX_DEPLOYMENT_TARGET']=MACOS_VERSION.to_s -# ignore existing build vars, thus we should have less bugs to deal with -ENV['LDFLAGS'] = '' -ENV['CPPFLAGS'] = '' +unless HOMEBREW_PREFIX.to_s == '/usr/local' + # /usr/local is always in the build system path so only add other paths + ENV['CPPFLAGS'] = "-I#{HOMEBREW_PREFIX}/include" + ENV['LDFLAGS'] = "-L#{HOMEBREW_PREFIX}/lib" +else + # ignore existing build vars, thus we should have less bugs to deal with + ENV['CPPFLAGS'] = '' + ENV['LDFLAGS'] = '' +end if MACOS_VERSION >= 10.6 or ENV['HOMEBREW_USE_LLVM'] ENV['CC'] = '/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2' @@ -93,12 +99,6 @@ ENV['CFLAGS']=ENV['CXXFLAGS']="#{cflags*' '} #{BREWKIT_SAFE_FLAGS}" # compile faster ENV['MAKEFLAGS']="-j#{Hardware.processor_count}" -# /usr/local is always in the build system path -unless HOMEBREW_PREFIX.to_s == '/usr/local' - ENV['CPPFLAGS']="-I#{HOMEBREW_PREFIX}/include" - ENV['LDFLAGS']="-L#{HOMEBREW_PREFIX}/lib" -end - # you can use these functions for packages that have build issues module HomebrewEnvExtension diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 9ec0e38979..2d6b17aa17 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -28,7 +28,7 @@ class AbstractDownloadStrategy end end -class HttpDownloadStrategy