homebrew-core/Formula/mapnik.rb
Kashif Rasul e6f886cd12 mapnik 2.0.0
Closes Homebrew/homebrew#7847.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-03 16:20:34 -05:00

27 lines
666 B
Ruby

require 'formula'
class Mapnik < Formula
url 'http://download.berlios.de/mapnik/mapnik-2.0.0.tar.gz'
homepage 'http://www.mapnik.org/'
md5 '3b0dacbf98f24dbcf113c6f4b1d7f0c8'
head 'http://svn.mapnik.org/trunk', :using => :svn
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}",
"install"
end
end