diff options
| author | Aviv Rosenberg | 2013-12-22 21:16:00 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-01 12:53:15 -0800 |
| commit | 0147be80be3a39811101a9bd757cf97ae63e32e1 (patch) | |
| tree | c7769dbb720c2249639e4f2337203f0406ac1799 /Library/Formula | |
| parent | a287ede1897f4191774c07d343f3f2b813a3e9de (diff) | |
| download | homebrew-0147be80be3a39811101a9bd757cf97ae63e32e1.tar.bz2 | |
osm2pgrouting 2.0.0
This is a tool which uploads OpenStreetMap data into a PostgreSQL
database, while creating appropriate schema and tables suitable for use
with pgrouting.
Closes #25406.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/osm2pgrouting.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/osm2pgrouting.rb b/Library/Formula/osm2pgrouting.rb new file mode 100644 index 000000000..1b0eebf9e --- /dev/null +++ b/Library/Formula/osm2pgrouting.rb @@ -0,0 +1,26 @@ +require 'formula' + +class Osm2pgrouting < Formula + homepage 'http://pgrouting.org/docs/tools/osm2pgrouting.html' + url 'https://github.com/pgRouting/osm2pgrouting/archive/v2.0.0.tar.gz' + sha1 '2d100ac9914919993a7c341e2395b8bafdfe3759' + head 'https://github.com/pgRouting/osm2pgrouting.git', :branch => 'master' + + depends_on 'cmake' => :build + depends_on 'boost' + depends_on :postgresql + + def install + # Fixes the default hard-coded /usr/share which the program would be installed in. + # Instead we supply relative paths, and run cmake with flag -DCMAKE_INSTALL_PREFIX=#{prefix} so that + # we get a proper path inside prefix. + inreplace "CMakeLists.txt" do |s| + s.gsub! "/usr/share/osm2pgrouting", "." + s.gsub! "/usr/share/bin", "bin" + end + + system "cmake", ".", *std_cmake_args + system "make" + system "make", "install" + end +end |
