aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-03-10New external dependency implementation.Adam Vandenberg
2012-03-10Revert "Always build bottles universally."Mike McQuaid
This reverts commit 72a477f2734939d4c5805247588c4cdea69b5383.
2012-03-10Always build bottles universally.Mike McQuaid
2012-03-10Move most bottle stuff to a bottles.rb file.Mike McQuaid
2012-03-10Support bottles for non-Lion OSX versions.Mike McQuaid
2012-03-10Make `brew-bottle` an internal command.Mike McQuaid
2012-03-09Tell the user when build logs are copiedAdam Vandenberg
2012-03-09Do a stricter version checkAdam Vandenberg
A version should always be set when going through the constructor so tighten this check. Also do some style clean ups here.
2012-03-09ENV.rb: Set GCC-style CPU flags for GFortranCharlie Sharpsteen
GFortran chokes when it is passed CPU flags specific to Clang. This change ensures the environment variables `FCFLAGS` and `FFLAGS` contain the same CPU flags that would be set for the GCC compiler. Fixes Homebrew/homebrew#10424. Fixes Homebrew/homebrew#10744. Closes Homebrew/homebrew#10774. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-03-09ENV.rb: Generalize method for setting CPU flagsCharlie Sharpsteen
All logic has been copied into a new method `set_cpu_flags` that accepts an additional argument, `flags`, which contains a list of environment variables for which the CPU flags are to be adjusted. `set_cpu_cflags` now recalls `set_cpu_flags` and passes `cflags_flags` as the first argument. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-03-09ENV.rb: Modifier methods accept lists of flagsCharlie Sharpsteen
`ENV` methods that modify environment variables, `prepend`, `append` and `remove`, can now accept lists of flags as well as a single flag. The list of flags affected by `append_to_cflags` and `remove_from_cflags` are now definied in a shortcut method `cc_flag_vars`. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-03-09Remove unnecessary hyphenJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-10Remove bad exit status; need to fix another way.Mike McQuaid
2012-03-09Restore cleaning of lib/charset.aliasJack Nagel
Even though we now prevent linking of this file into the prefix in Keg#link, its presence still triggers a "non-lib in lib" warning during installation. So keep cleaning it, and leave the check in Keg#link so things that skip_clean 'lib' still won't have it linked. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Fix typo in test_arch_for_commandJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Don't cleanup the wrong thingsMax Howell
This still isn't perfect, but it will handle hyphens in formula-names better now. A proper solution is not easy or maybe even possible unless we ban hyphens in versions AND formula names, or use a different character as a separate in downloaded cache files which we then ban from formula-name and version strings. Refs Homebrew/homebrew#2923.
2012-03-09Add better Unix exit codes.Mike McQuaid
Closes Homebrew/homebrew#10809.
2012-03-09Run tests from anywhere and provide an exit code.Mike McQuaid
2012-03-09Fix test_ENV on 10.7/Xcode 4.Mike McQuaid
2012-03-09Fix test_arch_for_command on 10.7.Mike McQuaid
2012-03-08Fix gdk-pixbuf module installationJack Nagel
When other packages install gdk-pixbuf modules, they get installed into the gdk-pixbuf keg. To avoid this, we explicitly create the top level lib directories for gdk-pixbuf and hack the pkgconfig file to point at the top-level directories instead of the keg. This results in other packages installing modules into the top-level directory and as such they are "lost" and treated as unbrewed files, but that is still better than losing them during upgrades of gdk-pixbuf itself. If we had a post-link hook, we could keep everything confined to its own keg, linked into the top-level modules directory, and then run gdk-pixbuf-query-loaders --update-cache ourselves. In the abscence of that, I think this is the best compromise. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-07Include vi in list of binaries already in OS XOscar Del Ben
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-07Don't attempt to cleanup source checkoutsMax Howell
Fixes Homebrew/homebrew#10751.
2012-03-07Suggest full path to Xcode 4.3 /DeveloperMax Howell
Some people seem to have an older xcode-select even after installing the CLT from inside Xcode or otherwise. So this is works for both. Now we aren't future-proofed in case Apple change the location, but hopefully they won't, seems unlikely. Refs Homebrew/homebrew#10743. Fixes Homebrew/homebrew#10745.
2012-03-07Remove silly path methodAdam Vandenberg
2012-03-07Allow dependencies to still installMax Howell
Oops bug.
2012-03-07Protect against unwritable cache locationMax Howell
2012-03-07Don't allow `sudo brew upgrade` if not sensibleMax Howell
2012-03-07Don't abort upgrade if one formula won't buildMax Howell
Also, unlink previous keg before installing to prevent issues when existing installed brews cause build problems for the newer installed brew. If the build fails the active keg is relinked before aborting. Fixes #10341.
2012-03-07Stop supporting `brew install --force'Max Howell
Rationale: it breaks stuff. You should not be able to install over something already installed *and* linked. brew now prompts you to unlink the existing linked keg first. I came to fix this because I discovered that `brew install foo` works without --force provided foo's formula version is different to that which is installed and linked. I'm not sure if this was intentionally broken, but it led to at least two tickets I found where people were getting crazy issues trying to install over the top of already installed previous versions. So I also fixed a whole category of other issues, mostly by moving error handling into FormulaInstaller. Now error's can be caught in Homebrew.install and handled on a formula-by-formula basis. I will next port this behaviour to upgrade.
2012-03-07Move brew output for BuildError into BuildErrorMax Howell
So upgrade can output errors but continue to upgrade the rest of the installation.
2012-03-07If multiple kegs, default to formula kegMax Howell
If it exists, ARGV.kegs will return the Formula.prefix keg for each rack examined. So for ARGV=[wget, foo] and the following Cellar (wget/1.11, wget/1.12, foo/1.0) you'll get [wget/1.12, foo/1.0] from ARGV.kegs provided 1.12 is the formula version of wget.
2012-03-06Extend FileUtils rather than include itJack Nagel
Fixes Homebrew/homebrew#10729. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-06`brew cleanup` cleans up the download-cacheMax Howell
Manpage updated. The -s switch is "scrub" and removes downloads for uninstall formula which are downloads for the latest version of that formula still. Please NOTE cache is NOT cleaned if a formula argument is provided. I couldn't be bothered. Patches welcome :) Closes Homebrew/homebrew#2923.
2012-03-06Pathname.stem knows about bottlesMax Howell
2012-03-06Proper single character switch handlingMax Howell
Includes a test. So now you can do `brew cleanup -ns` and it will work.
2012-03-06The doctor checks if you need to `brew update`Max Howell
Well at least it checks to see if it's been a while since the last one.
2012-03-06'brew doctor' provides bad example commandJonathan Hitchcock
If there are multiple dependencies missing, 'brew doctor' can suggest that you run something like: brew install autoconf libyaml autoconf, libyaml This commit improves that output. Closes Homebrew/homebrew#10720. Signed-off-by: Max Howell <max@methylblue.com>
2012-03-06add which methodAdam Vandenberg
2012-03-06Don't require formula files for `brew rm --force`Max Howell
In fixing this I also made it so that ARGV.kegs will return the LinkedKeg if the symlink is set. Which is almost always is. This neatly avoids most multiple-kegs issues. Fixes Homebrew/homebrew#10685.
2012-03-06Doctor check for `python` is Python-3Max Howell
Refs Homebrew/homebrew#9541.
2012-03-06Require specialties at the end of formula.rbJack Nagel
classes in formula_specialties.rb need Formula, so it has to be last. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-05Move llvm method to FailsWithLLVMAdam Vandenberg
2012-03-05shrinkAdam Vandenberg
2012-03-05invert conditionAdam Vandenberg
2012-03-05Move AmazonWebServicesFormula to formula_specialtiesAdam Vandenberg
Enough formulae in core depend on this, pull it in here. When multi-repo support lands, perhaps we could set up Homebrew-AWS.
2012-03-05Move specialized formulae base classes into a new fileAdam Vandenberg
2012-03-05Move path utils out of formula.rbAdam Vandenberg
Make a new module for our FileUtils extensions and use that instead.
2012-03-05Adjust updater tests for `git config` callsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-04keg: allow selective linking at the file levelJack Nagel
Some parts of a keg's tree are not subject to the cleaner, and sometimes we still want to remove things in directories marked skip_clean; this allows us that freedom. If 'lib' is marked skip_clean, we still want to avoid linking the charset.alias file into the top of the tree. The same needs to be done for the locale.alias file in share/locale. Signed-off-by: Jack Nagel <jacknagel@gmail.com>