From e5f62b38eaf61b79d3bddef25c2407d2846bf4b8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 20 Oct 2013 14:44:20 +0100 Subject: Ansible: add --with-accelerate option to pull in python-keyczar Closes #23397. Signed-off-by: Adam Vandenberg --- Library/Formula/ansible.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library') diff --git a/Library/Formula/ansible.rb b/Library/Formula/ansible.rb index f0af828da..8d9ade761 100644 --- a/Library/Formula/ansible.rb +++ b/Library/Formula/ansible.rb @@ -25,6 +25,11 @@ class PyCrypto < Formula sha1 'c17e41a80b3fbf2ee4e8f2d8bb9e28c5d08bbb84' end +class PythonKeyczar < Formula + url 'https://pypi.python.org/packages/source/p/python-keyczar/python-keyczar-0.71b.tar.gz' + sha1 '20c7c5d54c0ce79262092b4cc691aa309fb277fa' +end + class Ansible < Formula homepage 'http://www.ansibleworks.com/' url 'https://github.com/ansible/ansible/archive/v1.3.3.tar.gz' @@ -35,6 +40,8 @@ class Ansible < Formula depends_on :python depends_on 'libyaml' + option 'with-accelerate', "Enable accelerated mode" + # TODO: Move this into Library/Homebrew somewhere (see also mitmproxy.rb). def wrap bin_file, pythonpath bin_file = Pathname.new bin_file @@ -56,6 +63,9 @@ class Ansible < Formula Paramiko.new.brew { system python, *install_args } MarkupSafe.new.brew { system python, *install_args } Jinja2.new.brew { system python, *install_args } + if build.with? 'accelerate' + PythonKeyczar.new.brew { system python, *install_args } + end inreplace 'lib/ansible/constants.py' do |s| s.gsub! '/usr/share/ansible', share+'ansible' -- cgit v1.2.3