2015-08-31 10:24:33 +00:00
|
|
|
class Evince < Formula
|
|
|
|
desc "GNOME document viewer"
|
|
|
|
homepage "https://wiki.gnome.org/Apps/Evince"
|
|
|
|
url "https://download.gnome.org/sources/evince/3.16/evince-3.16.1.tar.xz"
|
|
|
|
sha256 "06ff75065b2a30cd588c402f6bd2ea88ee3166181805e0cc00bd54f71dbf6130"
|
|
|
|
|
2015-08-31 13:39:44 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "113c827b24af3cb2b4b9c35cb080c6e85a528079a8e2283877aa337a534445ae" => :yosemite
|
|
|
|
sha256 "f4449f5159a41abd5f843bfe3dfd5fe7e5a8e182756fdbd676ef197283ebba2b" => :mavericks
|
|
|
|
sha256 "4e834b66d05b7dff90f814e3a47bfc9273577199ece5ea9414e3f433a7e5316a" => :mountain_lion
|
|
|
|
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"
|
|
|
|
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",
|
|
|
|
"--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"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /#{version}/, shell_output("#{bin}/evince --version")
|
|
|
|
end
|
|
|
|
end
|