diff options
| author | Robson Peixoto | 2015-01-30 02:24:51 -0300 |
|---|---|---|
| committer | Tim D. Smith | 2015-02-04 18:35:10 -0800 |
| commit | 8641c0f517e32085c0c893bc481dddcc0165470a (patch) | |
| tree | 7d07c79c6bcc4eb73fecd5eb5aac4782971abb5c /Library/Formula | |
| parent | a2e0b7520308ff1be5f02664552dcb1cb52a0534 (diff) | |
| download | homebrew-8641c0f517e32085c0c893bc481dddcc0165470a.tar.bz2 | |
honcho 0.5.0 (new formula)
Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/honcho.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/honcho.rb b/Library/Formula/honcho.rb new file mode 100644 index 000000000..3ed7a6411 --- /dev/null +++ b/Library/Formula/honcho.rb @@ -0,0 +1,23 @@ +class Honcho < Formula + homepage "https://github.com/nickstenning/honcho" + url "https://pypi.python.org/packages/source/h/honcho/honcho-0.5.0.tar.gz" + sha1 "c9f9bdaa59293f8c9ac515d55c9ee4a09240821d" + + def install + ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" + system "python", *Language::Python.setup_install_args(libexec) + + bin.install Dir[libexec/"bin/*"] + bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) + end + + test do + (testpath/"Procfile").write <<-EOS.undent + talk: echo $MY_VAR + EOS + (testpath/".env").write <<-EOS.undent + MY_VAR=hi + EOS + assert_match /talk\.\d+ | hi/, `#{bin}/honcho start` + end +end |
