2009-06-06 22:54:52 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
|
|
|
class Glib <Formula
|
2009-08-31 18:07:15 +00:00
|
|
|
@url='http://ftp.acc.umu.se/pub/gnome/sources/glib/2.20/glib-2.20.5.tar.bz2'
|
|
|
|
@md5='4c178b91d82ef80a2da3c26b772569c0'
|
2009-06-06 22:54:52 +00:00
|
|
|
@homepage='http://www.gtk.org'
|
|
|
|
|
2009-08-11 00:31:47 +00:00
|
|
|
def deps
|
|
|
|
BinaryDep.new 'pkg-config'
|
|
|
|
LibraryDep.new 'gettext'
|
|
|
|
end
|
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
# indeed, amazingly, -w causes gcc to emit spurious errors for this package!
|
|
|
|
ENV.enable_warnings
|
2009-06-06 22:54:52 +00:00
|
|
|
|
2009-08-11 00:31:47 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-rebuilds"
|
2009-06-06 22:54:52 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2009-08-11 00:31:47 +00:00
|
|
|
|
|
|
|
(prefix+'share'+'gtk-doc').rmtree
|
2009-06-06 22:54:52 +00:00
|
|
|
end
|
|
|
|
end
|