aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-02-15fetch: compare checksums case-insensitivelyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-15audit: only look for empty checksums onceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-15more stringent auditing of checksumsTrevor Wennblom
Closes Homebrew/homebrew#10213. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-13Boost-jam is now part of boost-buildJack Nagel
So remove it, and add/update the appropriate aliases. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-12ENV: fix typoJack Nagel
2012-02-12Pathname.install_symlinkAdam Vandenberg
2012-02-12Add ENV.cxxflagsJack Nagel
Useful when CXXFLAGS has diverged fom CFLAGS, e.g. via ENV.append, and also it is nice for CXX to have symmetry with CC. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-11Recognize dist suffixAdam Vandenberg
2012-02-10Remove LinkedKegs entry if we're writing the same oneJack Nagel
If a keg has been uninstalled via `rm -rf <keg>`, and a user tries to reinstall it without `brew unlink`ing it first, it will fail to link as the LinkedKegs entry still exists. This isn't desirable, and the user should be able to reinstall the same formula on top of the old, dead symlinks without problems, so let's just remove the LinkedKegs entry if it matches the one we are installing anyway. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-10Don't return nil from Formula#linked_kegJack Nagel
Doing so was the result of a quick hack to fix the "deps installed as upgrades don't get linked" bug, but it was a mistake. Instead, always return the LinkedKegs entry as a Pathname object, and let callers be responsible for checking that it exists. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-10Be gentle when stdout is not a ttyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-10Pathname: silence install-info outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-10Revert "install: unlink old kegs"Jack Nagel
This reverts commit 2eabe2cbc84649696aeb6fa842a70f3794955597. When Keg#unlink looks for symlinks relative to the keg, it can hit false positives that actually belong to a different keg and unlink them anyway. This breaks our "force identical directory symlinks to be shared real directory" case. This may be a problem in general with the unlinking code and should be investigated. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-10install: unlink old kegsJack Nagel
If a formula makes it all the way to the actual install step, it is safe to unlink the keg before linking; this will prune dead symlinks in the case where a keg was removed with `rm -rf <keg>` but not unlinked with `brew unlink`. Fixes Homebrew/homebrew#10077. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-09Allow multiple arguments to installAdam Vandenberg
2012-02-09Split bottle logic.Mike McQuaid
Fixes Homebrew/homebrew#8805.
2012-02-08this was out of balanceAdam Vandenberg
2012-02-08Pathname: support .tar.Z extensionAdam Vandenberg
2012-02-08brew --config: properly handle empty `which` stringssamueljohn
Symptom: If no python/ruby/perl is in your path, then `which x`.chomp returns an empty string and `unless ""` is still true. So, N/A is never displayed. Instead, ruby's Pathname.new("").realpath returns the cwd. (I consider this realpath behavior a ruby bug) Fix: use empty? Closes Homebrew/homebrew#10027. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-08doctor: try to detect osx-gcc-installerJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-06create: homepage comes before url and checksumJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-04Split some classes to formula_supportAdam Vandenberg
formula.rb is getting big, let's start splitting things out.
2012-02-04Adjust ARGV testsJack Nagel
ARGV.kegs and ARGV.formulae no longer raise exceptions. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-04Warn the user of required argumentsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03uses: do nothing if no argsAdam Vandenberg
2012-02-03don't complain if args are emptyAdam Vandenberg
2012-02-03Move old ENV.use_foo? compiler methods to compatJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03Remove aka warningAdam Vandenberg
2012-02-03Man page grammarJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03Add and use plist helper methodsJack Nagel
These will be used to unify the label namespaces in embedded plists, i.e. 'homebrew.mxcl.<formula>'. plist_path returns the full path to a plist file located at the top level of the keg; plist_path.basename can be used if just the filename is needed. c.f. Homebrew/homebrew#9346. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03Suppress output of `which` commandsJaeho Shin
Added missing -s option to which for hg, bzr, fossil. Closes Homebrew/homebrew#9954. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-02Show which Perl, Python and Ruby are in the path.Adam Vandenberg
2012-02-02doctor: remove gcc-4.2 warning on Xcode 4.2+Misty De Meo
Re: Homebrew/homebrew#9925, many others.
2012-02-02devel: reset mirrors when building develMisty De Meo
Otherwise stable mirrors will be considered when the devel download fails. Fixes Homebrew/homebrew#9910.
2012-02-01prune: remove info dir entries for pruned filesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01keg: make locale directory regexp a constantJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01link: add missing newline in verbose modeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01keg: handle the info directory file properlyNicolas Despres
If HOMEBREW_KEEP_INFO environment variable is set: - Do not symlink the info directory file (aka 'share/info/dir') otherwise it gets overwritten by next installed brew. - Install an entry in the directory for each linked info file when the brew is linked. - Uninstall the entry when the brew is unlinked. Closes Homebrew/homebrew#9700. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01Pathname: remove trailing spacesNicolas Despres
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01CVSDownloadStrategy: correctly stage all filesColin Hebert
The FileUtils.cp_r function with a wildcard doesn't copy hidden files (starting with a dot) Instead of copying everything selected by *, select all the folder content. See: http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-glob Closes Homebrew/homebrew#8873. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01keg: mkpath directories in share/localeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-31create: punt on bad URLsJack Nagel
When we can't detect a name from the URL, just ask the user. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-30mkpath directories under lib/ocamlJack Nagel
Ocaml packages that need to install here will cause the site-lib directory to be created, and the symlink in the ocaml keg will work as intended. This is necessary for the ocaml bottle to work properly. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-29versions: ignore NameError and ArgumentErrorJack Nagel
Fixes Homebrew/homebrew#9856. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-29Fix brew-bottle output for new bottle syntax.Mike McQuaid
2012-01-29Bottles should care about cellar and prefixMike McQuaid
2012-01-29Bottles should care about cellar path not prefix.Mike McQuaid
Closes Homebrew/homebrew#9844.
2012-01-28audit: make boost-jam a build-time dependencyAdam Vandenberg
2012-01-27Add beer recipe. This is homebrew after all.Cameron Barrie
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-27versions: fix up error handlingJack Nagel
Now we handle some things more explicitly and in the process get rid of the blanket rescue on the mktemp block, which is something of an antipattern. By unloading the class *after* determining the version, we avoid the case where the class had previously been unloaded but Formula.factory failed, and trying to unload the nonexistent class results in a NameError. Doing it this way, we avoid having to rescue NameError and thereby avoid hiding other cases where it may occur. We also rescue TypeError which gets us past a few more bad formula in the history in some instances. Signed-off-by: Jack Nagel <jacknagel@gmail.com>