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

postgresql: adding --universal support. #14775

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 6 additions & 0 deletions Library/Formula/postgresql.rb
Expand Up @@ -9,6 +9,7 @@ class Postgresql < Formula
depends_on 'libxml2' if MacOS.version == :leopard # Leopard libxml is too old
depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid'

option :universal
option '32-bit'
option 'without-ossp-uuid', 'Build without OSSP uuid'
option 'no-python', 'Build without Python support'
Expand Down Expand Up @@ -63,6 +64,11 @@ def install
end

system "./configure", *args
if build.universal?
system "curl https://trac.macports.org/export/96361/trunk/dports/databases/postgresql91/files/pg_config.h.ed | ed - ./src/include/pg_config.h"
system "curl https://trac.macports.org/export/96361/trunk/dports/databases/postgresql91/files/ecpg_config.h.ed | ed - ./src/interfaces/ecpg/include/ecpg_config.h"
end

system "make install-world"
end

Expand Down