From b507fa87c21def5befa39c0fff8cf52c6f3f4a48 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 10 Mar 2013 12:32:57 -0700 Subject: mapnik: patch for boost > 1.52 Closes #18092. --- Library/Formula/mapnik.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/mapnik.rb b/Library/Formula/mapnik.rb index 99e492196..303378767 100644 --- a/Library/Formula/mapnik.rb +++ b/Library/Formula/mapnik.rb @@ -5,6 +5,13 @@ class Mapnik < Formula url 'https://github.com/downloads/mapnik/mapnik/mapnik-v2.1.0.tar.bz2' sha1 'b1c6a138e65a5e20f0f312a559e2ae7185adf5b6' + # batch for building against boost >1.52 + # can be removed at Mapnik >= 2.1.1 + # https://github.com/mapnik/mapnik/issues/1716 + def patches + DATA + end + head 'https://github.com/mapnik/mapnik.git' depends_on 'pkg-config' => :build @@ -80,3 +87,27 @@ class Mapnik < Formula "python" + `python -c 'import sys;print(sys.version[:3])'`.strip end end + +__END__ +diff --git a/src/json/feature_collection_parser.cpp b/src/json/feature_collection_parser.cpp +index 3faeda7..51ad824 100644 +--- a/src/json/feature_collection_parser.cpp ++++ b/src/json/feature_collection_parser.cpp +@@ -20,12 +20,17 @@ + * + *****************************************************************************/ + ++// TODO https://github.com/mapnik/mapnik/issues/1658 ++#include ++#if BOOST_VERSION >= 105200 ++#define BOOST_SPIRIT_USE_PHOENIX_V3 ++#endif ++ + // mapnik + #include + #include + + // boost +-#include + #include + #include -- cgit v1.2.3