homebrew-core/Formula/charm-tools.rb
Marco Ceppi b22e4d9658 charm-tools 1.2.9
Closes Homebrew/homebrew#26816.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-02-18 11:07:19 -06:00

22 lines
621 B
Ruby

require 'formula'
class CharmTools < Formula
homepage 'https://launchpad.net/charm-tools'
url 'https://launchpad.net/charm-tools/1.2/1.2.9/+download/charm-tools-1.2.9-1.tar.gz'
sha1 '9da948b85dc2fc547335d28669f694338b0b77e8'
depends_on :python
depends_on 'libyaml'
def install
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
system "python", "setup.py", "install", "--prefix=#{libexec}"
bin.install Dir[libexec/'bin/*charm*']
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
end
test do
system "#{bin}/charm", "list"
end
end