aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTim D. Smith2014-09-21 15:53:30 -0700
committerTim D. Smith2014-09-21 22:43:02 -0700
commit9ab9a32a68e10b2fc4621395674dda9a695f62e8 (patch)
treef7cfdd917df7b43f9b8dab8fe1b2f834d9a49499 /Library/Formula
parent0a7340d232603a591362f3bd964c0357b48bc2cb (diff)
downloadhomebrew-9ab9a32a68e10b2fc4621395674dda9a695f62e8.tar.bz2
pgrouting: boost 1.56 compatibility
Closes #32496. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pgrouting.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/pgrouting.rb b/Library/Formula/pgrouting.rb
index a58e272c7..317c256a4 100644
--- a/Library/Formula/pgrouting.rb
+++ b/Library/Formula/pgrouting.rb
@@ -5,6 +5,10 @@ class Pgrouting < Formula
url "https://github.com/pgRouting/pgrouting/archive/v2.0.0.tar.gz"
sha1 "cd2f60dc49df7bc8c789c8e73ecb9759194fab96"
+ # work around function name conflict from Postgres
+ # https://github.com/pgRouting/pgrouting/issues/274
+ patch :DATA
+
depends_on 'cmake' => :build
depends_on 'boost'
depends_on 'cgal'
@@ -18,3 +22,39 @@ class Pgrouting < Formula
end
end
end
+__END__
+diff --git a/src/astar/src/astar.h b/src/astar/src/astar.h
+index d5872bb..34a0621 100644
+--- a/src/astar/src/astar.h
++++ b/src/astar/src/astar.h
+@@ -21,6 +21,7 @@
+
+ #define _ASTAR_H
+
++#include <unistd.h>
+ #include "postgres.h"
+ #include "dijkstra.h"
+
+diff --git a/src/dijkstra/src/dijkstra.h b/src/dijkstra/src/dijkstra.h
+index ca5bea4..09ac6f1 100644
+--- a/src/dijkstra/src/dijkstra.h
++++ b/src/dijkstra/src/dijkstra.h
+@@ -22,6 +22,7 @@
+ #ifndef _DIJKSTRA_H
+ #define _DIJKSTRA_H
+
++#include <unistd.h>
+ #include "postgres.h"
+
+ typedef struct edge
+diff --git a/src/driving_distance/src/drivedist.h b/src/driving_distance/src/drivedist.h
+index e85bdd7..ce20b8b 100644
+--- a/src/driving_distance/src/drivedist.h
++++ b/src/driving_distance/src/drivedist.h
+@@ -22,6 +22,7 @@
+ #ifndef _DRIVEDIST_H
+ #define _DRIVEDIST_H
+
++#include <unistd.h>
+ #include "postgres.h"
+ #include "dijkstra.h"