homebrew-core/Formula/gnome-latex.rb
2018-07-16 23:11:46 -07:00

45 lines
1.8 KiB
Ruby

class GnomeLatex < Formula
desc "LaTeX editor for the GNOME desktop"
homepage "https://wiki.gnome.org/Apps/LaTeXila"
url "https://download.gnome.org/sources/gnome-latex/3.30/gnome-latex-3.30.0.tar.xz"
sha256 "56e64bf2c48bf98831d32fdbb6dc3d0309ee43f413873311151e688bcd96cb8e"
bottle do
sha256 "96a12edb8cc5d2aac5c423491172e763cce7bcd81e299374361bc5e3a2f4dd9f" => :high_sierra
sha256 "c4a30234eb144e8c0bb0d93bbd3ab8bb25beadbfbbc59307afd483228729d6f3" => :sierra
sha256 "1f345f63c24bc5736f0ec0f688edaa0c38d452ae1c60005f651b0f558640f405" => :el_capitan
end
depends_on "gobject-introspection" => :build
depends_on "pkg-config" => :build
depends_on "vala" => :build
depends_on "intltool" => :build
depends_on "itstool" => :build
depends_on "gspell"
depends_on "tepl"
depends_on "libgee"
depends_on "adwaita-icon-theme"
depends_on "gnome-themes-standard" => :optional
def install
system "./configure", "--disable-schemas-compile",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-dconf-migration",
"--prefix=#{prefix}"
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"
# HighContrast is provided by gnome-themes-standard
if File.file?("#{HOMEBREW_PREFIX}/share/icons/HighContrast/.icon-theme.cache")
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/HighContrast"
end
end
test do
system "#{bin}/gnome-latex", "--version"
end
end