2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class PkgConfig < Formula
|
2012-04-28 02:56:56 +00:00
|
|
|
homepage 'http://pkgconfig.freedesktop.org'
|
2012-07-17 17:36:51 +00:00
|
|
|
url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz'
|
2012-08-04 17:05:32 +00:00
|
|
|
mirror 'http://fossies.org/unix/privat/pkg-config-0.27.tar.gz'
|
2012-07-17 17:36:51 +00:00
|
|
|
sha256 '79a6b43ee6633c9e6cc03eb1706370bb7a8450659845b782411f969eaba656a4'
|
2011-08-21 13:29:38 +00:00
|
|
|
|
2012-07-17 17:36:51 +00:00
|
|
|
depends_on 'gettext'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2012-08-11 14:23:49 +00:00
|
|
|
bottle do
|
|
|
|
sha1 '52e1a98740cc834f4b29ee31923812914461f815' => :mountainlion
|
|
|
|
sha1 'ebeb434ee288ac7c96cfa09eee98434fe810edff' => :lion
|
|
|
|
sha1 'b72a6f5078ee917a28c1e6c9948db23701f4dd18' => :snowleopard
|
|
|
|
end
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2010-09-06 18:43:49 +00:00
|
|
|
paths = %W[
|
|
|
|
#{HOMEBREW_PREFIX}/lib/pkgconfig
|
2012-02-14 23:39:37 +00:00
|
|
|
#{HOMEBREW_PREFIX}/share/pkgconfig
|
2010-09-06 18:43:49 +00:00
|
|
|
/usr/local/lib/pkgconfig
|
|
|
|
/usr/lib/pkgconfig
|
|
|
|
].uniq
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
2012-07-17 17:36:51 +00:00
|
|
|
"--with-pc-path=#{paths*':'}",
|
|
|
|
"--with-internal-glib"
|
2011-11-17 03:36:53 +00:00
|
|
|
system "make"
|
|
|
|
system "make check"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
2012-07-22 17:32:10 +00:00
|
|
|
|
|
|
|
# Fix some bullshit.
|
|
|
|
# pkg-config tries to install glib's m4 macros, which will conflict with
|
2012-07-22 17:36:07 +00:00
|
|
|
# an actual glib install. See:
|
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=52031
|
2012-07-22 17:32:10 +00:00
|
|
|
rm Dir["#{share}/aclocal/g*.m4"]
|
2009-06-04 18:21:19 +00:00
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|