2010-02-10 10:57:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SpatialiteTools < Formula
|
2012-01-08 22:04:13 +00:00
|
|
|
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'
|
2010-02-10 10:57:56 +00:00
|
|
|
|
2012-09-05 18:35:57 +00:00
|
|
|
devel do
|
2012-12-05 04:06:05 +00:00
|
|
|
url 'http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-4.0.0.tar.gz'
|
|
|
|
sha1 'ab70abdc487a869252b0042f51813c6ff6ffdadb'
|
2012-09-05 18:35:57 +00:00
|
|
|
end
|
|
|
|
|
2010-11-30 09:40:58 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-05-07 18:01:27 +00:00
|
|
|
|
2010-02-10 10:57:56 +00:00
|
|
|
depends_on 'libspatialite'
|
2012-05-07 18:01:27 +00:00
|
|
|
depends_on 'readosm'
|
2010-02-10 10:57:56 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-11 22:04:50 +00:00
|
|
|
# See: https://github.com/mxcl/homebrew/issues/3328
|
|
|
|
ENV.append 'LDFLAGS', '-liconv'
|
2012-05-07 20:56:45 +00:00
|
|
|
# Ensure Homebrew SQLite is found before system SQLite.
|
2012-11-11 20:30:45 +00:00
|
|
|
sqlite = Formula.factory 'sqlite'
|
|
|
|
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
|
2012-05-07 20:56:45 +00:00
|
|
|
|
2012-01-08 22:04:13 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-05-07 18:01:27 +00:00
|
|
|
"--prefix=#{prefix}"
|
2010-02-10 10:57:56 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|