diff options
| author | Jack Nagel | 2014-03-16 21:35:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-16 23:09:21 -0500 |
| commit | eac4d803281baec3984154ccb03a76c7ac6fd566 (patch) | |
| tree | 1480b906611b3843f1c0bc4e25f0d4b98cea110b /Library/Formula/python.rb | |
| parent | 598e28f7d98d57a2219c57d6a99d65ef93997134 (diff) | |
| download | homebrew-eac4d803281baec3984154ccb03a76c7ac6fd566.tar.bz2 | |
python: use checksummed patches
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 6425261ce..44673b445 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -34,19 +34,16 @@ class Python < Formula sha1 '35ccb7430356186cf253615b70f8ee580610f734' end - def patches - p = {} - # Backported security fix for CVE-2014-1912: - # http://bugs.python.org/issue20246 - p[:p0] = "https://gist.githubusercontent.com/leepa/9351856/raw/7f9130077fd760fcf9a25f50b69d9c77b155fbc5/CVE-2014-1912.patch" - # Patch to disable the search for Tk.framework, since Homebrew's Tk is - # a plain unix build. Remove `-lX11`, too because our Tk is "AquaTk". - if build.with? "brewed-tk" - p[:p1] = DATA - end - p + # Backported security fix for CVE-2014-1912: http://bugs.python.org/issue20246 + patch :p0 do + url "https://gist.githubusercontent.com/leepa/9351856/raw/7f9130077fd760fcf9a25f50b69d9c77b155fbc5/CVE-2014-1912.patch" + sha1 "db25abc381f62e9f501ad56aaa2537e48e1b0889" end + # Patch to disable the search for Tk.framework, since Homebrew's Tk is + # a plain unix build. Remove `-lX11`, too because our Tk is "AquaTk". + patch :DATA if build.with? "brewed-tk" + def lib_cellar prefix/"Frameworks/Python.framework/Versions/2.7/lib/python2.7" end |
