2015-07-26 08:26:55 +00:00
|
|
|
class Anjuta < Formula
|
|
|
|
desc "GNOME Integrated Development Environment"
|
|
|
|
homepage "http://anjuta.org"
|
2016-06-22 18:15:40 +00:00
|
|
|
url "https://download.gnome.org/sources/anjuta/3.20/anjuta-3.20.0.tar.xz"
|
|
|
|
sha256 "a676c587a28f784ec2096775460cd29fafc3f0216c53e0821641bcd9126b6935"
|
2015-07-26 08:26:55 +00:00
|
|
|
|
2015-08-15 18:36:41 +00:00
|
|
|
bottle do
|
2016-06-23 06:06:16 +00:00
|
|
|
sha256 "45c434c27df740e3dd52a198a4f126c6dad780575d5fd12b8b58b25fc262fa88" => :el_capitan
|
|
|
|
sha256 "bb3f2a1096b58a082d17b8e0d6e7ff502cc543d1d12e45017602050f5368fc16" => :yosemite
|
|
|
|
sha256 "934b867228aad67b706d7ccb2a30d9c1c0035af99e65bf73f821e34c8e6bea55" => :mavericks
|
2015-08-15 18:36:41 +00:00
|
|
|
end
|
|
|
|
|
2016-06-22 18:15:40 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2015-07-26 08:26:55 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "itstool" => :build
|
|
|
|
depends_on "gtksourceview3"
|
|
|
|
depends_on "libxml2" => "with-python"
|
|
|
|
depends_on "libgda"
|
|
|
|
depends_on "gdl"
|
|
|
|
depends_on "vte3"
|
|
|
|
depends_on "hicolor-icon-theme"
|
|
|
|
depends_on "gnome-icon-theme"
|
2016-06-22 18:15:40 +00:00
|
|
|
depends_on "gnutls"
|
2015-07-26 08:26:55 +00:00
|
|
|
depends_on "shared-mime-info"
|
|
|
|
depends_on "vala" => :recommended
|
|
|
|
depends_on "autogen" => :recommended
|
2016-06-22 18:15:40 +00:00
|
|
|
depends_on "gnome-themes-standard" => :optional
|
|
|
|
depends_on "devhelp" => :optional
|
2015-07-26 08:26:55 +00:00
|
|
|
|
|
|
|
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"
|
2015-09-20 12:08:59 +00:00
|
|
|
# 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
|
2015-07-26 08:26:55 +00:00
|
|
|
system "#{Formula["shared-mime-info"].opt_bin}/update-mime-database", "#{HOMEBREW_PREFIX}/share/mime"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/anjuta", "--version"
|
|
|
|
end
|
|
|
|
end
|