diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libspatialite.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Library/Formula/libspatialite.rb b/Library/Formula/libspatialite.rb index c37d33f65..34692f649 100644 --- a/Library/Formula/libspatialite.rb +++ b/Library/Formula/libspatialite.rb @@ -1,17 +1,11 @@ require 'formula' -def without_freexl? - ARGV.include? '--without-freexl' -end - class Libspatialite < Formula homepage 'https://www.gaia-gis.it/fossil/libspatialite/index' url 'http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-3.0.1.tar.gz' sha1 'a88c763302aabc3b74d44a88f969c8475f0c0d10' - def options - [['--without-freexl', 'Build without support for reading Excel files']] - end + option 'without-freexl', 'Build without support for reading Excel files' depends_on 'proj' depends_on 'geos' @@ -20,7 +14,7 @@ class Libspatialite < Formula # on Lion. Finally, RTree index support is required as well. depends_on 'sqlite' - depends_on 'freexl' unless without_freexl? + depends_on 'freexl' unless build.include? 'without-freexl' def install # O2 and O3 leads to corrupt/invalid rtree indexes @@ -34,7 +28,7 @@ class Libspatialite < Formula --prefix=#{prefix} --with-sysroot=#{HOMEBREW_PREFIX} ] - args << '--enable-freexl=no' if without_freexl? + args << '--enable-freexl=no' if build.include? 'without-freexl' system './configure', *args system "make install" |
