2010-07-16 10:58:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Drush < Formula
|
2013-10-02 20:44:49 +00:00
|
|
|
homepage 'https://github.com/drush-ops/drush'
|
2013-08-21 00:28:34 +00:00
|
|
|
head 'https://github.com/drush-ops/drush.git'
|
2013-12-17 16:45:55 +00:00
|
|
|
url 'https://github.com/drush-ops/drush/archive/6.2.0.tar.gz'
|
|
|
|
sha1 '7e13d5264f362ec09efbe8218e13dcd646ba75b3'
|
2010-07-16 10:58:51 +00:00
|
|
|
|
|
|
|
def install
|
2013-08-21 04:33:09 +00:00
|
|
|
prefix.install_metafiles
|
2013-08-21 04:33:47 +00:00
|
|
|
libexec.install Dir['*'] -['drush.bat']
|
2013-12-15 21:42:35 +00:00
|
|
|
(bin+'drush').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export ETC_PREFIX=${ETC_PREFIX:=#{HOMEBREW_PREFIX}}
|
|
|
|
export SHARE_PREFIX=${SHARE_PREFIX:=#{HOMEBREW_PREFIX}}
|
|
|
|
|
|
|
|
exec "#{libexec}/drush" "$@"
|
|
|
|
EOS
|
2013-05-23 21:33:01 +00:00
|
|
|
bash_completion.install libexec/'drush.complete.sh' => 'drush'
|
2010-07-16 10:58:51 +00:00
|
|
|
end
|
|
|
|
end
|