Jack Nagel
2045217a68
install: remove overcautious array manipulation
2013-06-12 09:02:20 -05:00
Jack Nagel
5369199df3
Fix version misdetection from fa582cb9ac65
2013-06-11 17:34:21 -05:00
Jack Nagel
fdaea3189d
Check method existence rather than Ruby version
2013-06-11 17:05:44 -05:00
Jack Nagel
28b9790dbd
FormulaInstaller: ensure locks are always released
2013-06-11 15:35:30 -05:00
Clemens Gruber
15626b38ca
Recognize OS X 10.9 and Xcode 5.0
...
Closes Homebrew/homebrew#20410 .
Closes Homebrew/homebrew#20401 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-11 10:20:23 -05:00
Jack Nagel
652e0982f0
Add doctor check for OS X > 10.8
2013-06-11 10:18:24 -05:00
Misty De Meo
ef054a2d02
doctor: add check for osx-gcc-installer
...
This might not detect all cases, but should detect the two most
common ones.
2013-06-11 08:13:24 -05:00
Jack Nagel
580eea89be
Cast deps to formula before passing them to superenv
...
Dependency names retain the "tap prefix", e.g. the "homebrew/dupes"
part of "homebrew/dupes/zlib". However formula objects do not, and this
is desired because we do not record the tap name as part of the
installation prefix.
So we need to ensure the correct dep names are passed to superenv,
otherwise it will not add the correct directories to various environment
variables.
2013-06-10 17:38:52 -05:00
Jack Nagel
784c9670f1
Add failing test for a misdetected version
2013-06-10 14:55:23 -05:00
Jack Nagel
f1df7f208f
info: remove unreachable code
2013-06-09 15:32:08 -05:00
Jack Nagel
1d265e5a0a
Check respond_to? instead of inline rescue
2013-06-09 15:31:40 -05:00
Jack Nagel
a1e30cdd3a
Update Formula#to_hash for tweaked conflicts implementation
2013-06-09 15:20:36 -05:00
Jack Nagel
8b9a3a560f
Separate formula conflicts from requirements
...
Closes Homebrew/homebrew#20357 .
2013-06-09 13:45:25 -05:00
Samuel John
33cae6ac42
PythonInstalled: Fix libdir for Python 3.x
2013-06-09 20:37:30 +02:00
Jack Nagel
d28deee516
deps: move recursive_deps_tree into Homebrew module
2013-06-09 12:59:42 -05:00
Adam Vandenberg
a60eed48bc
Remove adamv-alt references.
...
Closes Homebrew/homebrew#20364 .
2013-06-09 07:32:06 -07:00
Adam Vandenberg
4c9ac19e87
Consolidate sudo checks.
...
Closes Homebrew/homebrew#20318 .
2013-06-08 20:44:56 -07:00
Jack Nagel
bae36f0830
Make Test::Unit assertions available in formula tests
...
Closes Homebrew/homebrew#18753 .
Closes Homebrew/homebrew#20358 .
2013-06-08 21:31:44 -05:00
Jack Nagel
b0fe493ca1
Use actual class of dep when recreating merged deps
...
Refs Homebrew/homebrew#19182 .
2013-06-08 19:44:15 -05:00
Misty De Meo
c9c5e56363
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
aff66c3b86
Sniff for non-tarred gzips
...
Don't try to untar non-tarred gzips.
2013-06-08 15:37:32 -07:00
Jack Nagel
f848a08344
FormulaInstaller: factor out readline workaround
2013-06-08 15:14:23 -05:00
Jack Nagel
8cb861c695
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 Homebrew/homebrew#20335 .
2013-06-08 12:23:15 -05:00
Jack Nagel
80745a97e2
Add Enumerable#group_by
2013-06-08 12:23:14 -05:00
Mike McQuaid
4b35539978
brew-bottle: merge arg for bottle metadata files.
...
Closes Homebrew/homebrew#20266 .
2013-06-08 16:48:43 +01:00
Mike McQuaid
517889d6fb
brew-bottle: split output and use a bottle object.
2013-06-08 16:47:11 +01:00
Mike McQuaid
bf828aa36b
Bottle DSL: allow checksums access.
2013-06-08 16:41:44 +01:00
Mike McQuaid
4a7c68763e
brew-test: add five minute timeout.
2013-06-08 16:41:44 +01:00
Mike McQuaid
95f9c6227a
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
ff65923531
Raise bottle exceptions for Homebrew developers.
2013-06-08 16:40:40 +01:00
Adam Vandenberg
d5c331c072
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
8507ba3da4
Add Requirement#inspect
2013-06-07 22:24:36 -05:00
Jack Nagel
3d66808c0e
test_dependency_expansion: dep names should always be strings
2013-06-07 21:54:27 -05:00
Jack Nagel
e5ee7d59f5
Fix failing test
2013-06-07 20:57:07 -05:00
Jack Nagel
9a2a43b558
Add Dependency#inspect
2013-06-07 20:36:13 -05:00
Jack Nagel
d596303199
Simplify Options#inspect
2013-06-07 20:36:13 -05:00
Jack Nagel
a8f5527f74
CurlDownloadStrategy: use opt path for xz
2013-06-07 16:35:21 -05:00
Shaun Jackman
fa7291f21b
CurlDownloadStrategy: use with_system_path to locate tar
...
Closes Homebrew/homebrew#20316 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-07 16:35:14 -05:00
Samuel John
4412df2c00
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
386373da40
python_helper.rb: Little comment improvement
2013-06-07 17:58:56 +02:00
Samuel John
20ac914112
keg.rb: minor comment fix
2013-06-07 17:58:55 +02:00
Samuel John
031a0ae54e
Improved audit of python stuff
2013-06-07 17:58:55 +02:00
Adam Vandenberg
e7838bdebb
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
6c6bbc702c
specialties: point to valid examples
2013-06-06 16:41:27 -07:00
Adam Vandenberg
fb83fc7bc4
Add class name to method_added error
2013-06-06 16:41:26 -07:00
Jack Nagel
2e5d050931
Add MacOS.pretty_name
2013-06-06 16:02:27 -05:00
Jack Nagel
79a769215f
Decouple bottle tags from MacOS.cat
2013-06-06 16:02:27 -05:00
Jack Nagel
159b9d8e2d
Move oldest_cpu to Hardware
2013-06-06 16:02:27 -05:00
Jack Nagel
057ed6b4fb
bottles: use String#[] instead of "captures.first rescue nil"
2013-06-06 14:11:44 -05:00
Jack Nagel
9a741810c8
cleanup: use String#[] instead of "captures.first rescue nil"
2013-06-06 12:34:47 -05:00