diff options
| author | Jack Nagel | 2014-03-16 21:35:20 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-16 21:35:20 -0500 |
| commit | 34ac2413289cd2df6e60ec8d8f919d7029ad8498 (patch) | |
| tree | 0d31640d3044259c401ca13aceb985b6dbd714f3 /Library | |
| parent | 4b025a04c44a50feee4c18c58c404c7a9e3500c0 (diff) | |
| download | homebrew-34ac2413289cd2df6e60ec8d8f919d7029ad8498.tar.bz2 | |
liblwgeom: use checksummed patches
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/liblwgeom.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Library/Formula/liblwgeom.rb b/Library/Formula/liblwgeom.rb index 00690ef89..e6ef67611 100644 --- a/Library/Formula/liblwgeom.rb +++ b/Library/Formula/liblwgeom.rb @@ -2,8 +2,19 @@ require 'formula' class Liblwgeom < Formula homepage 'http://postgis.net' - url 'http://download.osgeo.org/postgis/source/postgis-2.1.1.tar.gz' - sha1 'eaff009fb22b8824f89e5aa581e8b900c5d8f65b' + + stable do + url "http://download.osgeo.org/postgis/source/postgis-2.1.1.tar.gz" + sha1 "eaff009fb22b8824f89e5aa581e8b900c5d8f65b" + + # Strip all the PostgreSQL functions from PostGIS configure.ac, to allow + # building liblwgeom.dylib without needing PostgreSQL + # NOTE: this will need to be maintained per postgis version + patch do + url "https://gist.github.com/dakcarto/7458788/raw/8df39204eef5a1e5671828ded7f377ad0f61d4e1/postgis-config_strip-pgsql.diff" + sha1 "3d93c9ede79439f1c683a604f9d906f5c788c690" + end + end head do url 'http://svn.osgeo.org/postgis/trunk/' @@ -21,15 +32,6 @@ class Liblwgeom < Formula depends_on 'geos' depends_on 'json-c' - def patches - if build.stable? - # Strip all the PostgreSQL functions from PostGIS configure.ac, to allow - # building liblwgeom.dylib without needing PostgreSQL - # NOTE: this will need to be maintained per postgis version - "https://gist.github.com/dakcarto/7458788/raw/8df39204eef5a1e5671828ded7f377ad0f61d4e1/postgis-config_strip-pgsql.diff" - end - end - def install # See postgis.rb for comments about these settings ENV.deparallelize |
