aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-15 22:02:14 -0700
committerAdam Vandenberg2011-03-15 22:04:13 -0700
commit3338b146b8e59215e09fec6694b27f476002cc15 (patch)
tree07153ef6b68350d1a66e8e08525d2ff51458e1f2 /Library
parent9eb7c1995ff582db08a918a887e59e7de06de532 (diff)
downloadhomebrew-3338b146b8e59215e09fec6694b27f476002cc15.tar.bz2
install - change keg-only warning
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/install.rb22
1 files changed, 9 insertions, 13 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb
index 2aadaec00..d2885c576 100755
--- a/Library/Homebrew/install.rb
+++ b/Library/Homebrew/install.rb
@@ -2,21 +2,17 @@
require 'global'
def text_for_keg_only_formula f
- if f.keg_only? == :provided_by_osx
- rationale = "Mac OS X already provides this program and installing another version in\nparallel can cause all kinds of trouble."
- elsif f.keg_only?.kind_of? String
- rationale = "The formula provides the following rationale:\n\n#{f.keg_only?.chomp}"
- else
- rationale = "The formula didn't provide any rationale for this."
- end
<<-EOS
-This formula is keg-only. This means it is not symlinked into #{HOMEBREW_PREFIX}.
-#{rationale}
+This formula is keg-only, so it was not symlinked into #{HOMEBREW_PREFIX}.
+
+#{f.keg_only?}
+
+Generally there are no consequences of this for you.
+If you build your own software and it requires this formula, you'll need
+to add its lib & include paths to your build variables:
-Generally there are no consequences of this for you, however if you build
-your own software and it requires this formula, you may want to run this
-command to link it into the Homebrew prefix:
- $ brew link #{f.name}
+ LDFLAGS="$LDFLAGS #{f.lib}"
+ CPPFLAGS="$CPPFLAGS #{f.include}"
EOS
end