diff options
| author | Jack Nagel | 2014-03-17 14:02:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-17 14:05:20 -0500 |
| commit | b95ca7eb5513d924da0b31a1f71be51df10f4407 (patch) | |
| tree | 49133bc08f349f99f542898fe72c4030b6529f5f /Library/Formula | |
| parent | e38c232e566c950a9cc848840526dfb60178e5bd (diff) | |
| download | homebrew-b95ca7eb5513d924da0b31a1f71be51df10f4407.tar.bz2 | |
gdal: use checksummed patches
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gdal.rb | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index 7a93cee6b..59a19e988 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -55,6 +55,21 @@ class Gdal < Formula depends_on "poppler" end + # Prevent build failure on 10.6 / 10.7: http://trac.osgeo.org/gdal/ticket/5197 + # Fix build against MySQL 5.6.x: http://trac.osgeo.org/gdal/ticket/5284 + patch :DATA + + stable do + # Patch of configure that finds Mac Java for MDB driver (uses Oracle or Mac default JDK) + # TODO: Remove when future GDAL release includes a fix + # http://trac.osgeo.org/gdal/ticket/5267 (patch applied to trunk, 2.0 release milestone) + # Must come before DATA + patch do + url "https://gist.githubusercontent.com/dakcarto/6877854/raw/82ae81e558c0b6048336f0acb5d7577bd0a237d5/gdal-mdb-patch.diff" + sha1 "ea6c753df9e35abd90d7078f8a727eaab7f7d996" + end if build.include? "enable-mdb" + end + def get_configure_args args = [ # Base configuration. @@ -183,24 +198,6 @@ class Gdal < Formula return args end - def patches - p = [] - - if build.stable? - # Patch of configure that finds Mac Java for MDB driver (uses Oracle or Mac default JDK) - # TODO: Remove when future GDAL release includes a fix - # http://trac.osgeo.org/gdal/ticket/5267 (patch applied to trunk, 2.0 release milestone) - # Must come before DATA - p << "https://gist.github.com/dakcarto/6877854/raw" if build.include? 'enable-mdb' - - # Prevent build failure on 10.6 / 10.7: http://trac.osgeo.org/gdal/ticket/5197 - # Fix build against MySQL 5.6.x: http://trac.osgeo.org/gdal/ticket/5284 - p << DATA - end - - return p - end - def install # Linking flags for SQLite are not added at a critical moment when the GDAL # library is being assembled. This causes the build to fail due to missing |
