Commit Graph
2886 Commits
Author SHA1 Message Date
Jack Nagel e37a828697 info: remove unreachable code 2013-06-09 15:32:08 -05:00
Jack Nagel c384e28ae1 Check respond_to? instead of inline rescue 2013-06-09 15:31:40 -05:00
Jack Nagel e9bf7ae8ed Update Formula#to_hash for tweaked conflicts implementation 2013-06-09 15:20:36 -05:00
Jack Nagel 70069c5d75 Separate formula conflicts from requirements
Closes #20357.
2013-06-09 13:45:25 -05:00
Samuel John 9c8ee2d757 PythonInstalled: Fix libdir for Python 3.x 2013-06-09 20:37:30 +02:00
Jack Nagel ece1eb21b0 deps: move recursive_deps_tree into Homebrew module 2013-06-09 12:59:42 -05:00
Adam Vandenberg f7fbbe79f4 Remove adamv-alt references.
Closes #20364.
2013-06-09 07:32:06 -07:00
Adam Vandenberg 4b014a4ed1 Consolidate sudo checks.
Closes #20318.
2013-06-08 20:44:56 -07:00
Jack Nagel 455916b1c7 Make Test::Unit assertions available in formula tests
Closes #18753.
Closes #20358.
2013-06-08 21:31:44 -05:00
Jack Nagel 51733d8dd3 Use actual class of dep when recreating merged deps
Refs #19182.
2013-06-08 19:44:15 -05:00
Misty De Meo 30c79ab65b Add :ld64 dependency
This allows formulae which won't build with Tiger's ld to conditionally
request a dependency on the ld64 formula. This modifies the build
environment appropriately, and will only be active on Tiger.
2013-06-08 19:10:38 -05:00
Adam Vandenberg ebc38db960 Sniff for non-tarred gzips
Don't try to untar non-tarred gzips.
2013-06-08 15:37:32 -07:00
Jack Nagel da5a8ed34c FormulaInstaller: factor out readline workaround 2013-06-08 15:14:23 -05:00
Jack Nagel e660d7bdd8 Merge repeated deps with differing options
When expanding dependencies, repeated deps are treated as equal and all
but the first are discarded when #uniq is called on the resulting array.
However, they may have different sets of options attached, so we cannot
assume they are the same.

After the initial expansion, we group them by name and then create a new
Dependency object for each name, merging the options from each group.

Fixes #20335.
2013-06-08 12:23:15 -05:00
Jack Nagel a41d7942a0 Add Enumerable#group_by 2013-06-08 12:23:14 -05:00
Mike McQuaid 3a217e6feb brew-bottle: merge arg for bottle metadata files.
Closes #20266.
2013-06-08 16:48:43 +01:00
Mike McQuaid eb19854903 brew-bottle: split output and use a bottle object. 2013-06-08 16:47:11 +01:00
Mike McQuaid 4ae8aed783 Bottle DSL: allow checksums access. 2013-06-08 16:41:44 +01:00
Mike McQuaid 3ec2c72eb2 brew-test: add five minute timeout. 2013-06-08 16:41:44 +01:00
Mike McQuaid b0974b61e7 Use new download strategy for local bottles.
Fixes installation of e.g. ScriptFileFormula/denominator bottles.
2013-06-08 16:41:23 +01:00
Mike McQuaid 0817d4e3a9 Raise bottle exceptions for Homebrew developers. 2013-06-08 16:40:40 +01:00
Adam Vandenberg d74ff9a924 CurlDownloadStrategy no longer uses ? in downloaded filenames
Strip `?` and trailing characters from URL extensions and basenames.

This makes some install methods cleaner, and prevents staging of files
with `?` in the name, as that is a weird character.

Affects 2 formulae in core (though potentially externals will need to be fixed.)
2013-06-07 20:57:59 -07:00
Jack Nagel eec09f63d2 Add Requirement#inspect 2013-06-07 22:24:36 -05:00
Jack Nagel d74c024000 test_dependency_expansion: dep names should always be strings 2013-06-07 21:54:27 -05:00
Jack Nagel 99c976e8cb Fix failing test 2013-06-07 20:57:07 -05:00
Jack Nagel fd9412868a Add Dependency#inspect 2013-06-07 20:36:13 -05:00
Jack Nagel 70b6c30e02 Simplify Options#inspect 2013-06-07 20:36:13 -05:00
Jack Nagel 4eccac3980 CurlDownloadStrategy: use opt path for xz 2013-06-07 16:35:21 -05:00
Shaun Jackman d7f858ff04 CurlDownloadStrategy: use with_system_path to locate tar
Closes #20316.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-07 16:35:14 -05:00
Samuel John fe896570a6 Python: Don't print warning about PYTHONPATH
Authors should use `python.standard_caveats` instead.

