keg-only messaging changes
- From:
- Adam Vandenberg
- Date:
- 2011-03-13 @ 20:47
Per Issue: https://github.com/mxcl/homebrew/issues/3566
I've started a fork to improve the keg-only messaging, especially for
system-duplicates:
https://github.com/adamv/homebrew/commits/dupe
Output for a system-dupe brew now looks like:
$ brew install texinfo
==> Downloading http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz
File already downloaded and cached to /Users/adamv/Library/Caches/Homebrew
==> ./configure --disable-dependency-tracking
--disable-install-warnings
--prefix=/Users/adamv/homebrew/Cellar/texinfo/4.13a
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Mac OS X already provides this program and installing another version in
parallel can cause all kinds of trouble.
Software that uses TeX, such as lilypond and octave, require a newer version
of these files.
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:
LDFLAGS="$LDFLAGS /Users/adamv/homebrew/Cellar/texinfo/4.13a/lib"
CPPFLAGS="$CPPFLAGS /Users/adamv/homebrew/Cellar/texinfo/4.13a/include"
Changes are in formula.rb, new "KegOnlyReason" class, and the install.rb file.
See texinfo, cairo for some updated formula examples.
The install message no longer mentions "brew link foo", since that
just gets us into trouble, and instead mentions the lib & include
folders.
But I'd be OK with simplifying the keg-only install text even further.