3828 Commits

Author SHA1 Message Date
Adam Vandenberg
ad320c96fd irb: pass strings to factory, not symbols 2013-06-23 13:07:55 -07:00
Adam Vandenberg
3dd2715ec8 remove no-op code in bottle.rb
ARGV.formulae returns formulae, so no need to pass through factory
2013-06-23 13:02:10 -07:00
Adam Vandenberg
f85863cbd0 Clean the cleaner
* Fix a comment; we pass in formulae not names
* Don't pass the formula to factory; this is just a pass-through
* Move require to top-level
2013-06-23 12:54:28 -07:00
Mike McQuaid
4ea815f7b0 caveats: tweak reload wording. 2013-06-23 14:31:43 +01:00
Jack Nagel
368963aa26 Extract constant in GitHub module 2013-06-22 22:47:00 -05:00
Jack Nagel
5439813c27 Extract method in Github module 2013-06-22 22:46:49 -05:00
Jack Nagel
863e1a3cc5 Remove trailing whitespace 2013-06-22 22:46:39 -05:00
Jack Nagel
e445bdc717 Remove MultiJson
Closes Homebrew/homebrew#20696.
2013-06-22 21:40:26 -05:00
Jack Nagel
d6929f96a5 Use OkJson directly 2013-06-22 21:34:03 -05:00
Jack Nagel
d8aab8cb04 Vendor OkJson directly 2013-06-22 21:34:02 -05:00
Jack Nagel
083b3c84d0 Add Utils::JSON to wrap the JSON implementation 2013-06-22 21:34:02 -05:00
Jack Nagel
c4272a25cc Homebrew has an actual license, remove stale comment 2013-06-22 15:01:59 -05:00
Jack Nagel
2356a6d874 deps: allow "--installed --tree" 2013-06-22 12:54:46 -05:00
Jack Nagel
a02d5f33b4 deps: use OpenStruct to capture the mode 2013-06-22 12:54:46 -05:00
Jack Nagel
c2faf2a0ca deps: remove need for Array extension 2013-06-22 12:54:45 -05:00
Jack Nagel
6790f6adb0 deps: extract output methods 2013-06-22 12:54:45 -05:00
Mike McQuaid
fc708b9dfb ARGV: ensure ? methods return truth values. 2013-06-22 11:13:59 +01:00
Mike McQuaid
bf1db738d7 bottles: add arguments cleanup TODO. 2013-06-22 11:13:59 +01:00
Mike McQuaid
33d58cdfa8 brew-test-bot: generate email subject file. 2013-06-22 11:13:59 +01:00
Mike McQuaid
79f9da3c22 bottle: sort --merge output in OS X version order. 2013-06-22 11:13:59 +01:00
Mike McQuaid
c59800011a Don't use cats in bottle tag tests (thanks 10.9). 2013-06-22 11:13:59 +01:00
Corey Quinn
daacb69e9b Add tap and untap to zsh completion help
Closes Homebrew/homebrew#20676.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-21 21:21:12 -07:00
Jack Nagel
c0eb1f10de Don't clean up lockfiles if the directory doesn't exist
Fixes Homebrew/homebrew#20673.
2013-06-21 18:38:39 -05:00
Jack Nagel
3b56cb02ea Clean up lockfiles 2013-06-21 15:42:14 -05:00
Jack Nagel
c774ed05e4 Update cache location in man page
Fixes Homebrew/homebrew#20640.
2013-06-20 16:53:20 -05:00
Jack Nagel
3ab28ff9ad Remove unused accessor 2013-06-20 16:37:34 -05:00
Jack Nagel
d8756075f4 Use a Set for skip_clean_paths 2013-06-20 16:25:59 -05:00
Jack Nagel
7cdf400762 Splatted parameter is always an array 2013-06-20 16:22:55 -05:00
Mike McQuaid
13cfc013f4 brew-test-bot: uninstall formula if already installed. 2013-06-20 13:38:56 +01:00
Mike McQuaid
01e5e428eb perforce: add version detection regex. 2013-06-20 13:07:59 +01:00
Mike McQuaid
a783946b6d Formula: improve local bottle failure messaging. 2013-06-20 13:07:43 +01:00
Samuel John
d456d42813 doctor: share/python no longer needed in PATH
Check for HOMEBREW_PREFIX/share/python and python3
in PATH and tell about the new location and that
files from there can be removed. Also instructions
on how to upgrade python packages are given.
2013-06-19 12:27:50 +02:00
Samuel John
215b584c3b depends_on :python => 'module' allow user packages
Some prefer to install with `--user` into their
home. For example to avoid `sudo` with system's
python. Now Homebrew can use those modules to
satisfy a python dependency on a certain module.
2013-06-19 12:18:48 +02:00
Samuel John
fbaf8a5968 Linking Frameworks correctly if multiple.
For example python and python3 both provide a
`Python.framework` and OS X Frameworks are made to
deal with this by putting them into `Versions` and
linking the default one as `Current`. However, brew
did not respect this and cleaned out stuff making
neither of the two versions work because `Current`
is replaced by an empty directory.

