diff options
| author | Jack Nagel | 2014-06-30 20:23:56 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-30 20:31:14 -0500 |
| commit | a3958c6d8bf98fc407b97d0b621b3b31cd1a4f79 (patch) | |
| tree | 89788589a10cf36b82e98d7d23899533b044f09a /Library | |
| parent | d792b6465524dbcefa7876e2fb63c8e7b6074aa8 (diff) | |
| download | brew-a3958c6d8bf98fc407b97d0b621b3b31cd1a4f79.tar.bz2 | |
Use formula opt shortcuts
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/caveats.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 2e1813b83..cd03952ee 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -92,11 +92,11 @@ class Caveats if f.plist_startup s << "To have launchd start #{f.name} at startup:" s << " sudo mkdir -p #{destination}" unless destination_path.directory? - s << " sudo cp -fv #{HOMEBREW_PREFIX}/opt/#{f.name}/*.plist #{destination}" + s << " sudo cp -fv #{f.opt_prefix}/*.plist #{destination}" else s << "To have launchd start #{f.name} at login:" s << " mkdir -p #{destination}" unless destination_path.directory? - s << " ln -sfv #{HOMEBREW_PREFIX}/opt/#{f.name}/*.plist #{destination}" + s << " ln -sfv #{f.opt_prefix}/*.plist #{destination}" end s << "Then to load #{f.name} now:" if f.plist_startup @@ -112,7 +112,7 @@ class Caveats s << "To reload #{f.name} after an upgrade:" if f.plist_startup s << " sudo launchctl unload #{plist_link}" - s << " sudo cp -fv #{HOMEBREW_PREFIX}/opt/#{f.name}/*.plist #{destination}" + s << " sudo cp -fv #{f.opt_prefix}/*.plist #{destination}" s << " sudo launchctl load #{plist_link}" else s << " launchctl unload #{plist_link}" diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index d07fea759..4d929de98 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -727,8 +727,8 @@ class Formula build variables: EOS - s << " LDFLAGS: -L#{HOMEBREW_PREFIX}/opt/#{name}/lib\n" if lib.directory? - s << " CPPFLAGS: -I#{HOMEBREW_PREFIX}/opt/#{name}/include\n" if include.directory? + s << " LDFLAGS: -L#{opt_lib}\n" if lib.directory? + s << " CPPFLAGS: -I#{opt_include}\n" if include.directory? end s << "\n" end |
