aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-04-16tests: setup and teardown cleanupsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-17Allow forcing bottle installation.Mike McQuaid
2012-04-16Fix Git installation warnings (again).Mike McQuaid
We have to install them to lib; anywhere else requires root access, a non-system perl or patching Git. Tried just moving them in 9597d5 but that breaks git-svn.
2012-04-16Fix Qt installation warnings.Mike McQuaid
PRL files are necessary in lib so whitelist them. Debian installs them too: http://packages.debian.org/squeeze/amd64/libqt4-dev/filelist
2012-04-15StandardCompilers: 3.1.4 doesn't have llvmMisty De Meo
2012-04-15info: handle git:// URLs in origin remoteMaurice Kelly
The URL being constructed is only able to extract the correct username when git@ or https:// URLs are found as the origin remote. This change allows git:// to be used as well. Signed-off-by: Maurice Kelly <osv-github@chatswood.org.uk> Closes #11670. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14tests: reorganize compiler selection testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14Add ofail command to print error and exit.Mike McQuaid
2012-04-14tests: bring `brew update` tests up to dateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14tests: remove special-casing @path in TestBallJack Nagel
Tests that expect Formula#path to resolve to a real path should use TestBallWithRealPath; TestBall gets its original behavior back, fixing a failing test in test_formula_install. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11Fix StandardCompilers checkMisty De Meo
* Return true if Xcode version is not in hash, not nil * Use two-digit version numbers for 4.0, 4.2, 4.3
2012-04-11Don't warn about .o files in libAdam Vandenberg
2012-04-11deps: fix --tree for new depsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11Implement <=> for DependencyJack Nagel
Fixes #11587. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11brew doctor: add check for outdated compilersMisty De Meo
A common source of build problems on Xcode 4.3+ is outdated compilers, usually when a user has installed over top of an old version and hasn't installed the CLT. Since the compilers from the previous Xcode are still around, brew doctor wouldn't complain. This adds a hash containing a list of the canonical compiler versions for supported versions of Xcode, and adds a check against that to determine whether a given installation has any compilers which are out of date. Closes #11518. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-04-10ARGV: use include? for --HEADJack Nagel
ARGV.build_head? will return true if the typo '-HEAD' is passed because it uses flag? to detect the option. However, we only filter the exact spelling of '--HEAD' in ARGV.filter_for_dependencies, and thus the HEAD property is undesirably passed to deps during installation. Since we never advertised '-H' as a valid short option for '--HEAD', just use include? instead of flag?. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-09tests: fix no-op fails_with testJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-09doctor: be specific about libiconv files detectedMisty De Meo
Closes #11417.
2012-04-09make_relative_symlink: give more specific adviceMisty De Meo
2012-04-08doctor: skip Cellar checks if Cellar doesn't existMisty De Meo
Attempting to call certain methods on the Cellar before it exists, such as realpath, would cause brew doctor to throw unnecessary "file does not exist" errors. This was fixed once before, but new tests have been added since without the appropriate checks. cf. 0d28bc78d71590c8e8a5961d8d10e3d7d9b8822d Fixes #5188 (again).
2012-04-07Clean up fails_with test classesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06info: output correct URL for tapped dupesJack Nagel
Tapped formulae that dupe those in core now display the correct URL when invoked like `brew info homebrew/dupes/openssl`. This also fixes the broken `brew info` test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06tests: silence mirror testJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06Fix protection against overriding Formula#brewJack Nagel
The test for this previously passed, but only because the constructor for SoftwareSpecification was raising an exception. method_added needs to be a class method because methods are being defined on the class, not the object, and to test it properly we have to eval the class in the test itself. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06Add test for ghc version styleJack Nagel
the ghc formula had an explicit version because we had trouble parsing the version from the 64-bit URL. It is working now, so add a test to ensure it isn't broken in the future. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-05Use GitHub API 3 in `brew search`Max Howell
2012-04-04patches.rb: Fix warning thrown by Ruby 1.8.6Charlie Sharpsteen
Need to be consistent with use of parenthesis in functions.
2012-04-04Populate empty mirror_list for bottles.Mike McQuaid
Fixes #11434.
2012-04-04Use current bottle versions to calculate new ones.Mike McQuaid
2012-04-03doctor: fix typosRory O’Kane
Closes #11418. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-02fetch: don't display cached location twiceJack Nagel
The download strategy will print the cached location if we've already fetched it, so avoid printing redundant information. Also just "puts" it instead of using a second `ohai` line. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-03Version bottles.Mike McQuaid
2012-04-01Reset compiler when testing fails_withJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01New fails_with infrastructureJack Nagel
- Formulae can now declare failures on any compiler. - FailsWithLLVM and associated formula elements have been moved to compat. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-30Show target path when emptyAdam Vandenberg
2012-03-30install: warn when passed no filesAdam Vandenberg
Rationale: we warn when inreplace makes no changes; this is a similar sort of warning. We expected some list (probably via Dir) to include some files, but none were found. Either the list was wrong, or the install can now be omitted.
2012-03-29info: always indicate if a keg is linkedJack Nagel
We mark the linked keg with an asterisk when multiple kegs exist, but not when there is only a single keg. Start marking even in this case, giving consistent behavior and a reliable indicate of the link status. Fixes #11300. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29Exit with bad exit code on command failures.Mike McQuaid
2012-03-29brew-bottle doesn't need to specify filenames now.Mike McQuaid
2012-03-28typoDiego Plentz
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-25Fix `brew unlink`Max Howell
Whoops.
2012-03-25Speed-up brew-unlink under certain conditionsMax Howell
This massively speeds up upgrades for certain formula, ie. formula with lots of files that aren't in the directories we link. I found upgrading android took ages before the un-tar step and it was indeed for this reason.
2012-03-25Search Homebrew/gamesMax Howell
2012-03-24Fix typo in --config.rbJack Nagel
Closes #11183. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Parse raw diff output in `brew update`Jack Nagel
Using each_cons() "works", but to report all changes correctly we need to look at the last elements even after we've looked at the last 3 consecutive elements. Instead, let's parse each line of the raw diff output using a regexp. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Pass the tab to FormulaInstallerJack Nagel
Callers of FormulaInstaller now usually unlink the existing keg prior to running the installer. However, Tab.for_formula uses the LinkedKeg record to obtain the tab. Since we need the tab to persist install options across upgrades, we must start creating the Tab object before unlinking the old keg and passing it to the FormulaInstaller. Fixes #11086. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-22Detect and display renames in `brew update`Jack Nagel
Renamed formulae will cease to display as an add/delete pair and instead end up the in the "Renamed" section. In the future we should be able to take this information and use it to rename existing kegs during updates, allowing us to rename formulae without breaking upgrades. Renaming a formula requires renaming the class, so there will be at least one add/delete pair in the file. Thus, the similarity threshold for detecting renames is set at 85% to allow a little bit of content turnover without losing track of the rename. Closes #11158. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-22Use --verify when querying HEADJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Check tapped before trying to untapMax Howell
If the tap-formula wasn't symlinked for some reason, don't throw an exception—the job is already done.
2012-03-23Bottles currently require 64-bit hardware on 10.6.Mike McQuaid