libheif: depend on shared-mime-info
Prior to this, libheif installed its `heif.xml` mime package file in `/usr/local/share/mime` which conflicted with shared-mime-info if you later wanted to install that package. Closes #38047. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
6e1d9b7b73
commit
b3ea3ae80a
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,7 @@ class Libheif < Formula
|
|||
depends_on "jpeg"
|
||||
depends_on "libde265"
|
||||
depends_on "libpng"
|
||||
depends_on "shared-mime-info"
|
||||
depends_on "x265"
|
||||
|
||||
def install
|
||||
|
@ -25,6 +26,10 @@ class Libheif < Formula
|
|||
pkgshare.install "examples/example.heic"
|
||||
end
|
||||
|
||||
def post_install
|
||||
system Formula["shared-mime-info"].opt_bin/"update-mime-database", "#{HOMEBREW_PREFIX}/share/mime"
|
||||
end
|
||||
|
||||
test do
|
||||
output = "File contains 2 images"
|
||||
example = pkgshare/"example.heic"
|
||||
|
|
Loading…
Reference in a new issue