Jack Nagel
5a2ae61e66
Add another TODO
2014-08-03 15:28:51 -05:00
Jack Nagel
eb528fd7cd
Eliminate a nil check
2014-08-03 13:14:50 -05:00
Jack Nagel
d54bce6a1a
Remove dead code
2014-08-03 13:13:23 -05:00
Jack Nagel
b6e9600b9f
Eliminate consideration of major_version
...
The major version is implicit in the compiler name. Since the name is
used when matching failures to compilers, we don't need to consider the
major version separately.
2014-08-03 11:15:39 -05:00
Jack Nagel
4580d86809
Use a separate class for GNU compiler failures
...
major_version is now only used internally by the failure object
2014-08-03 10:47:47 -05:00
Jack Nagel
8e8b9acc01
Move compiler failure matching logic into failure object
2014-08-03 10:47:47 -05:00
Jack Nagel
e5d6247ae7
Rename compiler attribute to name
2014-08-03 10:47:47 -05:00
Jack Nagel
2fedd5b09a
Don't pass nil to fails_with?
2014-08-03 10:47:47 -05:00
Jack Nagel
fded4d0385
Remove an is_a check
2014-08-03 10:47:47 -05:00
Jack Nagel
5b38e89107
Simplify compatibility logic
2014-08-02 20:11:04 -05:00
Jack Nagel
fccfddb510
Partially revert e1f97e2 to pass new test cases
2014-08-02 20:03:42 -05:00
Jack Nagel
018aeb05ab
Drop unnecessary parens
2014-08-02 19:43:13 -05:00
Jack Nagel
142beddd7a
Use polymorphism to simplify stdlib compatibility check
2014-08-02 19:29:59 -05:00
Jack Nagel
90e370d2ef
type is guaranteed to be a symbol by the factory method
2014-08-02 19:29:58 -05:00
Jack Nagel
cdf1a7b41c
CxxStdlib should be immutable so remove writer methods
2014-08-02 19:29:58 -05:00
Jack Nagel
ffc5687fc2
Eagerly create and reuse cxx11 compiler failure objects
2014-08-01 20:15:58 -05:00
Jack Nagel
525e5f791f
Remove knowledge of DSL implementation from initialize
2014-08-01 20:15:57 -05:00
Mike McQuaid
426737eb9e
outdated: allow passing formulae as arguments.
...
If formulae names are passed as arguments check if just they are outdated. Additionally, return a failed code if they are outdated.
This will hopefully be able to stop people complaining about the outdated error code as they can now just run e.g.:
`brew outdated git && brew upgrade git`
Closes Homebrew/homebrew#31242 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-01 17:46:05 +02:00
Adam Vandenberg
c043a93bdf
show cmd being executed
2014-08-01 07:58:09 -07:00
Adam Vandenberg
c003e805be
add helpers for formula tests
2014-08-01 07:58:09 -07:00
Jack Nagel
f4ae1c9e1b
Hide the options data structure better
2014-07-31 19:59:09 -05:00
Jack Nagel
abdff27cd7
Make options available on the spec objects
2014-07-31 19:37:39 -05:00
Jack Nagel
fad2e26395
Reduce direct accesses of the args collection
2014-07-31 16:36:54 -05:00
Jack Nagel
b160cc9bb6
Handle tap file renames that remove a file from the formula directory
2014-07-31 15:58:03 -05:00
Jack Nagel
5a94cfc4a3
Use a module since the @build ivar is going away soon
2014-07-30 22:24:24 -05:00
Jack Nagel
fd86e6d636
Remove confusing implicit options handling
...
This code is supposed to allow
depends_on "foo" => "with-bar"
to work when foo has only a "without-bar" option.
The options system was not designed to support this. Unfortunately, it
was bolted on anyway. The implementation is extremely difficult to
understand, and it only works for certain types of options, which is
confusing from a user's point of view. Luckily, no formulae in core or
the official taps rely on the behavior in order to function.
It is hindering progress in improving this code, so I am removing it.
2014-07-30 21:46:22 -05:00
Jack Nagel
5ccce044ca
Use the tab in place of build during tests
2014-07-30 21:04:17 -05:00
Jack Nagel
331737ab25
Add without? to Tab
2014-07-30 21:04:17 -05:00
Jack Nagel
393e10849b
Pass the build object into the Tab
...
Since the Tab is written in the build process, the formula's build
object will have the correct args attached to it already, so we don't
need to reconstruct it.
2014-07-30 20:27:46 -05:00
Jack Nagel
dd331245ab
Remove unused accessor
2014-07-30 20:19:43 -05:00
Jack Nagel
0a605cbf8b
Simplify BuildOptions copy tests
2014-07-30 20:15:18 -05:00
Jack Nagel
bc937f56e7
Rename resource? to resource_defined?
2014-07-30 18:56:37 -05:00
Jack Nagel
3451c2d67f
Handle nonexistent files when constructing ConflictError
...
Closes Homebrew/homebrew#31051 .
2014-07-30 16:29:10 -05:00
Jack Nagel
ba4a4e4103
Limit exposure of the options data structures
2014-07-29 21:54:32 -05:00
Misty De Meo
e18faa7557
--cc=: make GNU_GCC checks stricter
...
Fixes Homebrew/homebrew#30668
2014-07-29 19:31:07 -07:00
Jack Nagel
c1ba34734d
Remove unused require
2014-07-29 17:09:04 -05:00
Jack Nagel
9b6f83bdfa
Use the library path constant to get the library path
2014-07-29 16:59:02 -05:00
Jack Nagel
5216dd54b3
Remove patch hacks from unpack
2014-07-29 16:22:07 -05:00
Jack Nagel
dc2080bd9f
Remove patch hacks from audit
2014-07-29 16:22:06 -05:00
Jack Nagel
a55e196f5f
Simplify internal representation of patches
...
- remove support for IO objects, since we no longer access ::DATA
directly
- since we don't need to support IO objects, use a separate class for
string patches and stop wrapping strings in StringIO ojects
2014-07-29 16:22:06 -05:00
Jack Nagel
3f12ddbccd
Decouple DATA patches from the executing script
2014-07-29 16:22:06 -05:00
Jack Nagel
e0c9717717
Store test patches in constants
2014-07-29 16:06:06 -05:00
Adam Vandenberg
fbee511eba
Pathname.binread
2014-07-29 07:25:27 -07:00
Jack Nagel
8ca8ec3993
Fix up dep directories before activating ENV extensions
2014-07-28 23:20:23 -05:00
Jack Nagel
8a971f7268
Move the fixopt method into the Build class
2014-07-28 21:25:49 -05:00
Jack Nagel
8df8f437f0
Make Patch a module since it only has singleton methods
2014-07-28 16:23:42 -05:00
Jack Nagel
90f69372ce
Remove inheritance patch classes
2014-07-28 16:23:42 -05:00
Mike McQuaid
2013d153e5
Add test 1x1 images for formula test fixtures.
...
images
2014-07-28 19:36:08 +02:00
Adam Vandenberg
5af3d319d6
backport binwrite from Ruby 2.1+
2014-07-27 16:21:35 -07:00
Adam Vandenberg
8e96ce0aa5
Rename write_binary to binwrite
2014-07-27 15:30:46 -07:00