2013-10-09 21:53:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class CharmTools < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Tools for authoring and maintaining juju"
|
2013-10-09 21:53:19 +00:00
|
|
|
homepage 'https://launchpad.net/charm-tools'
|
2015-03-24 19:12:42 +00:00
|
|
|
url 'https://launchpad.net/charm-tools/1.5/1.5.1/+download/charm-tools-1.5.1.tar.gz'
|
|
|
|
sha1 'f0e8f5f0746b54feb2281aad6b270e08f77b8aa5'
|
2013-10-09 21:53:19 +00:00
|
|
|
|
2015-03-24 19:50:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "ce32f7bea01b802b7e3fe7602824803bc9e1e0aa2f7b9b9b97209d9e55069472" => :yosemite
|
|
|
|
sha256 "dac2d32c219b2cf83e611626292a229eb5901b218ad39b8704d4d59a2b36f491" => :mavericks
|
|
|
|
sha256 "4239d0adc10d00e4d96f74bba4d05221cd828b18fe9dce3498aacbf38c8c6484" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-04-30 22:36:21 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2013-10-09 21:53:19 +00:00
|
|
|
depends_on 'libyaml'
|
|
|
|
|
|
|
|
def install
|
2014-01-04 13:03:17 +00:00
|
|
|
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
|
|
|
|
system "python", "setup.py", "install", "--prefix=#{libexec}"
|
2013-12-15 22:22:21 +00:00
|
|
|
|
2014-01-04 13:03:17 +00:00
|
|
|
bin.install Dir[libexec/'bin/*charm*']
|
|
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
2013-10-09 21:53:19 +00:00
|
|
|
end
|
|
|
|
|
2014-01-04 13:03:17 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/charm", "list"
|
2013-10-09 21:53:19 +00:00
|
|
|
end
|
|
|
|
end
|