efl: depend on shared-mime-info

and run update-mime-database in post_install

Closes #17593.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-09-04 07:05:28 -07:00
parent c21b2ba357
commit 9d9ae2a262

View file

@ -34,6 +34,7 @@ class Efl < Formula
depends_on "libraw"
depends_on "librsvg"
depends_on "poppler"
depends_on "shared-mime-info"
depends_on "webp" => :optional
depends_on "glib" => :optional
@ -52,6 +53,10 @@ class Efl < Formula
system "make", "install-doc" if build.with? "docs"
end
def post_install
system Formula["shared-mime-info"].opt_bin/"update-mime-database", "#{HOMEBREW_PREFIX}/share/mime"
end
test do
system bin/"edje_cc", "-V"
system bin/"eet", "-V"