5180 Commits

Author SHA1 Message Date
Jack Nagel
2efe4cc3b5 Log directly to the log file in non-verbose mode 2014-09-05 15:13:52 -05:00
Jack Nagel
effddda4f9 Promote log stream to a local 2014-09-05 15:13:52 -05:00
Jack Nagel
479ad0265b Reduce effective scope of pipe variables 2014-09-05 15:13:52 -05:00
Jack Nagel
659896fda2 Extract body of child process to a method 2014-09-05 15:13:52 -05:00
Jack Nagel
bbf79f5d85 Make logging cheaper in the non-verbose case 2014-09-05 01:22:01 -05:00
Jack Nagel
03abf83472 Add timestamp and argument list to log files 2014-09-05 00:36:39 -05:00
Jack Nagel
6638d08489 doctor: print values of DYLD_* env vars 2014-09-04 17:33:33 -05:00
Jack Nagel
e5ea0bcd65 Hack around Zlib constant conflict 2014-09-04 01:28:46 -05:00
Mike McQuaid
d3150f3a06 audit: fix line number typo.
Closes Homebrew/homebrew#32031.
2014-09-02 11:50:00 +01:00
Jack Nagel
fe1bf57a15 audit: fix line number off-by-one 2014-09-01 23:25:16 -05:00
Misty De Meo
4743fc1662 Add Go language module, resources
This introduces a new GoResource category of resource. GoResources
have a specialized stage method which allows a resource to stage
itself into a gopath.

The new Go language module provides a one-liner to stage all
GoResources present in the formula.
2014-09-01 19:56:43 -07:00
Misty De Meo
aec47d8a19 resource: escape slashes from download_name
This is useful to be able to write go resources using their package
name as the resource name
2014-09-01 19:56:43 -07:00
Jack Nagel
356c391dfb Rewrite fails_with tests as tests for CompilerFailure 2014-08-31 13:40:51 -05:00
Xu Cheng
329e357d9a plist_caveats: simplify the block and add a comment
Closes Homebrew/homebrew#30630.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-31 19:18:11 +01:00
Xu Cheng
ddf22735db plist_caveats: remove launchctl list as it requires sudo for root services 2014-08-31 19:18:11 +01:00
Jack Nagel
372945299d Use the accessors to update the test double 2014-08-30 23:41:12 -05:00
Jack Nagel
8b338bd534 Test CompilerSelector against a SoftwareSpec instance 2014-08-30 23:38:48 -05:00
Jack Nagel
eec50f0a9a Remove unnecessary empty block 2014-08-30 23:25:46 -05:00
Jack Nagel
2e2c348944 Test fails_with against spec objects 2014-08-30 23:25:46 -05:00
Jack Nagel
842b051aa7 Test against real CompilerFailure objects 2014-08-30 23:11:02 -05:00
Jack Nagel
b4a634903e Remove obsolete nil check 2014-08-30 23:11:02 -05:00
Jack Nagel
7bfb12aa45 Install dependencies before an interactive install
Closes Homebrew/homebrew#29121.
2014-08-30 15:02:47 -05:00
Jack Nagel
309001fd9f Fix tests on 1.8 2014-08-30 02:01:17 -05:00
Jack Nagel
d18c016a27 Use cp because install warns on empty arrays 2014-08-29 22:51:10 -05:00
Jack Nagel
1ec1d36301 Copy config.log even if the build succeeds 2014-08-29 22:35:41 -05:00
Jack Nagel
977ae5f27d Collapse iteration to a map 2014-08-29 19:38:32 -05:00
Jack Nagel
750d7bb2c8 Options internals no longer need to support switches 2014-08-29 19:38:32 -05:00
Jack Nagel
b14851903c Add a method for retrieving only flags from ARGV 2014-08-29 19:38:32 -05:00
Jack Nagel
6885f588d0 Move handling of leading dashes to Options.create 2014-08-29 19:38:32 -05:00
Jack Nagel
7adbb1ccb9 Single character options should not be used in a formula 2014-08-28 23:54:00 -05:00
Jack Nagel
db04b04135 Simplify implementation of ARGV.flag? and ARGV.switch? 2014-08-28 22:11:08 -05:00
Jack Nagel
54348f55d8 Use two-argument form of String#slice 2014-08-28 22:11:08 -05:00
Jack Nagel
e18da89f3c Implement ARGV.named in terms of ARGV.options_only 2014-08-28 22:11:08 -05:00
Jack Nagel
7a5e4f5cca ARGV.spec should be private 2014-08-28 21:35:52 -05:00
Shaun Jackman
8e3e0be6d1 gettext, readline: Add keg_only :shadowed_by_osx
Closes Homebrew/homebrew#31951.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-28 17:01:38 -05:00
Jack Nagel
6b9a929e40 Rewrite missing_options in a more obvious way 2014-08-27 23:28:00 -05:00
Kyle Gorman
5664e04b08 Move OpenFST and OpenGRM-ngram to homebrew-science
Closes Homebrew/homebrew#31905.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-27 21:46:52 -05:00
Jack Nagel
26467fa9d7 Make sure all exceptions are sent back to the parent process 2014-08-27 17:25:13 -05:00
Jack Nagel
9386902cf8 Explicitly pass options into the build object 2014-08-27 17:25:13 -05:00
Jack Nagel
889996daf1 Spell out formula in parameter and attribute names 2014-08-27 17:25:13 -05:00
Jack Nagel
b46f8caa8f Object#methods returns an array of symbols on 1.9+
Fixes Homebrew/homebrew#31926.
2014-08-27 15:47:09 -05:00
Jack Nagel
f7f8ca45fc Remove to_str from Option
We no longer need implicit conversion of options to strings.
2014-08-27 14:08:14 -05:00
Jack Nagel
f5d18cceb6 Structure the build process so that we don't need an at_exit hook 2014-08-26 22:06:43 -05:00
Jack Nagel
11f880801c Avoid intermediate option objects 2014-08-26 15:48:16 -05:00
Mike McQuaid
58cb4444da etc.install: handle recursive directory installs.
We need to install the helper module not just on `etc` but also on all
subdirectories of it too. Also, handle the case where we install
a subdirectory with etc.install.

Closes Homebrew/homebrew#26145.
2014-08-26 08:30:47 +01:00
Jack Nagel
31dc3d1f42 Inline variable 2014-08-25 20:43:11 -05:00
Mike McQuaid
4db0aa19c1 install: search when formula isn't found.
If you do `brew install blah` it currently doesn't search for it. This
seems to be unintentional looking at this code as the exception thrown
by ARGV.formulae.each is not caught and handled. Instead, let's handle
this case and provide a little more usability around our taps.

Closes Homebrew/homebrew#31761.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-25 09:24:30 +01:00
Mike McQuaid
8abc12296b requirements: don't print out java_home. 2014-08-25 09:24:08 +01:00
Larry Shaffer
ba8ef6a7ed Add friendlier local file missing error
Closes Homebrew/homebrew#26481.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-24 23:26:36 -05:00
Jack Nagel
ccf37d5ac0 Revert "Use the dependency object as the key in the inherited_options hash"
This reverts commit c8d3b39165bb11799d7849ee13a3559ad0bd63f4.
2014-08-24 16:14:16 -05:00