From b95ca7eb5513d924da0b31a1f71be51df10f4407 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 17 Mar 2014 14:02:53 -0500 Subject: gdal: use checksummed patches --- Library/Formula/gdal.rb | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3