diff options
| author | Jack Nagel | 2012-04-28 17:28:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-28 17:28:14 -0500 |
| commit | 3cc7176d0e03ffafff11f966719ac02699a88720 (patch) | |
| tree | 591fa18e03ef2781f29eea53f7c08b57b8303526 /Library/Formula | |
| parent | bffb19f55960c0bb3239a262505361ba40f75a86 (diff) | |
| download | homebrew-3cc7176d0e03ffafff11f966719ac02699a88720.tar.bz2 | |
ice: move patch inline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ice.rb | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Library/Formula/ice.rb b/Library/Formula/ice.rb index 5c49dfd05..24517247f 100644 --- a/Library/Formula/ice.rb +++ b/Library/Formula/ice.rb @@ -8,10 +8,8 @@ class Ice < Formula depends_on 'berkeley-db' depends_on 'mcpp' - def patches - # Patch for Ice-3.4.1 to work with Berkely DB 5.X. - "http://gist.github.com/raw/459204/44183ae997afb8ec19148fec498a11d67b5ae8bf/Ice-3.4.1-db5.patch" - end + # Patch for Ice-3.4.1 to work with Berkely DB 5.X. + def patches; DATA; end def options [ @@ -46,3 +44,21 @@ class Ice < Formula end end end + +__END__ +--- ./cpp/src/Freeze/MapI.cpp ++++ ./cpp/src/Freeze/MapI.cpp +@@ -1487,10 +1487,10 @@ Freeze::MapHelperI::size() const + + try + { +-#if DB_VERSION_MAJOR != 4 +-#error Freeze requires DB 4.x ++#if DB_VERSION_MAJOR < 4 ++#error Freeze requires DB 4.x or greater + #endif +-#if DB_VERSION_MINOR < 3 ++#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 3 + _db->stat(&s, 0); + #else + _db->stat(_connection->dbTxn(), &s, 0); |
