diff options
| author | Jack Nagel | 2014-03-17 14:43:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-17 14:43:59 -0500 |
| commit | b89fdf6c8014c29a9acd6041081b7896f6bbe847 (patch) | |
| tree | 305c444c98ab9659ec2c57e5585b9db60d887f0a /Library/Formula | |
| parent | 8ae8d6fcb4d39e427387866aab74c9148ebdfe8f (diff) | |
| download | homebrew-b89fdf6c8014c29a9acd6041081b7896f6bbe847.tar.bz2 | |
thrift: use checksummed patches
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/thrift.rb | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/Library/Formula/thrift.rb b/Library/Formula/thrift.rb index a426133be..60ea73028 100644 --- a/Library/Formula/thrift.rb +++ b/Library/Formula/thrift.rb @@ -2,8 +2,32 @@ require 'formula' class Thrift < Formula homepage 'http://thrift.apache.org' - url 'http://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz' - sha1 'dc54a54f8dc706ffddcd3e8c6cd5301c931af1cc' + + stable do + url "http://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz" + sha1 "dc54a54f8dc706ffddcd3e8c6cd5301c931af1cc" + + # These patches are 0.9.1-specific and can go away once a newer version is released + { + # Apply THRIFT-2201 fix from master to 0.9.1 branch (required for clang to compile with C++11 support) + "836d95f9f00be73c6936d407977796181d1a506c" => "4bc8c19c51f3d9f30799251a810dd1ca63c4bf1e", + # Apply THRIFT-667 + "12c09f44cb291b1ecc4074cb3a55775b375fa8b2" => "3c449146e13727a9dbeb66e9826968b85a6d8869", + # Apply THRIFT-1755 + "8cd3efe50a42975375e8ff3bc03306d9e4174314" => "5b45d692b2e6a4480d088485d4f011b9cd7fff52", + # Apply THRIFT-2045 + "282e440c6de219b7b8f32b01cc7eb599f534f33f" => "a5ab25621be48a803de7f0893ada1cdadaa1bc11", + "9f9cd10e813ef574dd5578d78ca26a9088383d3a" => "65db24f59989eab8b3b0a0f1393a52faa3cba7ee", + "e957675647d3d7caafe842aa85cbd987e91b21f9" => "478a5ad6b08a268460793112361726976fee8157", + # Apply THRIFT-2229 fix from master to 0.9.1 branch + "5f2d34e5ab33651059a085525b3adbab6a877e6f" => "ff01eeca821a1d97485c9075c4d65f0c5eef4931", + }.each do |name, sha| + patch do + url "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=#{name}" + sha1 sha + end + end + end head do url 'https://git-wip-us.apache.org/repos/asf/thrift.git' @@ -23,27 +47,6 @@ class Thrift < Formula depends_on 'boost' depends_on :python => :optional - def patches - # These patches are 0.9.1-specific and can go away once a newer - # version is released: - if build.stable? - [ - # Apply THRIFT-2201 fix from master to 0.9.1 branch (required for clang to compile with C++11 support) - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=836d95f9f00be73c6936d407977796181d1a506c", - # Apply THRIFT-667 - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=12c09f44cb291b1ecc4074cb3a55775b375fa8b2", - # Apply THRIFT-1755 - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=8cd3efe50a42975375e8ff3bc03306d9e4174314", - # Apply THRIFT-2045 - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=282e440c6de219b7b8f32b01cc7eb599f534f33f", - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=9f9cd10e813ef574dd5578d78ca26a9088383d3a", - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=e957675647d3d7caafe842aa85cbd987e91b21f9", - # Apply THRIFT-2229 fix from master to 0.9.1 branch - "https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=patch;h=5f2d34e5ab33651059a085525b3adbab6a877e6f" - ] - end - end - def install system "./bootstrap.sh" unless build.stable? |
