aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/keg.rb
AgeCommit message (Collapse)Author
2010-06-23Create explicit folders for more language libs.Patrick Walton
2010-06-01Don't symlink lib/python2.6Adam Vandenberg
Like pkgconfig, perl5 & php, we don't want any one formula to "own" the lib/python2.6 path. Fixes Homebrew/homebrew#1218.
2010-04-04Don't link_dir if the target doesn't exist.Adam Vandenberg
Fixes Homebrew/homebrew#1115 for Ruby 1.9, thanks to assaf.
2010-03-01Move license block to separate LICENSE file.Adam Vandenberg
2009-12-17Don't resolve conflcts for pre-existing symlinks in HOMEBREW_PREFIXMax Howell
Eg /usr/local/lib/juice/foo points somewhere else where the user has modules that he wants juice to use. Basically don't error out for stuff that isn't ours.
2009-11-12Compare against HOMEBREW_CELLAR using real paths.Adam Vandenberg
The code in Keg.self.for path uses "path = path.parent.realpath" to walk up subfolders looking for a Keg. Because 'realpath' is in there, and the path is checked against HOMEBREW_CELLAR, which may be a symlink, we need to do realpath-to-realpath comparisons in Keg. Otherwise, we will hit equivalent but symlinked folders, not see that they are the same, and walk all the way up to / and then error out.
2009-10-23Allow multiple formula to symlink the same directoryMax Howell
During the link step, if the destination symlink already exists, unlink it, and create a directory instead, then relink the original contents. Then continue linking the formula in question. Fixes Homebrew/homebrew#62
2009-09-17mkpath for all directories under lib/perl5Max Howell
Don't symlink, as multiple formula will install to this directory.
2009-09-03Fixes Homebrew/homebrew#32 -- Create directory, don't symlink perl5/site_perlMax Howell
2009-08-31Change license to BSDMax Howell
I confirmed this change with all relevant contributors first.
2009-08-29brew unlink commandMax Howell
Closes Homebrew/homebrew#8
2009-08-24Don't symlink directories into binMax Howell
2009-08-12Link binaries in sbin as well as bin.Adeel Ahmad Khan
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-10Ensure ENV is pristine for each installationMax Howell
Because we modified the ENV global each install this propagated to consecutive formulae. So exec a new brew process each install. This is the safest way although Ruby exceptions don't propagate to the parent process so I worry about it somewhat.
2009-08-10Refactor0.4Max Howell
Large refactor to Formula, mostly improving reliability and error handling but also layout and readability. General improvements so testing can be more complete. Patches are automatically downloaded and applied for Formula that return a list of urls from Formula::patches. Split out the brew command logic to facilitate testing. Facility from Adam Vandenberg to allow selective cleaning of files, added because Python doesn't work when stripped.
2009-07-31FIX chmod correctly for *both* 32bit and 64bit binariesMax Howell
2009-07-31Refactor $foo into HOMEBREW_FOOMax Howell
CONSTANTS are the far saner choice for these important parameters. Split env up so I can redefine the CONSTANTS in unittest.rb.
2009-07-31Recognise 64 bit binaries tooMax Howell
2009-07-31Don't allow Keg.new for empty kegsMax Howell
Kegs have to exist to be created.
2009-07-29Fix brew rmMax Howell
2009-07-24Refactor--object orientate where sensible0.3Max Howell