From 5d43958d2f277f2ab9be7293a90930edb960d485 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 24 Aug 2014 20:20:49 -0500 Subject: Avoid conditionally defined resources Resources are downloaded on-demand, so we can always define them and avoid the headaches that come with conditional definitions. --- Library/Formula/mitmproxy.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'Library/Formula/mitmproxy.rb') diff --git a/Library/Formula/mitmproxy.rb b/Library/Formula/mitmproxy.rb index 2a4b7815d..f54a73098 100644 --- a/Library/Formula/mitmproxy.rb +++ b/Library/Formula/mitmproxy.rb @@ -54,18 +54,14 @@ class Mitmproxy < Formula sha1 '28bd77014cce92bcb09ccc11f93e558d02265082' end - if build.with? 'pyamf' - resource 'pyamf' do - url 'https://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.6.1.tar.gz' - sha1 '825a5ee167c89d3a026347b409ae26cbf6c68530' - end + resource 'pyamf' do + url 'https://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.6.1.tar.gz' + sha1 '825a5ee167c89d3a026347b409ae26cbf6c68530' end - if build.with? 'cssutils' - resource 'cssutils' do - url 'https://pypi.python.org/packages/source/c/cssutils/cssutils-1.0.zip' - sha1 '341e57dbb02b699745b13a9a3296634209d26169' - end + resource 'cssutils' do + url 'https://pypi.python.org/packages/source/c/cssutils/cssutils-1.0.zip' + sha1 '341e57dbb02b699745b13a9a3296634209d26169' end def install -- cgit v1.2.3