4d7eef35c6
And uniq! the path list
15 lines
No EOL
514 B
Ruby
15 lines
No EOL
514 B
Ruby
require 'brewkit'
|
|
|
|
class PkgConfig <Formula
|
|
@homepage='http://pkgconfig.freedesktop.org'
|
|
@url='http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
|
|
@md5='d922a88782b64441d06547632fd85744'
|
|
|
|
#TODO depend on our glib if available. --with-installed-glib
|
|
|
|
def install
|
|
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 |