From ee490cc7dc50cf9c16b067520bad8673c9e62de8 Mon Sep 17 00:00:00 2001 From: Matt Wildig Date: Wed, 16 Feb 2011 00:15:44 +0000 Subject: Tidy up postgresql share/ and include docs Files go into share/postgresql and docs into share/docs/postgresql instead of directly into share and share/docs. Also include docs (man & html) which weren't being included in install step of build (see http://archives.postgresql.org/pgsql-bugs/2010-10/msg00156.php). Signed-off-by: Adam Vandenberg --- Library/Formula/postgresql.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula/postgresql.rb') diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index 590d88dd5..50d4ebb94 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -35,6 +35,10 @@ class Postgresql < Formula args << "--with-perl" unless ARGV.include? '--no-perl' args << "--with-ossp-uuid" + + args << "--datadir=#{share}/#{name}" + args << "--docdir=#{doc}" + ENV.append 'CFLAGS', `uuid-config --cflags`.strip ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip ENV.append 'LIBS', `uuid-config --libs`.strip @@ -49,6 +53,7 @@ class Postgresql < Formula system "./configure", *args system "make install" + system "make install-docs" contrib_directories = Dir.glob("contrib/*").select{ |path| File.directory?(path) } - ['contrib/start-scripts'] -- cgit v1.2.3