postgresql 11.1

master
FX Coudert 2018-12-04 18:47:18 +01:00
parent 5b7ad5c180
commit 3fd03b7850
2 changed files with 5 additions and 25 deletions

View File

@ -1,8 +1,8 @@
class Postgresql < Formula
desc "Object-relational database system"
homepage "https://www.postgresql.org/"
url "https://ftp.postgresql.org/pub/source/v10.6/postgresql-10.6.tar.bz2"
sha256 "68a8276f08bda8fbefe562faaf8831cb20664a7a1d3ffdbbcc5b83e08637624b"
url "https://ftp.postgresql.org/pub/source/v11.1/postgresql-11.1.tar.bz2"
sha256 "90815e812874831e9a4bf6e1136bf73bc2c5a0464ef142e2dfea40cda206db08"
head "https://github.com/postgres/postgres.git"
bottle do
@ -65,31 +65,11 @@ class Postgresql < Formula
end
end
# As of Xcode/CLT 10.x the Perl headers were moved from /System
# to inside the SDK, so we need to use `-iwithsysroot` instead
# of `-I` to point to the correct location.
# https://www.postgresql.org/message-id/153558865647.1483.573481613491501077%40wrigleys.postgresql.org
system "./configure", *args
system "make"
dirs = %W[datadir=#{pkgshare} libdir=#{lib} pkglibdir=#{lib}/postgresql]
# Temporarily disable building/installing the documentation.
# Postgresql seems to "know" the build system has been altered and
# tries to regenerate the documentation when using `install-world`.
# This results in the build failing:
# `ERROR: `osx' is missing on your system.`
# Attempting to fix that by adding a dependency on `open-sp` doesn't
# work and the build errors out on generating the documentation, so
# for now let's simply omit it so we can package Postgresql for Mojave.
if DevelopmentTools.clang_build_version >= 1000
system "make", "all"
system "make", "-C", "contrib", "install", "all", *dirs
system "make", "install", "all", *dirs
else
system "make", "install-world", *dirs
end
system "make", "install-world", "datadir=#{pkgshare}",
"libdir=#{lib}",
"pkglibdir=#{lib}/postgresql"
end
def post_install