Commit Graph
3867 Commits
Author SHA1 Message Date
Mike McQuaid 86a9beda9f caveats: show python caveats if modules installed. 2014-01-04 13:19:20 +00:00
Mike McQuaid b932815490 Pathname: add methods to write env scripts. 2014-01-04 13:19:20 +00:00
Mike McQuaid f12d181433 ENV: add method to prepend and create a PATH. 2014-01-04 13:19:20 +00:00
Mike McQuaid 49f20ff9b0 formula: fix whitespace. 2014-01-04 13:19:20 +00:00
Misty De Meo 6d63e6e086 stdenv tests: add gcc-4.0 test 2014-01-04 01:37:19 -08:00
Misty De Meo 02612e270b ENV.gcc: remove raise
This raise happened in no other ENV methods, and isn't really necessary
since fails_with guards against this method actually being called unless
gcc-4.2 is actually installed.
2014-01-04 01:22:04 -08:00
Misty De Meo 84f6f158c9 Recommit ENV changes 2014-01-04 01:20:56 -08:00
Mike McQuaid 8500b63a87 Revert "stdenv: fix self.cc check"
This reverts commit 0e1d52c0d3.
2014-01-04 09:14:28 +00:00
Mike McQuaid 4d0a6b12f8 Revert "default_cc: locate already returns Pathnames"
This reverts commit 8ec6123d43.
2014-01-04 09:14:27 +00:00
Mike McQuaid 55227a5554 Revert "default_compiler: recognize gcc-4.0"
This reverts commit bedcbb806b.
2014-01-04 09:14:26 +00:00
Mike McQuaid a4f61ecc89 Revert "stdenv: set correct compiler symbol for gcc 4.0"
This reverts commit f4dc561495.
2014-01-04 09:14:25 +00:00
Misty De Meo f4dc561495 stdenv: set correct compiler symbol for gcc 4.0 2014-01-03 19:13:35 -08:00
Misty De Meo bedcbb806b default_compiler: recognize gcc-4.0 2014-01-03 18:25:09 -08:00
Misty De Meo 8ec6123d43 default_cc: locate already returns Pathnames 2014-01-03 18:24:54 -08:00
Misty De Meo 0e1d52c0d3 stdenv: fix self.cc check
Since ENV.cc/cxx are accessors to ENV, any values being passed through
are coerced into strings, which means that a nil `ENV.cc` is actually
an empty string - which isn't considered to be false in Ruby.

Fixes mistydemeo/tigerbrew#161.
Fixes mistydemeo/tigerbrew#135.
2014-01-03 17:59:00 -08:00
Mike McQuaid fd28beb410 exceptions: remove unused AlreadyTappedError. 2014-01-03 21:57:07 +00:00
Mike McQuaid 0496ebe3ea install, update: AlreadyTappedError never raised. 2014-01-03 21:57:06 +00:00
Mike McQuaid e901c920a1 tap: never throw AlreadyTappedError.
Just make it a warning instead.

Closes #25511.
Closes #25617.
2014-01-03 21:56:57 +00:00
Mike McQuaid cec2e0d140 dependency: don't try and expand yourself.
This can happen on e.g. fossil where the dependency HEAD requires having
an install of fossil in order to check it out. Bit of a silly edge case
but this handles it.

Fixes #25605
2014-01-03 21:33:07 +00:00
Misty De Meo 464b84037b Add python27 dependency
Fixes #25561.
Fixes #25410.
2013-12-30 13:20:58 -08:00
Mike McQuaid 99bcc5aa72 Fix Homebrew/python case. 2013-12-28 12:47:13 +00:00
Mike McQuaid c6f8928578 homebrew-python has moved to Homebrew org. 2013-12-28 12:14:38 +00:00
Josh Tilles 67afe0b600 Replace template’s j1 with deparallelize
Solely because I think `ENV.deparallelize` is *way* clearer than
`ENV.j1`, at least to the uninitiated.

Also, updating the template will reduce the number of `ENV.j1`s that
persist because the Homebrew maintainers want clean histories of
formulae. Ideally, this change should prevent any more cases from being
introduced!

