Jack Nagel
a2c9d9e2bc
At some point this started working again
2013-09-20 15:52:08 -05:00
Misty De Meo
9dcf69d494
ENV: Ensure @compiler is set
...
If @compiler isn't set/checked by ENV.compiler and the ENV.clang/etc.
methods, ENV.compiler may return unexpected results after fails_with
picks a fallback compiler.
See #22674 .
2013-09-19 23:36:15 -07:00
Adam Vandenberg
cf8493d63d
Homebrew 0.9.5
...
Update version due to recent compiler selection fixes.
2013-09-19 23:10:09 -07:00
Jack Nagel
92449566f5
More precise output for spec audits
2013-09-19 12:55:13 -05:00
Jack Nagel
69067e32fe
Audit spec resources
2013-09-19 12:55:13 -05:00
Jack Nagel
7fbf2ab8e4
Extract ResourceAuditor from FormulaAuditor
2013-09-19 12:55:12 -05:00
Mike McQuaid
148a746ddd
Bottles: use options hash for install_bottle?
2013-09-18 12:36:43 +01:00
Mike McQuaid
5bb4fb0eec
formula_installer: don't duplicate bottle warning.
...
Closes #22569 .
2013-09-18 12:26:32 +01:00
Jack Nagel
2178b33dde
Allow partial installation of resources
2013-09-17 21:29:54 -05:00
Jack Nagel
8edeef83b7
create: use resource for checksum detection
2013-09-17 21:29:54 -05:00
Jack Nagel
d57e987be3
More useful error message for missing checksums
2013-09-17 21:29:54 -05:00
Jack Nagel
9677e43841
Reorganize resource download methods
2013-09-17 21:29:53 -05:00
Jack Nagel
06ac23d385
Download strategies take a resource now
2013-09-17 21:29:53 -05:00
Jack Nagel
e068606c98
Make spec-scoped resources override top-level resources
2013-09-17 21:29:53 -05:00
Jack Nagel
599abc564f
Make top-level resources apply to all specs
2013-09-17 21:29:53 -05:00
Jack Nagel
09a5e201f6
Track initialized specs
2013-09-17 21:29:52 -05:00
Jack Nagel
bf2906ed9b
Move formula resources to SoftwareSpec
2013-09-17 21:29:52 -05:00
Jack Nagel
cc51ab41db
Reimplement SoftwareSpec on top of Resource
2013-09-17 21:29:52 -05:00
Jack Nagel
73ddbb6df5
SoftwareSpec tests are now Resource tests
2013-09-17 21:29:50 -05:00
Jack Nagel
274c0df3cf
Decouple Resource from SoftwareSpec
2013-09-17 21:29:50 -05:00
Jack Nagel
bf40e9235d
Combine attr declarations
2013-09-17 21:29:50 -05:00
Misty De Meo
a5fedcd7c8
superenv: don't set CC in ENV.clang/etc.
...
These methods were overriding CC and causing superenv to potentially
skip the compiler wrapper - especially if no wrapper existed for the
compiler being used, e.g. GNU GCCs.
Closes #22443 .
Fixes #22249 .
Fixes #22424 .
Fixes #22506 .
Fixes #22521 .
Fixes Homebrew/versions#207 .
2013-09-17 12:47:07 -07:00
Misty De Meo
045aadb860
Move CompilerSelector logic into build env setup
...
This moves the CompilerSelector fails_with logic into the build
environment setup, making the compiler selection available before
performing actions that depends on knowing what the compiler is, e.g.
setting up PATH.
ENV.setup_build_environment now optionally takes a Formula argument
to provide the information necessary to do the fails_with, and the new
ENV.validate_cc! extracts the fails_with logic from Build.install.
2013-09-17 12:43:38 -07:00
Shaun Jackman
70489b72c3
inreplace: Open the file as binary
...
Closes #22628 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-09-17 13:58:34 -05:00
Adam Vandenberg
ba9353cd84
make linkapps official
2013-09-17 06:55:13 -07:00
Adam Vandenberg
e9d8fcd03e
move paths to utils
2013-09-17 06:44:25 -07:00
Adam Vandenberg
5b77eaf15f
brew commands
...
Shows a list of built-in commands (but not shortcuts) and searches
for any external commands on the path.
Closes #22509 .
2013-09-17 06:44:25 -07:00
Jack Nagel
539d05e894
Rephrase conditional
2013-09-16 16:12:25 -05:00
Jack Nagel
9235e59959
Treat target as binary when unpacking gzip-only archives
2013-09-16 14:39:54 -05:00
Samuel Cochran
c91f6707be
Cater to download strategies not yielding a file
...
Closes #22580 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-09-16 14:32:40 -05:00
Jack Nagel
e2554ccbe9
Open files in binary mode where appropriate
2013-09-16 12:50:31 -05:00
Jack Nagel
8d88a52859
Copies of BuildOptions should not share underlying collections
2013-09-14 17:03:56 -05:00
Jack Nagel
456d8eb2ec
Tear down the cache after installation tests
2013-09-14 11:53:32 -05:00
Jack Nagel
11c4e24124
Move SoftwareSpec to a separate file
2013-09-14 10:16:52 -05:00
Mike McQuaid
7b722a67bb
PythonHelper: move old_env outside begin block.
2013-09-14 12:21:49 +01:00
Mike McQuaid
0675ba2946
Rename PythonInstalled to PythonDependency.
...
Make it more consistent with other requirements.
2013-09-14 12:21:49 +01:00
Mike McQuaid
1935e4fcd6
MinimumMacOSRequirement: rename file.
...
Should be using minimum_mac_os_requirement.rb
2013-09-14 12:21:49 +01:00
Jack Nagel
122fb123e5
Remove unused attr
2013-09-13 22:43:07 -05:00
Jack Nagel
2103007b71
Stop exposing the download strategy from Formula
2013-09-13 22:33:46 -05:00
Jack Nagel
f7d3609ae3
head DSL can accept a block
2013-09-13 11:13:12 -05:00
Jack Nagel
74542a5c5c
Stop mutating dependency specifications
2013-09-13 09:57:53 -05:00
Jack Nagel
2c7f212ce3
Use SoftwareSpec directly when using a stable block
2013-09-12 19:43:22 -05:00
Adam Vandenberg
91f22b7552
Allow resource fetching
...
Closes #20047 .
2013-09-11 22:05:27 -07:00
Adam Vandenberg
b37bbbfc31
Implement Resources
...
Closes #20212 .
2013-09-11 22:05:26 -07:00
Mike McQuaid
ba057f6b9a
bottle: loosen prefix grep check.
...
/usr/local is in lots of things unrelated to Homebrew so be more specific and look for opt instead.
2013-09-10 21:56:39 +01:00
Jack Nagel
95020adf9d
update: restore previous state when interrupted
...
Fixes #19460 .
Closes #22375 .
2013-09-10 15:12:39 -05:00
Misty De Meo
3483d68578
Fix CompilerSelector test for llvm
...
Update test to reflect that llvm-gcc should take precedence over
non-Apple GCC.
2013-09-10 13:08:03 -07:00
Misty De Meo
5863f8af89
Compiler priority: fix llvm-gcc priority
...
llvm-gcc should still get priority over non-Apple GCCs.
Fixes #22424 .
2013-09-10 08:17:28 -07:00
Mike McQuaid
a04b3a9c62
git-etc: add removed files too.
2013-09-09 16:15:33 +01:00
Jack Nagel
6fd425b45c
Close read pipe immediately after reading and only when initialized
...
c.f. #22386 .
2013-09-07 22:20:26 -05:00