aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
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 Homebrew/homebrew#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 Homebrew/homebrew#11587. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11brew-leaves: fix for recent deps overhaulJack Nagel
Fixes Homebrew/homebrew#11567. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11brew-pull: Fix detecting issue #Misty De Meo
Fixes a regression introduced in c27a575eb6b2dfc0d662aaab2cf9d754647fbadd This is why I wish 1.8.x had named captures.
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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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-06brew-pull: add support for pulling from tapsMisty De Meo
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 Homebrew/homebrew#11434.
2012-04-04Use current bottle versions to calculate new ones.Mike McQuaid
2012-04-03doctor: fix typosRory O’Kane
Closes Homebrew/homebrew#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 Homebrew/homebrew#11300. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29Remove "__brew_ps1" function from completionJack Nagel
This was probably silly and I'm probably the only person that ever used it. I still do, actually, but it's not really a completion function, it's simple enough to just stick in a shell startup script, and removing it makes the completion script usable under the new dynamic loading scheme provided by bash-completion 1.99+. 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-29Add brew tests command to run all unit tests.Mike McQuaid
2012-03-29Cleanup brew-pull code.Mike McQuaid
2012-03-28typoDiego Plentz
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-25Document how formula arguments can be specifiedJack Nagel
Closes Homebrew/homebrew#11037. Signed-off-by: Jack Nagel <jacknagel@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 Homebrew/homebrew#11183. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Tab completion for `brew tap`Jack Nagel
Using an inline Ruby script we can hit the GitHub API and look for repositories that match the tap naming scheme. The results are cached for the duration of the current shell session, so going over the network is a once-per-shell-session cost. There are a few false positives, but not much we can do about that at this point, as taps do not have to be in the fork network of any specific repository. Signed-off-by: Jack Nagel <jacknagel@gmail.com>