forked from Homebrew/legacy-homebrew
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f067fcb
commit b986344
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
require 'formula' | ||
|
||
class Osmium < Formula | ||
head 'https://github.com/joto/osmium.git' | ||
homepage 'http://wiki.openstreetmap.org/wiki/Osmium' | ||
md5 'dce9eb59d86caf1186fc93567b94feed' | ||
|
||
depends_on 'boost' | ||
depends_on 'lzlib' | ||
depends_on 'shapelib' | ||
depends_on 'expat' | ||
depends_on 'geos' | ||
depends_on 'protobuf' | ||
depends_on 'v8' | ||
depends_on 'icu4c' | ||
depends_on 'google-sparsehash' | ||
depends_on 'osm-pbf' | ||
|
||
skip_clean :all | ||
|
||
def patches | ||
# don't use mremap (not supported on Darwin) | ||
# See this commit | ||
# https://github.com/kkaefer/osmium/commit/20773279ce5f22325577c9eb1737c6e34c8239da | ||
"https://raw.github.com/gist/2419092/osmium.patch" | ||
end | ||
|
||
def install | ||
cd 'osmjs' do | ||
system "make" | ||
end | ||
end | ||
end |