From 8c4f3901bd93ec49621c04f12922b00991d722ce Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Sun, 28 Apr 2019 16:10:51 +0100 Subject: [PATCH] evince: build with comic book archive support Closes #39395. Signed-off-by: Chongyu Zhu --- Formula/evince.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Formula/evince.rb b/Formula/evince.rb index 62a6c90520..25b2a0ea22 100644 --- a/Formula/evince.rb +++ b/Formula/evince.rb @@ -3,7 +3,7 @@ class Evince < Formula homepage "https://wiki.gnome.org/Apps/Evince" url "https://download.gnome.org/sources/evince/3.30/evince-3.30.2.tar.xz" sha256 "a95bbdeb452c9cc910bba751e7c782ce60ffe7972c461bccbe8bbcdb8ca5f24c" - revision 1 + revision 2 bottle do rebuild 1 @@ -21,6 +21,7 @@ class Evince < Formula depends_on "gspell" depends_on "gtk+3" depends_on "hicolor-icon-theme" + depends_on "libarchive" depends_on "libsecret" depends_on "libspectre" depends_on "libxml2" @@ -35,6 +36,11 @@ class Evince < Formula # Reported 15 Sep 2017 https://bugzilla.gnome.org/show_bug.cgi?id=787709 inreplace "configure", "AR_FLAGS=crD", "AR_FLAGS=r" + # Add MacOS mime-types to the list of supported comic book archive mime-types + # Submitted upstream at https://gitlab.gnome.org/GNOME/evince/merge_requests/157 + inreplace "configure", "COMICS_MIME_TYPES=\"", + "COMICS_MIME_TYPES=\"application/x-rar;application/zip;application/x-cb7;application/x-7z-comperssed;application/x-tar;" + # forces use of gtk3-update-icon-cache instead of gtk-update-icon-cache. No bugreport should # be filed for this since it only occurs because Homebrew renames gtk+3's gtk-update-icon-cache # to gtk3-update-icon-cache in order to avoid a collision between gtk+ and gtk+3.