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'
|
2014-06-24 07:58:02 +00:00
|
|
|
url 'https://github.com/drush-ops/drush/archive/6.3.0.tar.gz'
|
|
|
|
sha1 '90fde5acfbd6feefad02453ee9f31a0ac6d2f80e'
|
2010-07-16 10:58:51 +00:00
|
|
|
|
|
|
|
def install
|
2013-08-21 04:33:09 +00:00
|
|
|
prefix.install_metafiles
|
2014-05-31 15:03:18 +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
|