aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2012-09-02 01:05:09 -0700
committerMike McQuaid2012-09-04 19:44:42 -0700
commit44bd5142095def33571ee95fb2667c081fb7cd02 (patch)
tree356dd083b369923cec4aab0a41d6413842851efd /Library/Formula
parent152c2b739dda65bf54a0063d2f00a87c5754a4c2 (diff)
downloadhomebrew-44bd5142095def33571ee95fb2667c081fb7cd02.tar.bz2
libspatialite: fix SHA1 and option.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libspatialite.rb12
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"