homebrew-core/Formula/glib.rb
2009-08-11 01:31:47 +01:00

26 lines
687 B
Ruby

require 'brewkit'
class Glib <Formula
@url='http://ftp.gnome.org/pub/gnome/sources/glib/2.20/glib-2.20.3.tar.bz2'
@md5='1173688c58b4b62809c83bb07a2cf71a'
@homepage='http://www.gtk.org'
def deps
BinaryDep.new 'pkg-config'
LibraryDep.new 'gettext'
end
def install
# indeed, amazingly, -w causes gcc to emit spurious errors for this package!
ENV.enable_warnings
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-rebuilds"
system "make"
system "make install"
(prefix+'share'+'gtk-doc').rmtree
end
end