homebrew-core/Formula/charm-tools.rb
Marco Ceppi 9bff526b97 charm-tools 1.2.7
Closes Homebrew/homebrew#25849.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-12 21:01:55 +00:00

22 lines
619 B
Ruby

require 'formula'
class CharmTools < Formula
homepage 'https://launchpad.net/charm-tools'
url 'https://launchpad.net/charm-tools/1.2/1.2.7/+download/charm-tools-1.2.7.tar.gz'
sha1 '428b7204bdd8b726a87653350082fb03841441ae'
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