homebrew-core/Formula/spatialite-tools.rb

30 lines
926 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class SpatialiteTools < Formula
homepage 'https://www.gaia-gis.it/fossil/spatialite-tools/index'
2012-07-06 06:07:08 +00:00
url 'http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-3.1.0b.tar.gz'
sha1 '82d40a4ef92d86a310e07f0e7e43372904bdbba9'
devel do
url 'http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-4.0.0.tar.gz'
sha1 'ab70abdc487a869252b0042f51813c6ff6ffdadb'
end
depends_on 'pkg-config' => :build
2012-05-07 18:01:27 +00:00
depends_on 'libspatialite'
2012-05-07 18:01:27 +00:00
depends_on 'readosm'
def install
# See: https://github.com/mxcl/homebrew/issues/3328
ENV.append 'LDFLAGS', '-liconv'
# Ensure Homebrew SQLite is found before system SQLite.
sqlite = Formula.factory 'sqlite'
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
system "./configure", "--disable-dependency-tracking",
2012-05-07 18:01:27 +00:00
"--prefix=#{prefix}"
system "make install"
end
end