homebrew-core/Formula/latexila.rb
2018-03-02 01:35:29 -08:00

49 lines
1.9 KiB
Ruby

class Latexila < Formula
desc "LaTeX editor for the GNOME desktop"
homepage "https://wiki.gnome.org/Apps/LaTeXila"
url "https://download.gnome.org/sources/latexila/3.26/latexila-3.26.1.tar.xz"
sha256 "658eba0db71864eb6d4873516d97e05be3e63085ff55513c8f10145ffb657151"
revision 2
bottle do
sha256 "8f985d4141c633e753a03bb948a3abf6700bddf78cbf700a2b777d365aee979a" => :high_sierra
sha256 "d75249308a8f78927ae3d8debc11cba7852e98193a57f2cf0c5c1e9456257131" => :sierra
sha256 "b922a72b22b58f2d343c609ac28efda42971c1bc6715b21e00b3c6f471c336fb" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "itstool" => :build
depends_on "vala" => :build
depends_on "gtksourceview3"
depends_on "gspell"
depends_on "tepl"
depends_on "libgee"
depends_on "gobject-introspection"
depends_on "adwaita-icon-theme"
depends_on "gnome-themes-standard" => :optional
depends_on "libxml2"
depends_on "python@2" if MacOS.version <= :snow_leopard
def install
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
system "./configure", "--disable-schemas-compile",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--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}/latexila", "--version"
end
end