postgis: use buildpath instead of Dir.getwd

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-05-08 01:11:58 -05:00
parent 50cb7df7d5
commit b908c0d024

View file

@ -70,7 +70,7 @@ class Postgis < Formula
# install everything to a staging directory and manually move the pieces
# into the appropriate prefixes.
mkdir 'stage'
system 'make', 'install', "DESTDIR=#{Dir.getwd}/stage"
system 'make', 'install', "DESTDIR=#{buildpath}/stage"
# Install PostGIS plugin libraries into the Postgres keg so that they can
# be loaded and so PostGIS databases will continue to function even if