2015-07-26 08:26:55 +00:00
|
|
|
class Anjuta < Formula
|
|
|
|
desc "GNOME Integrated Development Environment"
|
|
|
|
homepage "http://anjuta.org"
|
2015-11-07 21:37:54 +00:00
|
|
|
url "https://download.gnome.org/sources/anjuta/3.18/anjuta-3.18.2.tar.xz"
|
|
|
|
sha256 "be864f2f1807e1b870697f646294e997d221d5984a135245543b719e501cef8e"
|
2016-05-19 17:10:58 +00:00
|
|
|
revision 1
|
2015-07-26 08:26:55 +00:00
|
|
|
|
2015-08-15 18:36:41 +00:00
|
|
|
bottle do
|
2016-05-19 17:40:16 +00:00
|
|
|
sha256 "e47ebd52776fb698063e6f3f7c1597bd0ac067ecb712a694ade93df2f529e1c0" => :el_capitan
|
|
|
|
sha256 "a540496cfb3246eb36c84df73591db84550aa35ff1fbd3abfc738b806558bd90" => :yosemite
|
|
|
|
sha256 "08d2588afa1ec9c51d3b0a57f2a94ceae64b1a0df7e551326e63233b6c78421e" => :mavericks
|
2015-08-15 18:36:41 +00:00
|
|
|
end
|
|
|
|
|
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"
|
2015-09-20 12:08:59 +00:00
|
|
|
depends_on "gnome-themes-standard" => :optional
|
2015-12-09 10:04:07 +00:00
|
|
|
depends_on "devhelp" => :optional
|
2015-07-26 08:26:55 +00:00
|
|
|
depends_on "shared-mime-info"
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
depends_on "vala" => :recommended
|
|
|
|
depends_on "autogen" => :recommended
|
2016-05-19 17:10:58 +00:00
|
|
|
depends_on "gnutls"
|
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
|