Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 26bc93eadf
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (34 sloc) 0.855 kB
require 'formula'
class PostgresqlInstalled < Requirement
def message; <<-EOS.undent
PostgreSQL is required to install.
You can install this with:
brew install postgresql
Or you can use an official installer from:
http://www.postgresql.org/
EOS
end
def satisfied?
which 'pg_config'
end
def fatal?
true
end
end
class Osm2pgsql < Formula
homepage 'http://wiki.openstreetmap.org/wiki/Osm2pgsql'
head 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/'
depends_on PostgresqlInstalled.new
depends_on :automake
depends_on :libtool
depends_on "geos"
depends_on "proj"
depends_on "protobuf-c" => :optional
def install
system "./autogen.sh"
system "./configure"
system "make"
bin.install "osm2pgsql"
(share+'osm2pgsql').install 'default.style'
end
end
Jump to Line
Something went wrong with that request. Please try again.