class Anjuta < Formula desc "GNOME Integrated Development Environment" homepage "http://anjuta.org" url "https://download.gnome.org/sources/anjuta/3.28/anjuta-3.28.0.tar.xz" sha256 "b087b0a5857952d0edd24dae458616eb166a3257bc647d5279a9e71495544779" bottle do sha256 "30698875a8e11d3cc280380d00421f295ecc022f9d190e18e8ad9d35a833cc33" => :high_sierra sha256 "0fc4199912fe6c3abfea030e841471d0605a13566aadf2e8124104a0ca7a6eee" => :sierra sha256 "ae35e161b9880de496f3faeacbd6ab317d16b16fd11133b763b72ce312376374" => :el_capitan end depends_on "python@2" if MacOS.version <= :snow_leopard depends_on "pkg-config" => :build depends_on "intltool" => :build depends_on "itstool" => :build depends_on "gtksourceview3" depends_on "libxml2" depends_on "libgda" depends_on "gdl" depends_on "vte3" depends_on "hicolor-icon-theme" depends_on "adwaita-icon-theme" depends_on "gnutls" depends_on "shared-mime-info" depends_on "vala" => :recommended depends_on "autogen" => :recommended depends_on "gnome-themes-standard" => :optional def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}", "--disable-schemas-compile" 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" # 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 system "#{Formula["shared-mime-info"].opt_bin}/update-mime-database", "#{HOMEBREW_PREFIX}/share/mime" end test do system "#{bin}/anjuta", "--version" end end