diff options
| author | Boris Gordon | 2010-07-23 13:00:09 +1000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-27 22:08:41 -0700 |
| commit | 4d41eaf0e3719b5cf9884162e61fbca352de65a7 (patch) | |
| tree | faf6814e1cf30360c8f2155c7b5d70fe386f61a5 /Library/Formula | |
| parent | 9474a4f30bfcbf704c6fa6e487cea7695f1c6040 (diff) | |
| download | homebrew-4d41eaf0e3719b5cf9884162e61fbca352de65a7.tar.bz2 | |
Patch drush_make command
Fixes Mac OS X specific problem with tar option detection
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/drush.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/drush.rb b/Library/Formula/drush.rb index 13cacc638..74e4c82af 100644 --- a/Library/Formula/drush.rb +++ b/Library/Formula/drush.rb @@ -4,6 +4,10 @@ class DrushMake <Formula url 'http://ftp.drupal.org/files/projects/drush_make-6.x-2.0-beta8.tar.gz' homepage 'http://drupal.org/project/drush_make' md5 '75c2d4b1ae7f69f843d641723f4aae5a' + + def patches + DATA + end end class Drush <Formula @@ -19,3 +23,18 @@ class Drush <Formula DrushMake.new.brew { (prefix+'commands/drush_make').install Dir['*'] } end end + +__END__ +diff --git a/drush_make.download.inc b/drush_make.download.inc +index 99ff080..4a98166 100644 +--- a/drush_make.download.inc ++++ b/drush_make.download.inc +@@ -162,7 +162,7 @@ class DrushMakeDownload_Get extends DrushMakeDownload { + // Detect whether the user uses --strip-path or --strip-components + $strip_option = drush_get_option('strip-option', FALSE); + if (!$strip_option) { +- drush_shell_exec("man tar | grep strip-component"); ++ drush_shell_exec("man -t tar | grep strip-component"); + $info = drush_shell_exec_output(); + if ($info) { + $strip_option = 'component'; |
