Mike McQuaid
5de0b4964a
SoftwareSpec: add method for bottle checksums.
2013-09-22 16:01:02 +01:00
Mike McQuaid
19618bddd4
bottle: use versions to access previous bottles.
2013-09-22 16:01:02 +01:00
Mike McQuaid
c883286840
versions: use bottle_filename only if f.bottle.
2013-09-22 16:01:02 +01:00
Mike McQuaid
82eee276e3
versions: add bottle filenames method.
...
Closes Homebrew/homebrew#22727 .
2013-09-22 09:52:05 +01:00
Mike McQuaid
22e47ffa43
versions: add branch support in rev_list.
2013-09-22 09:52:05 +01:00
Mike McQuaid
4702774616
versions: split version_for_sha and use yield.
2013-09-22 09:52:05 +01:00
Jack Nagel
7531dfc219
Allow explicitly requiring universal deps
...
Previously, instructing Homebrew that all dependencies should be built
universal could be accomplished by redefining BuildOptions#universal? in
the class body:
def build.universal?
true
end
However, the build object is no longer shared by all specs, so this is
insufficient. Instead, a new DSL method, "require_universal_deps", can
be used.
This feature is almost exclusively for wine, which requires universal
deps but does not itself have a universal option, since it is always
built 32-bit.
2013-09-21 19:27:24 -05:00
Jack Nagel
5511a8b3f5
Move dependencies to SoftwareSpec
2013-09-21 19:27:24 -05:00
Jack Nagel
a8d3aca169
Move options to SoftwareSpec
2013-09-21 19:27:24 -05:00
Jack Nagel
2eefba005f
Give this condition a more revealing name
2013-09-21 19:27:24 -05:00
Mike McQuaid
36f3617494
bottle: fix --merge with multiple formulae.
2013-09-21 15:18:48 +01:00
Mike McQuaid
5d3d385a65
bottle: improve outputted messages.
2013-09-21 15:18:48 +01:00
Jack Nagel
65fc34cd03
Add tests to ensure ENV.compiler is correct
2013-09-20 22:54:07 -05:00
Jack Nagel
5b7b8fb5da
At some point this started working again
2013-09-20 15:52:08 -05:00
Misty De Meo
497ccdc41c
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 Homebrew/homebrew#22674 .
2013-09-19 23:36:15 -07:00
Adam Vandenberg
bda0a3102f
Homebrew 0.9.5
...
Update version due to recent compiler selection fixes.
2013-09-19 23:10:09 -07:00
Jack Nagel
8c310d85cd
More precise output for spec audits
2013-09-19 12:55:13 -05:00
Jack Nagel
a00048468f
Audit spec resources
2013-09-19 12:55:13 -05:00
Jack Nagel
f072f40b0d
Extract ResourceAuditor from FormulaAuditor
2013-09-19 12:55:12 -05:00
Mike McQuaid
a7e1dbae63
Bottles: use options hash for install_bottle?
2013-09-18 12:36:43 +01:00
Mike McQuaid
1390d5cc12
formula_installer: don't duplicate bottle warning.
...
Closes Homebrew/homebrew#22569 .
2013-09-18 12:26:32 +01:00
Jack Nagel
50d2f632d9
Allow partial installation of resources
2013-09-17 21:29:54 -05:00
Jack Nagel
28cb9978ee
create: use resource for checksum detection
2013-09-17 21:29:54 -05:00
Jack Nagel
d46f500556
More useful error message for missing checksums
2013-09-17 21:29:54 -05:00
Jack Nagel
e3a3a0c320
Reorganize resource download methods
2013-09-17 21:29:53 -05:00
Jack Nagel
978f0887cb
Download strategies take a resource now
2013-09-17 21:29:53 -05:00
Jack Nagel
9c7a18bdcb
Make spec-scoped resources override top-level resources
2013-09-17 21:29:53 -05:00
Jack Nagel
b40b46e3f6
Make top-level resources apply to all specs
2013-09-17 21:29:53 -05:00
Jack Nagel
360a099faa
Track initialized specs
2013-09-17 21:29:52 -05:00
Jack Nagel
6116450328
Move formula resources to SoftwareSpec
2013-09-17 21:29:52 -05:00
Jack Nagel
df537528c7
Reimplement SoftwareSpec on top of Resource
2013-09-17 21:29:52 -05:00
Jack Nagel
3793c05845
SoftwareSpec tests are now Resource tests
2013-09-17 21:29:50 -05:00
Jack Nagel
eb3071332c
Decouple Resource from SoftwareSpec
2013-09-17 21:29:50 -05:00
Jack Nagel
32315c9348
Combine attr declarations
2013-09-17 21:29:50 -05:00
Misty De Meo
51a487de18
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 Homebrew/homebrew#22443 .
Fixes Homebrew/homebrew#22249 .
Fixes Homebrew/homebrew#22424 .
Fixes Homebrew/homebrew#22506 .
Fixes Homebrew/homebrew#22521 .
Fixes Homebrew/versions#207 .
2013-09-17 12:47:07 -07:00
Misty De Meo
1ae81f0bf7
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
91e6c993f8
inreplace: Open the file as binary
...
Closes Homebrew/homebrew#22628 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-09-17 13:58:34 -05:00
Adam Vandenberg
907ac79606
make linkapps official
2013-09-17 06:55:13 -07:00
Adam Vandenberg
a126946a9b
move paths to utils
2013-09-17 06:44:25 -07:00
Adam Vandenberg
fa0872a42c
brew commands
...
Shows a list of built-in commands (but not shortcuts) and searches
for any external commands on the path.
Closes Homebrew/homebrew#22509 .
2013-09-17 06:44:25 -07:00
Jack Nagel
7c0f474d26
Rephrase conditional
2013-09-16 16:12:25 -05:00
Jack Nagel
625d61fe5d
Treat target as binary when unpacking gzip-only archives
2013-09-16 14:39:54 -05:00
Samuel Cochran
23c869afee
Cater to download strategies not yielding a file
...
Closes Homebrew/homebrew#22580 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-09-16 14:32:40 -05:00
Jack Nagel
84cbfb164e
Open files in binary mode where appropriate
2013-09-16 12:50:31 -05:00
Jack Nagel
71b21c920f
Copies of BuildOptions should not share underlying collections
2013-09-14 17:03:56 -05:00
Jack Nagel
cecf9a564f
Tear down the cache after installation tests
2013-09-14 11:53:32 -05:00
Jack Nagel
a31fcb554c
Move SoftwareSpec to a separate file
2013-09-14 10:16:52 -05:00
Mike McQuaid
07142a2a32
PythonHelper: move old_env outside begin block.
2013-09-14 12:21:49 +01:00
Mike McQuaid
315c7a1212
Rename PythonInstalled to PythonDependency.
...
Make it more consistent with other requirements.
2013-09-14 12:21:49 +01:00
Mike McQuaid
a16394fde8
MinimumMacOSRequirement: rename file.
...
Should be using minimum_mac_os_requirement.rb
2013-09-14 12:21:49 +01:00