54b6188830
There's no compiling so the bottle is unnecessary. At the same time, bottle will make ruby becoming the hard dependency. Closes Homebrew/homebrew#39649.
21 lines
704 B
Ruby
21 lines
704 B
Ruby
class HerokuToolbelt < Formula
|
|
homepage "https://toolbelt.heroku.com/other"
|
|
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.36.4.tgz"
|
|
sha256 "b57a991828663e3587e07a66b796bf56bf8f4610a618241195bd760a4cf29319"
|
|
head "https://github.com/heroku/heroku.git"
|
|
|
|
depends_on :ruby => "1.9"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
# turn off autoupdates (off by default in HEAD)
|
|
if build.stable?
|
|
inreplace libexec/"bin/heroku", "Heroku::Updater.inject_libpath", "Heroku::Updater.disable(\"Use `brew upgrade heroku-toolbelt` to update\")"
|
|
end
|
|
bin.write_exec_script libexec/"bin/heroku"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/heroku", "version"
|
|
end
|
|
end
|