aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Ortiz2013-09-26 22:41:46 -0500
committerAdam Vandenberg2013-09-27 18:45:46 -0700
commit29720dc7f76031d6cadd3fb4af1ecf0cf9696766 (patch)
tree08c5dd98baf3a041cfcddb83441a52eee8c927d1
parent33b8eb53b0bdaf40f81e133d5b0234b83e0415a1 (diff)
downloadhomebrew-29720dc7f76031d6cadd3fb4af1ecf0cf9696766.tar.bz2
mitmproxy: add options
Closes #22870. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/mitmproxy.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/mitmproxy.rb b/Library/Formula/mitmproxy.rb
index 67ceacb3b..cb40e700b 100644
--- a/Library/Formula/mitmproxy.rb
+++ b/Library/Formula/mitmproxy.rb
@@ -35,12 +35,20 @@ class Urwid < Formula
sha1 '0d6aa34975bb516565cfbf951487d26161e400b7'
end
+class PyAmf < Formula
+ url 'https://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.6.1.tar.gz'
+ sha1 '825a5ee167c89d3a026347b409ae26cbf6c68530'
+end
+
class Mitmproxy < Formula
homepage 'http://mitmproxy.org'
url 'http://mitmproxy.org/download/mitmproxy-0.9.2.tar.gz'
sha1 '7fa95ef27a4ac5ec85010f4ddb85cf6b7f17ef27'
+ option 'with-pyamf', 'Enable action message format (AMF) support for python'
+
depends_on :python
+ depends_on 'protobuf' => :optional
# TODO: Move this into Library/Homebrew somewhere (see also ansible.rb).
def wrap bin_file, pythonpath
@@ -65,6 +73,7 @@ class Mitmproxy < Formula
Netlib.new.brew { system python, *install_args }
PyAsn1.new.brew { system python, *install_args }
Urwid.new.brew { system python, *install_args }
+ PyAmf.new.brew { system python, *install_args } if build.with? 'pyamf'
inreplace 'libmproxy/__init__.py',
/^$/,