diff options
| author | Max Howell | 2009-08-10 18:46:27 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-10 18:46:27 +0100 |
| commit | c2f9ee68ab69dacdebf531316d782b26e5ec82c1 (patch) | |
| tree | 776feca13887dcc4b2b4b71a28cfcc4f67233ab8 /Library/Formula | |
| parent | 1089896d77e768e8e6e6a1c5e81c5ac4bcaf8808 (diff) | |
| download | homebrew-c2f9ee68ab69dacdebf531316d782b26e5ec82c1.tar.bz2 | |
Place /usr/local first in pkg-config path
And uniq! the path list
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pkg-config.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/pkg-config.rb b/Library/Formula/pkg-config.rb index eb08fc5f5..b450231aa 100644 --- a/Library/Formula/pkg-config.rb +++ b/Library/Formula/pkg-config.rb @@ -8,7 +8,8 @@ class PkgConfig <Formula #TODO depend on our glib if available. --with-installed-glib def install - system "./configure --with-pc-path=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:#{HOMEBREW_PREFIX}/lib/pkgconfig --disable-debug --prefix='#{prefix}'" + paths=%W[#{HOMEBREW_PREFIX}/lib/pkgconfig /usr/local/lib/pkgconfig /usr/lib/pkgconfig].uniq + system "./configure", "--with-pc-path=#{paths*':'}", "--disable-debug", "--prefix=#{prefix}" system "make install" end end
\ No newline at end of file |
