4643b74f8b
A comment accidentally got separated from the code it was explaining.
23 lines
709 B
Ruby
23 lines
709 B
Ruby
require 'formula'
|
|
|
|
class SpatialiteTools < Formula
|
|
homepage 'https://www.gaia-gis.it/fossil/spatialite-tools/index'
|
|
url 'http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-3.1.0a.tar.gz'
|
|
md5 '241f0eb00da1b19c1088d53684c24214'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libspatialite'
|
|
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.
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|