aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/drush.rb
blob: 92679071b4fec1c75eeb8ab7bc6a366625aa0463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class DrushMake <Formula
  url 'http://ftp.drupal.org/files/projects/drush_make-6.x-2.0-beta10.tar.gz'
  homepage 'http://drupal.org/project/drush_make'
  md5 '3be3c6473198652900f7695e09a1806c'
end

class Drush <Formula
  url 'http://ftp.drupal.org/files/projects/drush-All-versions-4.1.tar.gz'
  homepage 'http://drupal.org/project/drush'
  version '4.1'
  md5 '880997e341af70ee84a99cdc98b35eb9'

  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