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:
parent
c21b2ba357
commit
9d9ae2a262
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue