homebrew-core/Formula/drush.rb

23 lines
635 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Drush < Formula
homepage 'https://github.com/drush-ops/drush'
head 'https://github.com/drush-ops/drush.git'
url 'https://github.com/drush-ops/drush/archive/6.2.0.tar.gz'
sha1 '7e13d5264f362ec09efbe8218e13dcd646ba75b3'
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']
(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
bash_completion.install libexec/'drush.complete.sh' => 'drush'
end
end