* Accessor for python.binary
* Made `python.brewed?` more robust if no python found at all
* python.brewed? is more relaxed now and allows older versions
  of the Python formula.
* Only print about wrining sitecustomize.py and distutils.cfg if
verbose and debug.
2013-06-07 17:58:56 +02:00
Samuel John 951820e138 python_helper.rb: Little comment improvement 2013-06-07 17:58:56 +02:00
Samuel John d243177286 keg.rb: minor comment fix 2013-06-07 17:58:55 +02:00
Samuel John 05b3fbc810 Improved audit of python stuff 2013-06-07 17:58:55 +02:00
Adam Vandenberg d3af8cc80c Warn when overriding ScriptFileFormula#install
ScriptFileFormula's use is that it installs whatever was downloaded
to bin; if the install is overridden, there's no benefit over deriving
directly from Formula.
2013-06-06 16:55:12 -07:00
Adam Vandenberg 289144a8da specialties: point to valid examples 2013-06-06 16:41:27 -07:00
Adam Vandenberg 76b89b6a82 Add class name to method_added error 2013-06-06 16:41:26 -07:00
Jack Nagel db3892bf8e Add MacOS.pretty_name 2013-06-06 16:02:27 -05:00
Jack Nagel f155d31943 Decouple bottle tags from MacOS.cat 2013-06-06 16:02:27 -05:00
Jack Nagel 1f19374e37 Move oldest_cpu to Hardware 2013-06-06 16:02:27 -05:00
Jack Nagel b169cacc32 bottles: use String#[] instead of "captures.first rescue nil" 2013-06-06 14:11:44 -05:00
Jack Nagel e88fe41795 cleanup: use String#[] instead of "captures.first rescue nil" 2013-06-06 12:34:47 -05:00
Jack Nagel dc315dc525 Use ivar accessors 2013-06-06 12:10:41 -05:00
Samuel John d748aed609 depends_on :python don't set any LDFLAGS
Setting LDFLAGS to `-F HOMEBREW_PREFIX/opt/python/Frameworks`
breaks at least the scipy build. Perhaps others, too.
2013-06-06 14:24:15 +02:00
Samuel John 432545f258 Hotfix: Revert Python module 2013-06-06 13:18:32 +02:00
Samuel John 02ddd442f2 PythonInstalled: Don't require superenv
* The python do ... end block does no longer
  require 'superenv' but saves and restores
  the ENV by using ENV.to_hash and `ensure`.
  This should resolve some build problems
  with formulae using `env :std`!
* `python_helper` is now in a module `Python`.
* Imporoved some comments in python_dependency.rb
2013-06-06 12:33:28 +02:00
Jack Nagel 17b9c31a86 Define to_s for Version::Token 2013-06-05 23:31:47 -05:00
Jack Nagel 3f3c5ae976 Improve tokenization of version strings
Tokens like "b4", "beta1", "p195", &c. are now treated as atoms rather
than being broken down even further. Additionally, we enable support for
padding in the middle of versions strings, so we can successfully
compare something like "2.1-p195" with "2.1.0-p194" by inferring that
"2.1" is really "2.1.0".

This fixes the comparison "9.9.3-P1" > "9.9.3" which previously has not
been handled correctly.
2013-06-05 22:03:58 -05:00
Adam Vandenberg d9a9673409 Consolidate formula visibility blocks
Closes #20261.
2013-06-05 09:48:12 -07:00
Samuel John aab704358b depends_on :python sets PYTHONPATH internally
This applies only to non-brewed python:
The user will still have to set his PYTHONPATH
in order to import python modules in an
external python interpreter. However, a
warning will be displayed, now.

Further, during the build, the PYTHONPATH
will be set to Homebrew's global site-packages
so that software (like PyQt and others) that
need to `import sipconfig` in python can
find the brewed sip and its python module.
2013-06-05 17:37:32 +02:00
Jack Nagel b262a009ba Add failing test for patchlevel version comparisons 2013-06-05 10:06:37 -05:00