This commit fixes that. However, still one of the
two `Python.frameworks` has to remove it's
`Current` and `Headers` links, because brew cannot
decide alone which one is the "default" and allowed
to set the `Current` link.

A similar situation might apply to Qt 4 vs. 5..
2013-06-18 20:49:13 +02:00
Samuel John
a3a0146d7c Python module deps, ext. python fix and 10.6 fix
* Fixes Homebrew/homebrew#20572 by tweaking the logic that decides
  which python is used by the `python` object
  inside a formula. There was a bug when on 10.6
  there is no Python 2.7 but a :recommended
  Python was still treated as being available.

* Use the user's PATH when looking for an external
  Python. Until now only brewed or OS X system's
  python have been found by `depends_on :python`.

  But now we support any Python in PATH (e.g.
  pyenv's python).

* Further, instead of handling python modules
  and import tests in LanguageModuleDependency,
  these are now handled by:

        depends_on :python => 'numpy'  # for example

  The old style

        depends_on 'numpy' => :python

  is still supported and is only an alias
  for the newer style (only for :python, the
  other languages are not altered by this commit).

  The reasoning is that if a formula requires
  a python module, it basically also needs
  python itself - and further that specific
  version of python has to provide the module.
  So the `PythonInstalled` is the natural place
  to check for the availability of a python
  module.

  Using a python module and other tags like
  :optional or :recommended is done like so:

        depends_on :python => [:optional, 'numpy']

  Specifying another PyPi (Python Package index)
  name than the module import name is seldom used
  but supported, too:

         depends_on :python => ['enchant'=>'pyenchant']

  A last note: For clarity, you can define
  multiple depends_on statements with different
  modules to be importable.`
2013-06-18 10:30:17 +02:00
Clemens Gruber
c5f9f42e51 Fix Xcode builds on 10.9.
CLT-only builds are still broken and need to be fixed at some point.

Closes Homebrew/homebrew#20524.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-06-17 09:14:17 +01:00
Adam Vandenberg
32f637d590 Add minimum OS X version requirement
Closes Homebrew/homebrew#19998.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-16 20:36:50 -07:00
Jack Nagel
45d3e436ee Simplify regexp match 2013-06-15 19:51:49 -05:00
Jack Nagel
d98ff95b3e These also get coerced to strings 2013-06-15 19:51:35 -05:00
Jack Nagel
49c9097b07 Push MacOS.cat logic down into MacOS::Version 2013-06-15 19:40:42 -05:00
Jack Nagel
3cd1a0e696 Add MacOS::Version.from_symbol 2013-06-15 19:39:27 -05:00
Jack Nagel
cf66686a17 Add brew-profile to contrib
This command loads all formulae and dumps an HTML profile report to
stdout. So e.g. `brew profile >/tmp/report.html`
2013-06-15 16:41:14 -05:00
Jack Nagel
e9d245cf3a Avoid unnecessary float to string conversion 2013-06-15 10:13:20 -05:00
Mike McQuaid
43b85e5865 brew-test-bot: further tweak pull request handling. 2013-06-15 11:15:31 +01:00
Mike McQuaid
52a935d5bc brew-test-bot: fix testing pull request handling. 2013-06-15 11:00:32 +01:00
Mike McQuaid
66cefb7be6 brew-test-bot: handle Jenkins pull request plugin. 2013-06-15 10:44:29 +01:00
Mike McQuaid
731d4016f7 brew-test-bot: run Homebrew tests every time. 2013-06-15 10:44:29 +01:00
Jack Nagel
2e2d922190 Run tests under actual OS version 2013-06-14 19:19:26 -05:00
Jack Nagel
9e771b0e34 Simplify setting MACOS_VERSION 2013-06-14 19:19:25 -05:00
Jack Nagel
e59456515d Pass these as strings, they get converted anyway 2013-06-14 19:10:14 -05:00