2012-04-04 15:25:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GtkEngines < Formula
|
|
|
|
homepage 'http://git.gnome.org/browse/gtk-engines/'
|
2014-04-03 14:25:42 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk-engines/2.20/gtk-engines-2.20.2.tar.bz2'
|
2012-04-04 15:25:43 +00:00
|
|
|
sha1 '574c7577d70eaacecd2ffa14e288ef88fdcb6c2a'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:39:57 +00:00
|
|
|
depends_on 'intltool' => :build
|
2013-02-03 20:59:26 +00:00
|
|
|
depends_on 'gettext'
|
2012-04-04 15:25:43 +00:00
|
|
|
depends_on 'cairo'
|
|
|
|
depends_on 'gtk+'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-03-26 17:54:37 +00:00
|
|
|
test do
|
|
|
|
ENV['GTK2_RC_FILES'] = "#{share}/themes/Clearlooks/gtk-2.0/gtkrc"
|
|
|
|
ENV['GTK_PATH'] = "#{HOMEBREW_PREFIX}/lib/gtk-2.0"
|
|
|
|
system "#{HOMEBREW_PREFIX}/bin/gtk-demo"
|
2012-04-04 15:25:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You will need to set:
|
|
|
|
GTK_PATH=#{HOMEBREW_PREFIX}/lib/gtk-2.0
|
|
|
|
as by default GTK looks for modules in Cellar.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|