gtk-engines: fix audit

gtk-engines:
  * `caveats method` (line 34) should be put before `test block` (line 28)
This commit is contained in:
Miguel Araújo 2017-02-11 21:24:45 -03:00 committed by Mike McQuaid
parent 72a5c0515f
commit 753c2221cb

View file

@ -25,16 +25,16 @@ class GtkEngines < Formula
system "make", "install"
end
test do
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
test do
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
end