Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created May 20, 2011 21:42
Show Gist options
  • Save springmeyer/983887 to your computer and use it in GitHub Desktop.
Save springmeyer/983887 to your computer and use it in GitHub Desktop.
mapnik2 homebrew formula
require 'formula'
class Mapnik2 < Formula
head 'http://svn.mapnik.org/trunk/', :using => :svn
homepage 'http://www.mapnik.org/'
depends_on 'pkg-config' => :build
depends_on 'scons' => :build
depends_on 'libtiff'
depends_on 'jpeg'
depends_on 'proj'
depends_on 'icu4c'
depends_on 'boost'
depends_on 'cairomm' => :optional
def install
ENV.x11 # for freetype-config
icu = Formula.factory("icu4c")
system "scons",
"PREFIX=#{prefix}",
"ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}",
"JOBS=2", "install"
end
end
@miccolis
Copy link

Should line #4 be like:

head 'https://github.com/mapnik/mapnik.git', :using => :git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment