Skip to content

Commit

Permalink
efl: depend on shared-mime-info
Browse files Browse the repository at this point in the history
and run update-mime-database in post_install

Closes #17593.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Sep 4, 2017
1 parent c21b2ba commit 9d9ae2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/efl.rb
Expand Up @@ -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

Expand All @@ -52,6 +53,10 @@ def install
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"
Expand Down

0 comments on commit 9d9ae2a

Please sign in to comment.