diff options
| author | Jack Nagel | 2014-08-24 20:20:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-24 20:20:49 -0500 |
| commit | 5d43958d2f277f2ab9be7293a90930edb960d485 (patch) | |
| tree | 5d9f813e5946f88006144e9b44590ff559a847cd /Library/Formula/mitmproxy.rb | |
| parent | 688f061cc9b9dc1ad77a512a4ce32cdb9d4c5cef (diff) | |
| download | homebrew-5d43958d2f277f2ab9be7293a90930edb960d485.tar.bz2 | |
Avoid conditionally defined resources
Resources are downloaded on-demand, so we can always define them and
avoid the headaches that come with conditional definitions.
Diffstat (limited to 'Library/Formula/mitmproxy.rb')
| -rw-r--r-- | Library/Formula/mitmproxy.rb | 16 |
1 files changed, 6 insertions, 10 deletions
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 |
