Commit Graph
2985 Commits
Author SHA1 Message Date
Jack Nagel 4d4ad98094 Rename Fortran requirement to fix option generation
So, `depends_on :fortran => :optional` will generate "--with-fortran"
rather than "--with-fortranRequired".
2013-06-25 21:12:15 -05:00
Adam Vandenberg 21fef89630 Fix info --github
Closes #20780.
2013-06-25 11:21:04 -07:00
Jack Nagel 6c2329fbe0 Note which formula's requirements failed
Closes #20713.
2013-06-25 10:37:34 -05:00
Jack Nagel b43a5ec6b7 Yield correct dependent when expanding requirements 2013-06-25 10:12:14 -05:00
Jack Nagel 957b32b1f2 Uniqify tags when merging dependencies 2013-06-25 10:12:14 -05:00
Jack Nagel 8de8030009 Requirement: callers are responsible for invoking #satisfied?
This hack was necessary since requirements were not checked again
in the forked build process, but now they are, and calling it again
after the build environment has been set up can produce incorrect
results. In fact, if it happens to return false the second time,
the env modification will be skipped altogether.
2013-06-24 10:42:43 -05:00
Adam Vandenberg 28126c8163 Add 'From:' to GitHub url for formula
Closes #20724.
2013-06-24 07:43:29 -07:00
Adam Vandenberg 80135fe5a9 Add Fortran ENV helpers 2013-06-24 07:38:25 -07:00
Adam Vandenberg 09e477d1f0 Update audit for Fortran dependency 2013-06-24 07:38:25 -07:00
Adam Vandenberg 8806220848 Add :fortran requirement 2013-06-24 07:35:42 -07:00
Adam Vandenberg 3505565227 Misplaced manpages fail brewbot
Closes #20711.
2013-06-24 07:34:45 -07:00
Adam Vandenberg c521b1afb1 Use 'path or URL' as tap for non-tap, non-core formulae 2013-06-24 07:33:37 -07:00
Adam Vandenberg 29847b54aa Show tap/path for non-core formulae on build failure
Closes #16373.
Closes #20725.
2013-06-24 07:33:29 -07:00
Adam Vandenberg d8d41ccabc Show conflicting files on install if linking fails
Closes #18303.
Closes #20726.
2013-06-24 07:31:44 -07:00
Jack Nagel 1c017129db Actually make the assertion we care about 2013-06-24 08:52:41 -05:00
Jack Nagel f07633de41 Copy env_proc when merging deps 2013-06-24 08:52:41 -05:00
Adam Vandenberg f83bc2f56b Remove unused guard in canonical_name
Closes #20718.
2013-06-23 18:44:10 -07:00
Adam Vandenberg 2c1172d64b document canonical name and move vars down to usage
Closes #20719.
2013-06-23 18:42:18 -07:00
Adam Vandenberg 34fb41411b Use unicode escape
Prevents this character from being changed when resaving this file
with TextMate (1) on Snow Leopard.

Closes #20715.
2013-06-23 16:43:32 -07:00
Adam Vandenberg d038bfa1c2 irb: pass strings to factory, not symbols 2013-06-23 13:07:55 -07:00
Adam Vandenberg 61f0054ffa 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 6a89d89bdf 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 f830d39232 caveats: tweak reload wording. 2013-06-23 14:31:43 +01:00
Jack Nagel 79a69b9b46 Extract constant in GitHub module 2013-06-22 22:47:00 -05:00
Jack Nagel 49e06a4669 Extract method in Github module 2013-06-22 22:46:49 -05:00
Jack Nagel 93376954f5 Remove trailing whitespace 2013-06-22 22:46:39 -05:00
Jack Nagel 49b2065a95 Remove MultiJson
Closes #20696.
2013-06-22 21:40:26 -05:00
Jack Nagel c7c8d6c02d Use OkJson directly 2013-06-22 21:34:03 -05:00
Jack Nagel 12b7c4e773 Vendor OkJson directly 2013-06-22 21:34:02 -05:00
Jack Nagel 163067512b Add Utils::JSON to wrap the JSON implementation 2013-06-22 21:34:02 -05:00
Jack Nagel 386fbe33ea Homebrew has an actual license, remove stale comment 2013-06-22 15:01:59 -05:00
Jack Nagel 2b56c52696 deps: allow "--installed --tree" 2013-06-22 12:54:46 -05:00
Jack Nagel acf7595e03 deps: use OpenStruct to capture the mode 2013-06-22 12:54:46 -05:00
Jack Nagel e44df047aa deps: remove need for Array extension 2013-06-22 12:54:45 -05:00
Jack Nagel 7969d97964 deps: extract output methods 2013-06-22 12:54:45 -05:00
Mike McQuaid 7eb6117444 ARGV: ensure ? methods return truth values. 2013-06-22 11:13:59 +01:00
Mike McQuaid fcd635fe24 bottles: add arguments cleanup TODO. 2013-06-22 11:13:59 +01:00
Mike McQuaid 88fa0d8eda bottle: sort --merge output in OS X version order. 2013-06-22 11:13:59 +01:00
Mike McQuaid 59798de617 Don't use cats in bottle tag tests (thanks 10.9). 2013-06-22 11:13:59 +01:00
Jack Nagel f0dfea67f3 Don't clean up lockfiles if the directory doesn't exist
Fixes #20673.
2013-06-21 18:38:39 -05:00
Jack Nagel 68ebacb355 Clean up lockfiles 2013-06-21 15:42:14 -05:00
Jack Nagel 8759803f4f Remove unused accessor 2013-06-20 16:37:34 -05:00
Jack Nagel 9dc6e4b068 Use a Set for skip_clean_paths 2013-06-20 16:25:59 -05:00
Jack Nagel 7a9ed17fbb Splatted parameter is always an array 2013-06-20 16:22:55 -05:00
Mike McQuaid 4e9c357733 perforce: add version detection regex. 2013-06-20 13:07:59 +01:00
Mike McQuaid a5e26485f0 Formula: improve local bottle failure messaging. 2013-06-20 13:07:43 +01:00
Samuel John 49d04cb5b7 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 e00f1a998e 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 be34141f16 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 2c8c8d07f6 Python module deps, ext. python fix and 10.6 fix
* Fixes #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