aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorVictor Castell2010-07-16 12:58:51 +0200
committerAdam Vandenberg2010-07-16 08:32:03 -0700
commited8873f757496a7f3978b91d2479a91ab84d800d (patch)
tree8af42110c63a03a8327a8b265cea69c0dde22a3f /Library
parentf5a7ea4e057ce4f5c1d2c655595cd6ecd9a1280d (diff)
downloadhomebrew-ed8873f757496a7f3978b91d2479a91ab84d800d.tar.bz2
Added drush + drush make formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/drush.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/drush.rb b/Library/Formula/drush.rb
new file mode 100644
index 000000000..13cacc638
--- /dev/null
+++ b/Library/Formula/drush.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+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'
+end
+
+class Drush <Formula
+ url 'http://ftp.drupal.org/files/projects/drush-6.x-3.1.tar.gz'
+ homepage 'http://drupal.org/project/drush'
+ version '3.1' # 3.1 is detected, but lets be explicit here
+ md5 'e768e504674428879a047d8cfdd4926f'
+
+ def install
+ prefix.install Dir['*'] # No lib folder, so this is OK for now.
+ bin.mkpath
+ symlink prefix+'drush', bin+'drush'
+ DrushMake.new.brew { (prefix+'commands/drush_make').install Dir['*'] }
+ end
+end