homebrew-core/Formula/gtk-engines.rb

33 lines
960 B
Ruby
Raw Normal View History

class GtkEngines < Formula
desc "Themes for GTK+"
homepage "https://git.gnome.org/browse/gtk-engines/"
url "https://download.gnome.org/sources/gtk-engines/2.20/gtk-engines-2.20.2.tar.bz2"
sha256 "15b680abca6c773ecb85253521fa100dd3b8549befeecc7595b10209d62d66b5"
revision 1
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
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
2015-05-20 09:59:12 +00:00
assert (share/"gtk-engines/clearlooks.xml").exist?
assert (lib/"gtk-2.0/2.10.0/engines/libhcengine.so").exist?
assert (share/"themes/Industrial/gtk-2.0/gtkrc").exist?
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