-
-
Save MaZderMind/2500156 to your computer and use it in GitHub Desktop.
Osmium Homebrew formula
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
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' | |
depends_on 'libgd' | |
depends_on 'doxygen' | |
depends_on 'gdal' | |
skip_clean :all | |
def install | |
cd 'osmjs' do | |
icu = Formula.factory("icu4c") | |
ENV['CPLUS_INCLUDE_PATH'] = icu.include | |
ENV['LIBRARY_PATH'] = icu.lib | |
system "make" | |
bin.install 'osmjs' | |
end | |
cd 'examples' do | |
system "make" | |
bin.install 'osmium_convert' | |
bin.install 'osmium_debug' | |
bin.install 'osmium_store_and_debug' | |
bin.install 'osmium_find_bbox' | |
bin.install 'osmium_progress' | |
bin.install 'osmium_range_from_history' | |
bin.install 'osmium_sizeof' | |
bin.install 'osmium_stats' | |
bin.install 'osmium_time' | |
bin.install 'osmium_toogr' | |
bin.install 'osmium_toogr2' | |
bin.install 'osmium_toshape' | |
bin.install 'nodedensity' | |
end | |
system "make doc" | |
include.install Dir['include/*'] | |
doc.install Dir['doc/*'] | |
end | |
end |
you can refer to https://github.com/MaZderMind/osmium/tarball/2012.04.27 as a versioned url. Because I'm not the repo-owner I won't introduce a versioning scheme but instead use the current date to specify a tag.
@MaZderMind Hey, my pull request to osm-pbf was accepted. Would you mind to create a new formula pull request for osmium?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sweet: depends_on 'libgd' did the trick. Thx!