aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlan Pearce2013-10-20 14:44:20 +0100
committerAdam Vandenberg2013-10-24 07:30:53 -0700
commite5f62b38eaf61b79d3bddef25c2407d2846bf4b8 (patch)
tree0c45230ce1a021b3446efdfb93ffc48797f7c139 /Library/Formula
parentf2cdddedc62424eb37d29cd4a41d8821c7b6f0e7 (diff)
downloadhomebrew-e5f62b38eaf61b79d3bddef25c2407d2846bf4b8.tar.bz2
Ansible: add --with-accelerate option to pull in python-keyczar
Closes #23397. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ansible.rb10
1 files changed, 10 insertions, 0 deletions
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'