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

54 lines
2.1 KiB
Ruby

class Anjuta < Formula
desc "GNOME Integrated Development Environment"
homepage "http://anjuta.org"
url "https://download.gnome.org/sources/anjuta/3.26/anjuta-3.26.0.tar.xz"
sha256 "fb895464c1a3c915bb2bb3ea5d236fd17202caa7205f6792f70a75affc343d70"
bottle do
rebuild 1
sha256 "c48265e53ba6adb14f25baf2a1a9a0d341cf7b5910c998ea4ad6c957cc607932" => :high_sierra
sha256 "0009f1b0b9763fdb4e6ff61f206da5ac9a4753274748aaeac6d7da996d557fd9" => :sierra
sha256 "5bfc68a277e16071af323fed4cf3d249adec2015cd97e6ac27e8d179248cb575" => :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