2015-08-31 10:24:33 +00:00
|
|
|
class Evince < Formula
|
|
|
|
desc "GNOME document viewer"
|
|
|
|
homepage "https://wiki.gnome.org/Apps/Evince"
|
2016-10-13 12:10:34 +00:00
|
|
|
url "https://download.gnome.org/sources/evince/3.22/evince-3.22.1.tar.xz"
|
|
|
|
sha256 "f3d439db3b5a5745d26175d615a71dffa1535235b1e3aa0b85d397ea33ab231c"
|
2015-08-31 10:24:33 +00:00
|
|
|
|
2015-08-31 13:39:44 +00:00
|
|
|
bottle do
|
2016-10-13 12:32:29 +00:00
|
|
|
sha256 "e9a2c2c8c8b52eb5092493d5493c0ba88f0be3a8050df357d10bcc9caae8c183" => :sierra
|
|
|
|
sha256 "2880e727b283dccfa168e17d1d0adc0056d6c784b1e92ac0b3dd99ee470bd74e" => :el_capitan
|
|
|
|
sha256 "a3fb6d9b31839132e2dba42d93b222cdd89662df5ffe75755f4412d8cb3cf58b" => :yosemite
|
2015-08-31 13:39:44 +00:00
|
|
|
end
|
|
|
|
|
2015-08-31 10:24:33 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "itstool" => :build
|
|
|
|
depends_on "poppler"
|
|
|
|
depends_on "libxml2" => "with-python"
|
|
|
|
depends_on "gtk+3"
|
|
|
|
depends_on "hicolor-icon-theme"
|
|
|
|
depends_on "gnome-icon-theme"
|
|
|
|
depends_on "libsecret"
|
|
|
|
depends_on "libspectre"
|
2015-09-21 17:20:41 +00:00
|
|
|
depends_on "gobject-introspection"
|
2016-01-14 03:37:02 +00:00
|
|
|
depends_on "shared-mime-info"
|
2016-01-26 04:43:47 +00:00
|
|
|
depends_on "djvulibre"
|
2015-08-31 10:24:33 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
|
|
|
|
def install
|
|
|
|
# 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.
|
|
|
|
inreplace "data/Makefile.in", "gtk-update-icon-cache", "gtk3-update-icon-cache"
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-nautilus",
|
|
|
|
"--disable-schemas-compile",
|
2015-09-21 17:20:41 +00:00
|
|
|
"--enable-introspection",
|
2016-01-26 04:43:47 +00:00
|
|
|
"--enable-djvu",
|
2015-08-31 10:24:33 +00:00
|
|
|
"--disable-browser-plugin"
|
|
|
|
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def post_install
|
|
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
2016-01-14 03:37:02 +00:00
|
|
|
system "#{Formula["shared-mime-info"].opt_bin}/update-mime-database", "#{HOMEBREW_PREFIX}/share/mime"
|
2015-08-31 10:24:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-06-22 19:20:22 +00:00
|
|
|
assert_match version.to_s, shell_output("#{bin}/evince --version")
|
2015-08-31 10:24:33 +00:00
|
|
|
end
|
|
|
|
end
|