Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Various tweaks for the mapnik formula #8177

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions Library/Formula/cairomm.rb
Expand Up @@ -17,12 +17,9 @@ def patches
depends_on 'cairo' if MacOS.leopard?

def install
ENV.append "PKG_CONFIG_PATH", "#{HOMEBREW_PREFIX}/pkgconfig"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax error: remove comma at the end of line 22.

"--without-x",
"--without-xlib",
"--disable-quartz",
"--disable-quartz-font"
system "make install"
end
end
Expand Down
18 changes: 12 additions & 6 deletions Library/Formula/mapnik.rb
@@ -1,13 +1,11 @@
require 'formula'

class Mapnik < Formula
url 'http://download.berlios.de/mapnik/mapnik-2.0.0.tar.gz'
url 'https://github.com/downloads/mapnik/mapnik/mapnik-2.0.0.tar.bz2'
homepage 'http://www.mapnik.org/'
md5 '3b0dacbf98f24dbcf113c6f4b1d7f0c8'
head 'http://svn.mapnik.org/trunk', :using => :svn
md5 '499c6a61544014b9bc2a7c978f963ef3'

depends_on 'pkg-config' => :build
depends_on 'scons' => :build
depends_on 'libtiff'
depends_on 'jpeg'
depends_on 'proj'
Expand All @@ -16,12 +14,20 @@ class Mapnik < Formula
depends_on 'cairomm' => :optional

def install
ENV.append "PKG_CONFIG_PATH", "#{HOMEBREW_PREFIX}/pkgconfig"
ENV.x11 # for freetype-config

icu = Formula.factory("icu4c")
system "scons",
system "python",
"scons/scons.py",
"configure",
"CC=\"#{ENV['CC']}\"",
"CXX=\"#{ENV['CXX']}\"",
"JOBS=#{ENV.make_jobs}",
"PREFIX=#{prefix}",
"ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}",
"ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}"
system "python",
"scons/scons.py",
"install"
end
end