7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
13 lines
No EOL
470 B
Ruby
13 lines
No EOL
470 B
Ruby
require 'formula'
|
|
|
|
class PkgConfig <Formula
|
|
homepage 'http://pkgconfig.freedesktop.org'
|
|
url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
|
|
md5 'd922a88782b64441d06547632fd85744'
|
|
|
|
def install
|
|
paths=%W[#{HOMEBREW_PREFIX}/lib/pkgconfig /usr/local/lib/pkgconfig /usr/lib/pkgconfig /usr/X11/lib/pkgconfig].uniq
|
|
system "./configure", "--with-pc-path=#{paths*':'}", "--disable-debug", "--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end |