Commit Graph
19 Commits
Author SHA1 Message Date
George Kulakowski 79f9242ce6 Fix UnsatisfiedExternalDependencyError
The refactor branch doesn't catch the UEDE and print the error message
containing information about which dependency and how to install
it. This adds back that logic.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:10 -08:00
Adam Vandenberg f2fff3c510 Fix 'brew install f' for already-installed brews. 2011-03-12 11:55:08 -08:00
Max Howell 58e508d19c More modular cmd/install and FormulaInstaller 2011-03-12 11:55:02 -08:00
Adam Vandenberg 2aed94d53a fix jruby external deps 2010-10-21 21:58:18 -07:00
Adam Vandenberg 0bf7b75255 ARGV - rename method that conflicts with optparse
optparse adds an "options" method to ARGV, and so does Homebrew.
Rename this method (and remove optparse blocking script) so that
Homebrew plays nicer with external Ruby software.

This fixes the issue where "gem install thin" would break
"brew server", for instance.
2010-08-07 18:08:51 -07:00
Adam Vandenberg a44f2a6c23 Fix message and undent for external deps 2010-07-21 09:09:15 -07:00
Max Howell d2ace4a0c2 Make expand_deps a class function 2010-07-18 10:45:57 -07:00
Max Howell 53c72ccbaf Some String.dedent action 2010-07-18 10:44:44 -07:00
Adam Vandenberg bada8fe2e6 Support jruby external dependencies.
* Add tests that run only if 'jruby' is installed.
* Note that if your formula has :jruby deps, it should likely
  "depend_on 'jruby'" as well.
2010-04-09 11:21:35 -07:00
Adam Vandenberg e349a47041 Fix external perl checker. 2010-03-19 14:03:44 -07:00
Andre Arko 0d4933ba6f Add support for external ruby deps, and fix external deps system.
Kernel#system special-cases the first argument, so you have to
make the first argument the entire command to be invoked, and
subsequent arguments the actual arguments to that command. In
order to use the user's interpreter, the first argument must be
"/usr/bin/env <name>".

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-25 09:17:00 -08:00
Max Howell daf2239060 Don't require beer_events
RubyCocoa is a large dependency, and any large system can cause unexpected errors. In this case the user's system was badly setup and RubyCocoa caused a dynamic loader issue.

We don't use beer_events currently due to other bugs that occurred sporadically with its use. So requiring it is unnecessary. So lets save ourselves trouble.

Fixes #487
2010-01-17 20:56:24 +00:00
Max Howell 1958bd9df6 Support Perl/CPAN external dependencies
WhoHas requires LWP::UserAgent.
2010-01-13 11:56:23 +00:00
Max Howell bbddc7dd9f Adds: depends_on 'simplejson' => :python
So far we only added python, but we can add more.

Fixes #401
2010-01-13 11:23:15 +00:00
Max Howell 36ae32512c Nice the install process
Makes a big difference on OS X, you can still use the GUI and that.
2009-12-02 10:39:26 +00:00
Max Howell 2dc3423c19 Disable watch_out_for_spill temporarily
It's a great feature but it seems to conflict with our new system() replacement. Clearly the bug is still in our system() but what exactly it is is not clear and this bug sucks.

See #124
2009-11-11 17:29:34 +00:00
Max Howell 0d87b6d380 Don't use Kernel.system much
It just seems to behave strangely with SIGINT. Eg. SIGINT causes tar to exit, but the SIGINT is ignored by our process. This is not the case when used with curl.
2009-11-09 17:55:11 +00:00
Max Howell d4db223c71 Use our own popen implementation in Formula.system
The rationale here is that the --verbose mode had a bug where it didn't escape its parameters properly. Which caused ocassionally cryptic issues.
2009-11-08 15:21:09 +00:00
Max Howell 72edfbf933 brew install improvements
Couldn't make this atomic, apologies.

Fixes a few things, like deps failing to build not aborting the install.
--force now works properly again.

Overall more robust code. I went back over it all and gave it a lot of
thought.

Cleaner separation of logic. Less code in brew, now the only code there is
ARGV handling, and basic sanity checks.

Not extending ARGV or ENV in global now as that would propagate to other tools
or utilities you may write.
2009-11-07 18:22:28 +00:00