2
2
3
3
class Postgresql < Formula
4
4
homepage 'http://www.postgresql.org/'
5
- url 'http://ftp.postgresql.org/pub/source/v9.2.4 /postgresql-9.2.4 .tar.bz2'
6
- sha1 '75b53c884cb10ed9404747b51677358f12082152 '
7
- version '9.2.4-boxen2 '
5
+ url 'http://ftp.postgresql.org/pub/source/v9.3.1 /postgresql-9.3.1 .tar.bz2'
6
+ sha256 '8ea4a7a92a6f5a79359b02e683ace335c5eb45dffe7f8a681a9ce82470a8a0b8 '
7
+ version '9.3.1-boxen '
8
8
9
9
depends_on 'readline'
10
10
depends_on 'ossp-uuid'
@@ -18,7 +18,6 @@ def options
18
18
]
19
19
end
20
20
21
- # Fix PL/Python build: https://github.com/mxcl/homebrew/issues/11162
22
21
# Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php
23
22
def patches
24
23
DATA
@@ -52,17 +51,13 @@ def install
52
51
args << "--with-ossp-uuid" unless ARGV . include? '--no-ossp-uuid'
53
52
args << "--with-python" unless ARGV . include? '--no-python'
54
53
args << "--with-perl" unless ARGV . include? '--no-perl'
54
+ args << "--with-tcl" unless ARGV . include? '--no-tcl'
55
55
args << "--enable-dtrace" if ARGV . include? '--enable-dtrace'
56
56
57
57
ENV . append 'CFLAGS' , `uuid-config --cflags` . strip
58
58
ENV . append 'LDFLAGS' , `uuid-config --ldflags` . strip
59
59
ENV . append 'LIBS' , `uuid-config --libs` . strip
60
60
61
- if not ARGV . build_32_bit? and MacOS . prefer_64_bit? and not ARGV . include? '--no-python'
62
- args << "ARCHFLAGS='-arch x86_64'"
63
- check_python_arch
64
- end
65
-
66
61
if ARGV . build_32_bit?
67
62
ENV . append 'CFLAGS' , '-arch i386'
68
63
ENV . append 'LDFLAGS' , '-arch i386'
@@ -74,45 +69,9 @@ def install
74
69
system "./configure" , *args
75
70
system "make install-world"
76
71
end
77
-
78
- def check_python_arch
79
- # On 64-bit systems, we need to look for a 32-bit Framework Python.
80
- # The configure script prefers this Python version, and if it doesn't
81
- # have 64-bit support then linking will fail.
82
- framework_python = Pathname . new "/Library/Frameworks/Python.framework/Versions/Current/Python"
83
- return unless framework_python . exist?
84
- unless ( archs_for_command framework_python ) . include? :x86_64
85
- opoo "Detected a framework Python that does not have 64-bit support in:"
86
- puts <<-EOS . undent
87
- #{ framework_python }
88
-
89
- The configure script seems to prefer this version of Python over any others,
90
- so you may experience linker problems as described in:
91
- http://osdir.com/ml/pgsql-general/2009-09/msg00160.html
92
-
93
- To fix this issue, you may need to either delete the version of Python
94
- shown above, or move it out of the way before brewing PostgreSQL.
95
-
96
- Note that a framework Python in /Library/Frameworks/Python.framework is
97
- the "MacPython" version, and not the system-provided version which is in:
98
- /System/Library/Frameworks/Python.framework
99
- EOS
100
- end
101
- end
102
72
end
103
73
104
74
__END__
105
- --- a/src/pl/plpython/Makefile 2011-09-23 08:03:52.000000000 +1000
106
- +++ b/src/pl/plpython/Makefile 2011-10-26 21:43:40.000000000 +1100
107
- @@ -24,8 +24,6 @@
108
- # Darwin (OS X) has its own ideas about how to do this.
109
- ifeq ($(PORTNAME), darwin)
110
- shared_libpython = yes
111
- -override python_libspec = -framework Python
112
- -override python_additional_libs =
113
- endif
114
-
115
- # If we don't have a shared library and the platform doesn't allow it
116
75
--- a/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:34:53.000000000 -0700
117
76
+++ b/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:35:03.000000000 -0700
118
77
@@ -9,6 +9,8 @@
0 commit comments