Closes #25431.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-27 16:58:55 -06:00
Jack Nagel 1d04e600a9 bottle: fix updating formulae with sha256 checksums 2013-12-27 16:43:34 -06:00
Jack Nagel 6206773253 bottle: use formula path accessor 2013-12-27 16:43:34 -06:00
Jack Nagel e67bdb1351 Don't send, just call the method directly 2013-12-27 16:19:43 -06:00
Jack Nagel f053496cdb Drop unnecessary Pathname creation 2013-12-27 16:09:31 -06:00
Jack Nagel 76c0e47d97 superenv: don't accidentally filter out HOMEBREW_TEMP
Fixes #25471.
2013-12-27 13:01:41 -06:00
Jack Nagel ea04156231 cleaner: use ObserverPathnameExtension 2013-12-22 13:43:51 -06:00
Jack Nagel 7dd24ccd2a cleaner: reorganize clean_dir to avoid repeated conditional 2013-12-22 13:43:50 -06:00
Jack Nagel a34583204d Drop unnecessary string conversion in skip_clean 2013-12-22 13:43:00 -06:00
Jack Nagel e210c3f9fb cleaner: add more tests for current behavior 2013-12-22 13:43:00 -06:00
Jack Nagel 031c831f17 cleaner: clean up broken and orphaned symlinks 2013-12-21 23:28:04 -06:00
Jack Nagel 06d1fc3bc9 cleaner: add test to demonstrate that empty prefixes are removed 2013-12-21 23:28:03 -06:00
Jack Nagel cc03ae4e0d cleaner: add tests to document current pruning behavior 2013-12-21 23:28:03 -06:00
Jack Nagel 1c4cd3d5c8 cleaner: add tests to demonstrate some current failures 2013-12-21 23:28:03 -06:00
Jack Nagel 17ab9e0bad cleaner: slightly less coupling in tests 2013-12-21 23:28:03 -06:00
Jack Nagel 14b24f0ec8 cleaner: fix permission debug output 2013-12-21 23:28:03 -06:00
Jack Nagel 53179eedbe prune: remove unnecessary .sort 2013-12-21 21:37:26 -06:00
Jack Nagel 53589c3f4c Note when --only-dependencies is a no-op 2013-12-19 16:43:46 -06:00
Steven Peters 6404085835 install: add --only-dependencies option
The traditional approach to installing the dependencies of a formula is
the following:

  brew install `brew deps formula`

This approach ignores any options that are specified in the parent
formula. This pull request adds a --only-dependencies option to brew
install that installs the dependencies of a formula with optional flags,
but returns before installing the parent formula.

Closes #25272.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-19 16:43:42 -06:00
Adam Vandenberg bdd545566c Move comparepdf to boneyard
Upstream is no longer maintaining this software, and it does not
build with Xcode 5.

Closes #24911.
2013-12-17 19:16:03 -08:00
Jack Nagel 4c7cbdff73 bottle: extract method for enumerating files that match a string
This brings a (small) performance improvement as we yield the files as
they are output by fgrep rather than waiting until fgrep is done to do
any work.
2013-12-17 21:13:23 -06:00
Jack Nagel b3d1c1769c versions: improve performance of rev_list 2013-12-17 20:43:45 -06:00
Mike McQuaid 3c3155dfdf doctor: don't complain about unmigrated remote. 2013-12-17 23:40:21 +00:00
Mike McQuaid 257d189d78 doctor: fix autocrlf set command.
Fixes #25282.
2013-12-17 16:34:01 +00:00
Mike McQuaid 4a4ca0bb43 doctor: add instructions for remote migration. 2013-12-17 16:25:51 +00:00
Adam Vandenberg ec134462d2 add nlopt to migration 2013-12-16 20:23:12 -08:00
Adam Vandenberg 2e3db0d0b8 options: show --HEAD and --devel when appropriate
Closes #24680.
2013-12-15 19:42:08 -08:00
Chris Kampmeier 591516dee5 doctor: don't let gitconfig break dirty-tree check
`brew doctor` always complains about uncommitted modifications to
Homebrew when you have status.branch=true in your git config, because
the implicit --branch makes `git status -s` always print branch/tracking
info. The --porcelain mode is similar to -s/--short, but ignores most of
the user's config and should remain stable.

The --untracked-files option ensures we'll see untracked files even for
users with status.showUntrackedFiles=no, which is not suppressed by
--porcelain for some reason.

Closes #25230.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-15 17:20:45 +00:00