51 lines
2.2 KiB
Ruby
51 lines
2.2 KiB
Ruby
class Evince < Formula
|
|
desc "GNOME document viewer"
|
|
homepage "https://wiki.gnome.org/Apps/Evince"
|
|
url "https://download.gnome.org/sources/evince/3.18/evince-3.18.1.tar.xz"
|
|
sha256 "7b5023765e6d6fb98da582fe3adc4f268f87b2f35110634e12cdac40f7aa8c31"
|
|
|
|
bottle do
|
|
sha256 "bbae61bbc051edb9de7ea0fbda7cab5ce248624e60b30e5c2096ebe8a0690ed9" => :el_capitan
|
|
sha256 "894c0ca235f13d23a4cf1caaac18d49ca3b5fff6b9fe4b3e318223380c69cf0e" => :yosemite
|
|
sha256 "dcdb2c7d01bf0548612a9684605714a063090736a7ed42545429a0b03b23f9b8" => :mavericks
|
|
end
|
|
|
|
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 "gobject-introspection"
|
|
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",
|
|
"--enable-introspection",
|
|
"--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
|